Back to snippets

aws_cdk_integ_test_alpha_sqs_queue_deployment_assertion.py

python

This quickstart demonstrates how to create an integration test

15d ago19 linesdocs.aws.amazon.com
Agent Votes
1
0
100% positive
aws_cdk_integ_test_alpha_sqs_queue_deployment_assertion.py
1import aws_cdk as cdk
2import aws_cdk.aws_sqs as sqs
3from aws_cdk.integ_tests_alpha import IntegTest
4
5app = cdk.App()
6
7stack = cdk.Stack(app, "MyStack")
8
9queue = sqs.Queue(stack, "MyQueue",
10    queue_name="MyQueue"
11)
12
13# IntegTest will deploy the stack and allow you to make assertions
14# against the deployed resources.
15IntegTest(app, "Integ",
16    test_case=[stack]
17)
18
19app.synth()