File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/boto3_elasticsearch.cpython-310.pyc
Back
o ;j�� � @ s� d Z ddlZddlZddlmZ e�e�ZdZ dd� Z dd� Z dd d�Zddd �Z ddd�Zddd�Z ddd�ZdS )a Manage Elasticsearch Service ============================ .. versionadded:: 3001 :configuration: This module accepts explicit AWS credentials but can also utilize IAM roles assigned to the instance trough Instance Profiles. Dynamic credentials are then automatically obtained from AWS API and no further configuration is necessary. More Information available at: .. code-block:: text http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html If IAM roles are not used you need to specify them either in a pillar or in the minion's config file: .. code-block:: yaml es.keyid: GKTADJGHEIQSXMKKRBJ08H es.key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs A region may also be specified in the configuration: .. code-block:: yaml es.region: us-east-1 If a region is not specified, the default is us-east-1. It's also possible to specify key, keyid and region via a profile, either as a passed in dict, or as a string to pull from pillars or minion config: .. code-block:: yaml myprofile: keyid: GKTADJGHEIQSXMKKRBJ08H key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs region: us-east-1 :codeauthor: Herbert Buurman <herbert.buurman@ogd.nl> :depends: boto3 � N)�VersionZboto3_elasticsearchc C s8 dg d�i} | d D ]}|t vrdd|� �f S q tS )zM Only load if boto3 and the required module functions are available. �salt)�1boto3_elasticsearch.describe_elasticsearch_domainz/boto3_elasticsearch.create_elasticsearch_domainz6boto3_elasticsearch.update_elasticsearch_domain_config�boto3_elasticsearch.exists�&boto3_elasticsearch.get_upgrade_status�$boto3_elasticsearch.wait_for_upgrade�-boto3_elasticsearch.check_upgrade_eligibility�0boto3_elasticsearch.upgrade_elasticsearch_domainFz/A required function was not found in __salt__: )�__salt__�__virtualname__)Zrequirements�req� r �S/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/boto3_elasticsearch.py�__virtual__7 s ���r c C s&