%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/states/aws_sqs.pyo

�
���^c@@sMdZddlmZmZmZd�Zded�Zded�Z	dS(u|
Manage SQS Queues

Create and destroy SQS queues. Be aware that this interacts with Amazon's
services, and so may incur charges.

This module uses the awscli tool provided by Amazon. This can be downloaded
from pip. Also check the documentation for awscli for configuration
information.

.. code-block:: yaml

    myqueue:
        aws_sqs.exists:
            - region: eu-west-1
i(tabsolute_importtprint_functiontunicode_literalscC@stdd�rdStS(u(
    Only load if aws is available.
    ucmd.has_execuawsuaws_sqs(t__salt__tFalse(((s7/usr/lib/python2.7/site-packages/salt/states/aws_sqs.pyt__virtual__scC@s�i|d6td6dd6id6}td||||�}|s�tdrld|d<dj|�|d<|Std	||||�}|d
dkr�|d|dd
<q�t|d<|d|d<ndj||�|d<|S(u
    Ensure the SQS queue exists.

    name
        Name of the SQS queue.

    region
        Region to create the queue

    user
        Name of the user performing the SQS operations

    opts
        Include additional arguments and options to the aws command line
    unameuresultuucommentuchangesuaws_sqs.queue_existsutestu&AWS SQS queue {0} is set to be createduaws_sqs.create_queueuretcodeiustdoutunewustderru{0} exists in {1}N(tTrueRt__opts__tNonetformatR(tnametregiontusertoptstrett
does_existtcreated((s7/usr/lib/python2.7/site-packages/salt/states/aws_sqs.pytexistss"



cC@s�i|d6td6dd6id6}td||||�}|r�tdrld|d<dj|�|d<|Std	||||�}|d
dkr�|d|dd
<q�t|d<|d|d<ndj||�|d<|S(u#
    Remove the named SQS queue if it exists.

    name
        Name of the SQS queue.

    region
        Region to remove the queue from

    user
        Name of the user performing the SQS operations

    opts
        Include additional arguments and options to the aws command line
    unameuresultuucommentuchangesuaws_sqs.queue_existsutestu&AWS SQS queue {0} is set to be removeduaws_sqs.delete_queueuretcodeiustdouturemovedustderru{0} does not exist in {1}N(RRRRR	R(R
RRR
RRtremoved((s7/usr/lib/python2.7/site-packages/salt/states/aws_sqs.pytabsentIs"



N(
t__doc__t
__future__RRRRRRRR(((s7/usr/lib/python2.7/site-packages/salt/states/aws_sqs.pyt<module>s	*

Zerion Mini Shell 1.0