// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`snapshot 1`] = ` Object { "Parameters": Object { "BootstrapVersion": Object { "Default": "/cdk-bootstrap/hnb659fds/version", "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]", "Type": "AWS::SSM::Parameter::Value", }, }, "Resources": Object { "MyQueueCheckpointTableD0A503A4": Object { "DeletionPolicy": "Retain", "Properties": Object { "AttributeDefinitions": Array [ Object { "AttributeName": "id", "AttributeType": "S", }, ], "KeySchema": Array [ Object { "AttributeName": "id", "KeyType": "HASH", }, ], "ProvisionedThroughput": Object { "ReadCapacityUnits": 5, "WriteCapacityUnits": 5, }, }, "Type": "AWS::DynamoDB::Table", "UpdateReplacePolicy": "Retain", }, "MyQueueE6CA6235": Object { "DeletionPolicy": "Delete", "Properties": Object { "MessageRetentionPeriod": 60, "VisibilityTimeout": 60, }, "Type": "AWS::SQS::Queue", "UpdateReplacePolicy": "Delete", }, "MyQueuePoller59772903": Object { "DependsOn": Array [ "MyQueuePollerServiceRoleDefaultPolicy392B5642", "MyQueuePollerServiceRole8BCA7659", ], "Properties": Object { "Code": Object { "S3Bucket": Object { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, "S3Key": "e2818b9de71cdbb515e573ab5740965e5640fd1f35b8cffef3b12e5683a67e59.zip", }, "Environment": Object { "Variables": Object { "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1", "CHECKPOINT_TABLE_KEY_NAME": "id", "CHECKPOINT_TABLE_NAME": Object { "Ref": "MyQueueCheckpointTableD0A503A4", }, "CREDENTIALS_SECRET": "secret-arn", "QUEUE_URL": Object { "Ref": "MyQueueE6CA6235", }, "TWITTER_QUERY": "twitter query", }, }, "Handler": "index.handler", "Role": Object { "Fn::GetAtt": Array [ "MyQueuePollerServiceRole8BCA7659", "Arn", ], }, "Runtime": "nodejs18.x", "Timeout": 900, }, "Type": "AWS::Lambda::Function", }, "MyQueuePollerServiceRole8BCA7659": Object { "Properties": Object { "AssumeRolePolicyDocument": Object { "Statement": Array [ Object { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": Object { "Service": "lambda.amazonaws.com", }, }, ], "Version": "2012-10-17", }, "ManagedPolicyArns": Array [ Object { "Fn::Join": Array [ "", Array [ "arn:", Object { "Ref": "AWS::Partition", }, ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", ], ], }, ], }, "Type": "AWS::IAM::Role", }, "MyQueuePollerServiceRoleDefaultPolicy392B5642": Object { "Properties": Object { "PolicyDocument": Object { "Statement": Array [ Object { "Action": "secretsmanager:GetSecretValue", "Effect": "Allow", "Resource": "secret-arn", }, Object { "Action": Array [ "sqs:SendMessage", "sqs:SendMessageBatch", ], "Effect": "Allow", "Resource": Object { "Fn::GetAtt": Array [ "MyQueueE6CA6235", "Arn", ], }, }, Object { "Action": Array [ "dynamodb:BatchGetItem", "dynamodb:GetRecords", "dynamodb:GetShardIterator", "dynamodb:Query", "dynamodb:GetItem", "dynamodb:Scan", "dynamodb:ConditionCheckItem", "dynamodb:BatchWriteItem", "dynamodb:PutItem", "dynamodb:UpdateItem", "dynamodb:DeleteItem", "dynamodb:DescribeTable", ], "Effect": "Allow", "Resource": Array [ Object { "Fn::GetAtt": Array [ "MyQueueCheckpointTableD0A503A4", "Arn", ], }, Object { "Ref": "AWS::NoValue", }, ], }, ], "Version": "2012-10-17", }, "PolicyName": "MyQueuePollerServiceRoleDefaultPolicy392B5642", "Roles": Array [ Object { "Ref": "MyQueuePollerServiceRole8BCA7659", }, ], }, "Type": "AWS::IAM::Policy", }, "MyQueuePollingTimerAllowEventRuletestMyQueuePollerB07A880A2C004B07": Object { "Properties": Object { "Action": "lambda:InvokeFunction", "FunctionName": Object { "Fn::GetAtt": Array [ "MyQueuePoller59772903", "Arn", ], }, "Principal": "events.amazonaws.com", "SourceArn": Object { "Fn::GetAtt": Array [ "MyQueuePollingTimerDA561740", "Arn", ], }, }, "Type": "AWS::Lambda::Permission", }, "MyQueuePollingTimerDA561740": Object { "Properties": Object { "ScheduleExpression": "rate(1 minute)", "State": "ENABLED", "Targets": Array [ Object { "Arn": Object { "Fn::GetAtt": Array [ "MyQueuePoller59772903", "Arn", ], }, "Id": "Target0", }, ], }, "Type": "AWS::Events::Rule", }, }, "Rules": Object { "CheckBootstrapVersion": Object { "Assertions": Array [ Object { "Assert": Object { "Fn::Not": Array [ Object { "Fn::Contains": Array [ Array [ "1", "2", "3", "4", "5", ], Object { "Ref": "BootstrapVersion", }, ], }, ], }, "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI.", }, ], }, }, } `;