def get_attributes(name, region=None, key=None, keyid=None, profile=None):
    '''
    Return attributes currently set on an SQS queue.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_sqs.get_attributes myqueue
    '''
    conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)

    try:
        url = conn.get_queue_url(QueueName=name)['QueueUrl']
        r = conn.get_queue_attributes(QueueUrl=url, AttributeNames=['All'])
        return {'result': r['Attributes']}
    except botocore.exceptions.ClientError as e:
        return {'error': __utils__['boto3.get_error'](e)}
def get_attributes ( name , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) try : url = conn . get_queue_url ( QueueName = name ) [ 'QueueUrl' ] r = conn . get_queue_attributes ( QueueUrl = url , AttributeNames = [ 'All' ] ) return { 'result' : r [ 'Attributes' ] } except botocore . exceptions . ClientError as e : return { 'error' : __utils__ [ 'boto3.get_error' ] ( e ) }
Return attributes currently set on an SQS queue.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_sqs.get_attributes myqueue