%PDF- %PDF-
| Direktori : /lib/python2.7/site-packages/salt/states/ |
| Current File : //lib/python2.7/site-packages/salt/states/boto_cognitoidentity.pyo |
�
���^c
@@ s� d Z d d l m Z m Z m Z d d l Z d d l m Z e j e � Z
d � Z d � Z d � Z
e d d d d d d d d d � Z e d d d d d � Z d S(
u�
Manage CognitoIdentity Functions
================================
.. versionadded:: 2016.11.0
Create and destroy CognitoIdentity identity pools. Be aware that this interacts with
Amazon's services, and so may incur charges.
This module uses ``boto3``, which can be installed via package, or pip.
This module accepts explicit vpc credentials but can also utilize
IAM roles assigned to the instance through Instance Profiles. Dynamic
credentials are then automatically obtained from AWS API and no further
configuration is necessary. More information available `here
<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 file or
in the minion's config file:
.. code-block:: yaml
vpc.keyid: GKTADJGHEIQSXMKKRBJ08H
vpc.key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs
It's also possible to specify ``key``, ``keyid`` and ``region`` via a profile,
either passed in as a dict, or as a string to pull from pillars or minion
config:
.. code-block:: yaml
myprofile:
keyid: GKTADJGHEIQSXMKKRBJ08H
key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs
region: us-east-1
.. code-block:: yaml
Ensure function exists:
boto_cognitoidentity.pool_present:
- PoolName: my_identity_pool
- region: us-east-1
- keyid: GKTADJGHEIQSXMKKRBJ08H
- key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs
i ( t absolute_importt print_functiont unicode_literalsN( t string_typesc C@ s d t k r d St S( u)
Only load if boto is available.
u, boto_cognitoidentity.describe_identity_poolsu boto_cognitoidentity( t __salt__t False( ( ( sD /usr/lib/python2.7/site-packages/salt/states/boto_cognitoidentity.pyt __virtual__; s c C@ s� d } | d k r | St | t � r� | t k r>