Create a queue

    0

    0

    AWS and boto3 recipes for Python

    Create a SQS queue using the boto3 library.

    Library: boto3

    import boto3
    
    # Create SQS client
    sqs = boto3.client('sqs')
    
    # Create a SQS queue
    response = sqs.create_queue(
      QueueName='queuename',
      Attributes={
        'DelaySeconds': '60',
        'MessageRetentionPeriod': '86400'
      }
    )
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.