// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Snapshot 1`] = ` { "Mappings": { "DefaultCrNodeVersionMap": { "af-south-1": { "value": "nodejs16.x", }, "ap-east-1": { "value": "nodejs16.x", }, "ap-northeast-1": { "value": "nodejs16.x", }, "ap-northeast-2": { "value": "nodejs16.x", }, "ap-northeast-3": { "value": "nodejs16.x", }, "ap-south-1": { "value": "nodejs16.x", }, "ap-south-2": { "value": "nodejs16.x", }, "ap-southeast-1": { "value": "nodejs16.x", }, "ap-southeast-2": { "value": "nodejs16.x", }, "ap-southeast-3": { "value": "nodejs16.x", }, "ca-central-1": { "value": "nodejs16.x", }, "cn-north-1": { "value": "nodejs16.x", }, "cn-northwest-1": { "value": "nodejs16.x", }, "eu-central-1": { "value": "nodejs16.x", }, "eu-central-2": { "value": "nodejs16.x", }, "eu-north-1": { "value": "nodejs16.x", }, "eu-south-1": { "value": "nodejs16.x", }, "eu-south-2": { "value": "nodejs16.x", }, "eu-west-1": { "value": "nodejs16.x", }, "eu-west-2": { "value": "nodejs16.x", }, "eu-west-3": { "value": "nodejs16.x", }, "me-central-1": { "value": "nodejs16.x", }, "me-south-1": { "value": "nodejs16.x", }, "sa-east-1": { "value": "nodejs16.x", }, "us-east-1": { "value": "nodejs16.x", }, "us-east-2": { "value": "nodejs16.x", }, "us-gov-east-1": { "value": "nodejs16.x", }, "us-gov-west-1": { "value": "nodejs16.x", }, "us-iso-east-1": { "value": "nodejs14.x", }, "us-iso-west-1": { "value": "nodejs14.x", }, "us-isob-east-1": { "value": "nodejs14.x", }, "us-west-1": { "value": "nodejs16.x", }, "us-west-2": { "value": "nodejs16.x", }, }, }, "Outputs": { "distribution": { "Value": { "Fn::GetAtt": [ "SiteCloudfrontDistribution0794B6B8", "DomainName", ], }, }, "infrastructureChimeSDKPSTNAudioUpdateEndpointA170D63C": { "Value": { "Fn::Join": [ "", [ "https://", { "Ref": "infrastructureChimeSDKPSTNAudioUpdate61F7534F", }, ".execute-api.", { "Ref": "AWS::Region", }, ".", { "Ref": "AWS::URLSuffix", }, "/", { "Ref": "infrastructureChimeSDKPSTNAudioUpdateDeploymentStageprodE1AF9CED", }, "/", ], ], }, }, "meetingNumber": { "Value": { "Fn::GetAtt": [ "ChimephoneNumberChimePhoneNumberpstnCustomResourceDFB46FB1", "phoneNumber", ], }, }, "siteBucket": { "Value": { "Ref": "SitewebsiteBucketBC20A569", }, }, }, "Parameters": { "BootstrapVersion": { "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": { "ChimeOutgoingWavBucketDeployAwsCliLayer2A7E12AB": { "Properties": { "Content": { "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, "S3Key": "88b83f5f61fe6f85ffcd0a37a09a8f3be90e7c090964b0b62b062eb8a5a1a3a7.zip", }, "Description": "/opt/awscli/aws", }, "Type": "AWS::Lambda::LayerVersion", }, "ChimeOutgoingWavBucketDeployCustomResourceA35B89BF": { "DeletionPolicy": "Delete", "Properties": { "DestinationBucketName": { "Ref": "ChimeoutgoingWavBucket13A9B521", }, "Prune": true, "ServiceToken": { "Fn::GetAtt": [ "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C81C01536", "Arn", ], }, "SourceBucketNames": [ { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, ], "SourceObjectKeys": [ "6c4e12193b57e6f7de19c0e3fd2c12801dd28ab76d032415bbbeeec94be46672.zip", ], "SystemMetadata": { "content-type": "audio/wav", }, }, "Type": "Custom::CDKBucketDeployment", "UpdateReplacePolicy": "Delete", }, "ChimeoutgoingWavBucket13A9B521": { "DeletionPolicy": "Delete", "Properties": { "Tags": [ { "Key": "aws-cdk:auto-delete-objects", "Value": "true", }, { "Key": "aws-cdk:cr-owned:1959d716", "Value": "true", }, ], }, "Type": "AWS::S3::Bucket", "UpdateReplacePolicy": "Delete", }, "ChimeoutgoingWavBucketAutoDeleteObjectsCustomResource57FD7F6D": { "DeletionPolicy": "Delete", "DependsOn": [ "ChimeoutgoingWavBucketPolicy9A087217", ], "Properties": { "BucketName": { "Ref": "ChimeoutgoingWavBucket13A9B521", }, "ServiceToken": { "Fn::GetAtt": [ "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "Arn", ], }, }, "Type": "Custom::S3AutoDeleteObjects", "UpdateReplacePolicy": "Delete", }, "ChimeoutgoingWavBucketPolicy9A087217": { "Properties": { "Bucket": { "Ref": "ChimeoutgoingWavBucket13A9B521", }, "PolicyDocument": { "Statement": [ { "Action": [ "s3:GetBucket*", "s3:List*", "s3:DeleteObject*", ], "Effect": "Allow", "Principal": { "AWS": { "Fn::GetAtt": [ "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", "Arn", ], }, }, "Resource": [ { "Fn::GetAtt": [ "ChimeoutgoingWavBucket13A9B521", "Arn", ], }, { "Fn::Join": [ "", [ { "Fn::GetAtt": [ "ChimeoutgoingWavBucket13A9B521", "Arn", ], }, "/*", ], ], }, ], }, { "Action": [ "s3:GetObject", "s3:PutObject", "s3:PutObjectAcl", ], "Effect": "Allow", "Principal": { "Service": "voiceconnector.chime.amazonaws.com", }, "Resource": [ { "Fn::GetAtt": [ "ChimeoutgoingWavBucket13A9B521", "Arn", ], }, { "Fn::Join": [ "", [ { "Fn::GetAtt": [ "ChimeoutgoingWavBucket13A9B521", "Arn", ], }, "/*", ], ], }, ], "Sid": "SIPMediaApplicationRead", }, ], "Version": "2012-10-17", }, }, "Type": "AWS::S3::BucketPolicy", }, "ChimephoneNumberChimePhoneNumberPSTNResourceProviderframeworkonEvent48FEA3B8": { "DependsOn": [ "ChimephoneNumberChimePhoneNumberPSTNResourceProviderframeworkonEventServiceRoleDefaultPolicy4E05866C", "ChimephoneNumberChimePhoneNumberPSTNResourceProviderframeworkonEventServiceRole6BE92B60", ], "Properties": { "Code": { "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, "S3Key": "8e3d635893ea17fa3158623489cd42c680fad925b38de1ef51cb10d84f6e245e.zip", }, "Description": "AWS CDK resource provider framework - onEvent (test/Chime/phoneNumber/ChimePhoneNumber/PSTNResourceProvider)", "Environment": { "Variables": { "USER_ON_EVENT_FUNCTION_ARN": { "Fn::GetAtt": [ "PSTNResources1DB9F314", "Arn", ], }, }, }, "Handler": "framework.onEvent", "Role": { "Fn::GetAtt": [ "ChimephoneNumberChimePhoneNumberPSTNResourceProviderframeworkonEventServiceRole6BE92B60", "Arn", ], }, "Runtime": "nodejs14.x", "Timeout": 900, }, "Type": "AWS::Lambda::Function", }, "ChimephoneNumberChimePhoneNumberPSTNResourceProviderframeworkonEventServiceRole6BE92B60": { "Properties": { "AssumeRolePolicyDocument": { "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "Service": "lambda.amazonaws.com", }, }, ], "Version": "2012-10-17", }, "ManagedPolicyArns": [ { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", ], ], }, ], }, "Type": "AWS::IAM::Role", }, "ChimephoneNumberChimePhoneNumberPSTNResourceProviderframeworkonEventServiceRoleDefaultPolicy4E05866C": { "Properties": { "PolicyDocument": { "Statement": [ { "Action": "lambda:InvokeFunction", "Effect": "Allow", "Resource": [ { "Fn::GetAtt": [ "PSTNResources1DB9F314", "Arn", ], }, { "Fn::Join": [ "", [ { "Fn::GetAtt": [ "PSTNResources1DB9F314", "Arn", ], }, ":*", ], ], }, ], }, ], "Version": "2012-10-17", }, "PolicyName": "ChimephoneNumberChimePhoneNumberPSTNResourceProviderframeworkonEventServiceRoleDefaultPolicy4E05866C", "Roles": [ { "Ref": "ChimephoneNumberChimePhoneNumberPSTNResourceProviderframeworkonEventServiceRole6BE92B60", }, ], }, "Type": "AWS::IAM::Policy", }, "ChimephoneNumberChimePhoneNumberpstnCustomResourceDFB46FB1": { "DeletionPolicy": "Delete", "Properties": { "ServiceToken": { "Fn::GetAtt": [ "ChimephoneNumberChimePhoneNumberPSTNResourceProviderframeworkonEvent48FEA3B8", "Arn", ], }, "properties": { "phoneCountry": "US", "phoneNumberType": "Local", "phoneProductType": "SipMediaApplicationDialIn", "phoneState": "IL", }, "resourceType": "PhoneNumber", "uid": "testChimephoneNumber9936B1A7", }, "Type": "AWS::CloudFormation::CustomResource", "UpdateReplacePolicy": "Delete", }, "ChimephoneNumberChimePhoneNumberpstnCustomResourceRole6F0C285E": { "Properties": { "AssumeRolePolicyDocument": { "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "Service": "lambda.amazonaws.com", }, }, ], "Version": "2012-10-17", }, "Description": "Amazon Chime PSTN Resources", "ManagedPolicyArns": [ { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", ], ], }, ], "Policies": [ { "PolicyDocument": { "Statement": [ { "Action": [ "chime:CreateSipRule", "chime:DeleteSipRule", "chime:UpdateSipRule", "chime:GetSipRule", "chime:CreateSipMediaApplication", "chime:DeleteSipMediaApplication", "chime:GetPhoneNumberOrder", "chime:SearchAvailablePhoneNumbers", "chime:CreatePhoneNumberOrder", "chime:DeletePhoneNumber", "chime:GetPhoneNumber", "chime:CreateVoiceConnector", "chime:PutVoiceConnectorStreamingConfiguration", "chime:PutVoiceConnectorTermination", "chime:PutVoiceConnectorOrigination", "chime:ListPhoneNumbers", "chime:AssociatePhoneNumbersWithVoiceConnector", "chime:DisassociatePhoneNumbersFromVoiceConnector", "chime:DeleteVoiceConnector", "lambda:GetPolicy", "lambda:AddPermission", "iam:PutRolePolicy", "iam:CreateServiceLinkedRole", ], "Effect": "Allow", "Resource": "*", }, { "Action": [ "ssm:PutParameter", "ssm:GetParameter", "ssm:DeleteParameter", ], "Effect": "Allow", "Resource": { "Fn::Join": [ "", [ "arn:aws:ssm:", { "Ref": "AWS::Region", }, ":", { "Ref": "AWS::AccountId", }, ":parameter/chime/*", ], ], }, }, ], "Version": "2012-10-17", }, "PolicyName": "chimePolicy", }, ], }, "Type": "AWS::IAM::Role", }, "ChimesipMediaAppsipMediaAppRequestPSTNResourceProviderframeworkonEventC21782EC": { "DependsOn": [ "ChimesipMediaAppsipMediaAppRequestPSTNResourceProviderframeworkonEventServiceRoleDefaultPolicyF2EE5D9F", "ChimesipMediaAppsipMediaAppRequestPSTNResourceProviderframeworkonEventServiceRoleD4EBDDE9", ], "Properties": { "Code": { "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, "S3Key": "8e3d635893ea17fa3158623489cd42c680fad925b38de1ef51cb10d84f6e245e.zip", }, "Description": "AWS CDK resource provider framework - onEvent (test/Chime/sipMediaApp/sipMediaAppRequest/PSTNResourceProvider)", "Environment": { "Variables": { "USER_ON_EVENT_FUNCTION_ARN": { "Fn::GetAtt": [ "PSTNResources1DB9F314", "Arn", ], }, }, }, "Handler": "framework.onEvent", "Role": { "Fn::GetAtt": [ "ChimesipMediaAppsipMediaAppRequestPSTNResourceProviderframeworkonEventServiceRoleD4EBDDE9", "Arn", ], }, "Runtime": "nodejs14.x", "Timeout": 900, }, "Type": "AWS::Lambda::Function", }, "ChimesipMediaAppsipMediaAppRequestPSTNResourceProviderframeworkonEventServiceRoleD4EBDDE9": { "Properties": { "AssumeRolePolicyDocument": { "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "Service": "lambda.amazonaws.com", }, }, ], "Version": "2012-10-17", }, "ManagedPolicyArns": [ { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", ], ], }, ], }, "Type": "AWS::IAM::Role", }, "ChimesipMediaAppsipMediaAppRequestPSTNResourceProviderframeworkonEventServiceRoleDefaultPolicyF2EE5D9F": { "Properties": { "PolicyDocument": { "Statement": [ { "Action": "lambda:InvokeFunction", "Effect": "Allow", "Resource": [ { "Fn::GetAtt": [ "PSTNResources1DB9F314", "Arn", ], }, { "Fn::Join": [ "", [ { "Fn::GetAtt": [ "PSTNResources1DB9F314", "Arn", ], }, ":*", ], ], }, ], }, ], "Version": "2012-10-17", }, "PolicyName": "ChimesipMediaAppsipMediaAppRequestPSTNResourceProviderframeworkonEventServiceRoleDefaultPolicyF2EE5D9F", "Roles": [ { "Ref": "ChimesipMediaAppsipMediaAppRequestPSTNResourceProviderframeworkonEventServiceRoleD4EBDDE9", }, ], }, "Type": "AWS::IAM::Policy", }, "ChimesipMediaAppsipMediaAppRequestpstnCustomResource505FA3C9": { "DeletionPolicy": "Delete", "Properties": { "ServiceToken": { "Fn::GetAtt": [ "ChimesipMediaAppsipMediaAppRequestPSTNResourceProviderframeworkonEventC21782EC", "Arn", ], }, "properties": { "endpoint": { "Fn::GetAtt": [ "ChimesmaHandlerLambda51FE45BB", "Arn", ], }, "name": "testChimesipMediaAppEBAB42E6", "region": { "Ref": "AWS::Region", }, }, "resourceType": "SMA", "uid": "testChimesipMediaAppEBAB42E6", }, "Type": "AWS::CloudFormation::CustomResource", "UpdateReplacePolicy": "Delete", }, "ChimesipRulesipRuleRequestPSTNResourceProviderframeworkonEventFA9C5F34": { "DependsOn": [ "ChimesipRulesipRuleRequestPSTNResourceProviderframeworkonEventServiceRoleDefaultPolicyCAE89E84", "ChimesipRulesipRuleRequestPSTNResourceProviderframeworkonEventServiceRole3D85CEF9", ], "Properties": { "Code": { "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, "S3Key": "8e3d635893ea17fa3158623489cd42c680fad925b38de1ef51cb10d84f6e245e.zip", }, "Description": "AWS CDK resource provider framework - onEvent (test/Chime/sipRule/sipRuleRequest/PSTNResourceProvider)", "Environment": { "Variables": { "USER_ON_EVENT_FUNCTION_ARN": { "Fn::GetAtt": [ "PSTNResources1DB9F314", "Arn", ], }, }, }, "Handler": "framework.onEvent", "Role": { "Fn::GetAtt": [ "ChimesipRulesipRuleRequestPSTNResourceProviderframeworkonEventServiceRole3D85CEF9", "Arn", ], }, "Runtime": "nodejs14.x", "Timeout": 900, }, "Type": "AWS::Lambda::Function", }, "ChimesipRulesipRuleRequestPSTNResourceProviderframeworkonEventServiceRole3D85CEF9": { "Properties": { "AssumeRolePolicyDocument": { "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "Service": "lambda.amazonaws.com", }, }, ], "Version": "2012-10-17", }, "ManagedPolicyArns": [ { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", ], ], }, ], }, "Type": "AWS::IAM::Role", }, "ChimesipRulesipRuleRequestPSTNResourceProviderframeworkonEventServiceRoleDefaultPolicyCAE89E84": { "Properties": { "PolicyDocument": { "Statement": [ { "Action": "lambda:InvokeFunction", "Effect": "Allow", "Resource": [ { "Fn::GetAtt": [ "PSTNResources1DB9F314", "Arn", ], }, { "Fn::Join": [ "", [ { "Fn::GetAtt": [ "PSTNResources1DB9F314", "Arn", ], }, ":*", ], ], }, ], }, ], "Version": "2012-10-17", }, "PolicyName": "ChimesipRulesipRuleRequestPSTNResourceProviderframeworkonEventServiceRoleDefaultPolicyCAE89E84", "Roles": [ { "Ref": "ChimesipRulesipRuleRequestPSTNResourceProviderframeworkonEventServiceRole3D85CEF9", }, ], }, "Type": "AWS::IAM::Policy", }, "ChimesipRulesipRuleRequestpstnCustomResource7C7C6F28": { "DeletionPolicy": "Delete", "Properties": { "ServiceToken": { "Fn::GetAtt": [ "ChimesipRulesipRuleRequestPSTNResourceProviderframeworkonEventFA9C5F34", "Arn", ], }, "properties": { "name": "testChimesipRuleA371F021", "targetApplications": [ { "priority": 1, "region": { "Ref": "AWS::Region", }, "sipMediaApplicationId": { "Fn::GetAtt": [ "ChimesipMediaAppsipMediaAppRequestpstnCustomResource505FA3C9", "sipMediaAppId", ], }, }, ], "triggerType": "ToPhoneNumber", "triggerValue": { "Fn::GetAtt": [ "ChimephoneNumberChimePhoneNumberpstnCustomResourceDFB46FB1", "phoneNumber", ], }, }, "resourceType": "SMARule", "uid": "testChimesipRuleA371F021", }, "Type": "AWS::CloudFormation::CustomResource", "UpdateReplacePolicy": "Delete", }, "ChimesmaHandlerLambda51FE45BB": { "DependsOn": [ "ChimesmaHandlerRoleDefaultPolicyDC3EC456", "ChimesmaHandlerRoleAB855B74", ], "Properties": { "Architectures": [ "arm64", ], "Code": { "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, "S3Key": "9855a4806f4f4b2354711f681c42484938917e5dbd130dc21976ae08a7e6963e.zip", }, "Environment": { "Variables": { "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1", "BUCKET_NAME": { "Ref": "ChimeoutgoingWavBucket13A9B521", }, "TABLE_NAME": { "Ref": "DatabasemeetingInfoTableB2C41513", }, }, }, "Handler": "index.handler", "Role": { "Fn::GetAtt": [ "ChimesmaHandlerRoleAB855B74", "Arn", ], }, "Runtime": "nodejs16.x", "Timeout": 60, }, "Type": "AWS::Lambda::Function", }, "ChimesmaHandlerRoleAB855B74": { "Properties": { "AssumeRolePolicyDocument": { "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "Service": "lambda.amazonaws.com", }, }, ], "Version": "2012-10-17", }, "ManagedPolicyArns": [ { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", ], ], }, ], "Policies": [ { "PolicyDocument": { "Statement": [ { "Action": "chime:*", "Effect": "Allow", "Resource": "*", }, ], "Version": "2012-10-17", }, "PolicyName": "chimePolicy", }, ], }, "Type": "AWS::IAM::Role", }, "ChimesmaHandlerRoleDefaultPolicyDC3EC456": { "Properties": { "PolicyDocument": { "Statement": [ { "Action": [ "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": [ { "Fn::GetAtt": [ "DatabasemeetingInfoTableB2C41513", "Arn", ], }, { "Fn::Join": [ "", [ { "Fn::GetAtt": [ "DatabasemeetingInfoTableB2C41513", "Arn", ], }, "/index/*", ], ], }, ], }, ], "Version": "2012-10-17", }, "PolicyName": "ChimesmaHandlerRoleDefaultPolicyDC3EC456", "Roles": [ { "Ref": "ChimesmaHandlerRoleAB855B74", }, ], }, "Type": "AWS::IAM::Policy", }, "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C81C01536": { "DependsOn": [ "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756CServiceRoleDefaultPolicy88902FDF", "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756CServiceRole89A01265", ], "Properties": { "Code": { "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, "S3Key": "9eb41a5505d37607ac419321497a4f8c21cf0ee1f9b4a6b29aa04301aea5c7fd.zip", }, "Environment": { "Variables": { "AWS_CA_BUNDLE": "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem", }, }, "Handler": "index.handler", "Layers": [ { "Ref": "ChimeOutgoingWavBucketDeployAwsCliLayer2A7E12AB", }, ], "Role": { "Fn::GetAtt": [ "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756CServiceRole89A01265", "Arn", ], }, "Runtime": "python3.9", "Timeout": 900, }, "Type": "AWS::Lambda::Function", }, "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756CServiceRole89A01265": { "Properties": { "AssumeRolePolicyDocument": { "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "Service": "lambda.amazonaws.com", }, }, ], "Version": "2012-10-17", }, "ManagedPolicyArns": [ { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", ], ], }, ], }, "Type": "AWS::IAM::Role", }, "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756CServiceRoleDefaultPolicy88902FDF": { "Properties": { "PolicyDocument": { "Statement": [ { "Action": [ "s3:GetObject*", "s3:GetBucket*", "s3:List*", ], "Effect": "Allow", "Resource": [ { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":s3:::", { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, ], ], }, { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":s3:::", { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, "/*", ], ], }, ], }, { "Action": [ "s3:GetObject*", "s3:GetBucket*", "s3:List*", "s3:DeleteObject*", "s3:PutObject", "s3:PutObjectLegalHold", "s3:PutObjectRetention", "s3:PutObjectTagging", "s3:PutObjectVersionTagging", "s3:Abort*", ], "Effect": "Allow", "Resource": [ { "Fn::GetAtt": [ "ChimeoutgoingWavBucket13A9B521", "Arn", ], }, { "Fn::Join": [ "", [ { "Fn::GetAtt": [ "ChimeoutgoingWavBucket13A9B521", "Arn", ], }, "/*", ], ], }, ], }, { "Action": [ "s3:GetObject*", "s3:GetBucket*", "s3:List*", "s3:DeleteObject*", "s3:PutObject", "s3:PutObjectLegalHold", "s3:PutObjectRetention", "s3:PutObjectTagging", "s3:PutObjectVersionTagging", "s3:Abort*", ], "Effect": "Allow", "Resource": [ { "Fn::GetAtt": [ "SitewebsiteBucketBC20A569", "Arn", ], }, { "Fn::Join": [ "", [ { "Fn::GetAtt": [ "SitewebsiteBucketBC20A569", "Arn", ], }, "/*", ], ], }, ], }, { "Action": [ "cloudfront:GetInvalidation", "cloudfront:CreateInvalidation", ], "Effect": "Allow", "Resource": "*", }, ], "Version": "2012-10-17", }, "PolicyName": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756CServiceRoleDefaultPolicy88902FDF", "Roles": [ { "Ref": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756CServiceRole89A01265", }, ], }, "Type": "AWS::IAM::Policy", }, "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { "DependsOn": [ "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", ], "Properties": { "Code": { "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, "S3Key": "350185a1069fa20a23a583e20c77f6844218bd73097902362dc94f1a108f5d89.zip", }, "Description": { "Fn::Join": [ "", [ "Lambda function for auto-deleting objects in ", { "Ref": "ChimeoutgoingWavBucket13A9B521", }, " S3 bucket.", ], ], }, "Handler": "__entrypoint__.handler", "MemorySize": 128, "Role": { "Fn::GetAtt": [ "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", "Arn", ], }, "Runtime": "nodejs16.x", "Timeout": 900, }, "Type": "AWS::Lambda::Function", }, "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { "Properties": { "AssumeRolePolicyDocument": { "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "Service": "lambda.amazonaws.com", }, }, ], "Version": "2012-10-17", }, "ManagedPolicyArns": [ { "Fn::Sub": "arn:\${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", }, ], }, "Type": "AWS::IAM::Role", }, "DatabasemeetingInfoTableB2C41513": { "DeletionPolicy": "Delete", "Properties": { "AttributeDefinitions": [ { "AttributeName": "fromNumber", "AttributeType": "S", }, { "AttributeName": "callId", "AttributeType": "S", }, { "AttributeName": "meetingId", "AttributeType": "S", }, ], "BillingMode": "PAY_PER_REQUEST", "GlobalSecondaryIndexes": [ { "IndexName": "meetingIdIndex", "KeySchema": [ { "AttributeName": "meetingId", "KeyType": "HASH", }, ], "Projection": { "ProjectionType": "ALL", }, }, ], "KeySchema": [ { "AttributeName": "fromNumber", "KeyType": "HASH", }, { "AttributeName": "callId", "KeyType": "RANGE", }, ], }, "Type": "AWS::DynamoDB::Table", "UpdateReplacePolicy": "Delete", }, "PSTNResources1DB9F314": { "DependsOn": [ "ChimephoneNumberChimePhoneNumberpstnCustomResourceRole6F0C285E", ], "Properties": { "Architectures": [ "arm64", ], "Code": { "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, "S3Key": "1e85bcd7774f4f9e640d34759bef652508e0ebc55cb6d2b6cdb8600fa9ab8e3b.zip", }, "Handler": "index.handler", "Role": { "Fn::GetAtt": [ "ChimephoneNumberChimePhoneNumberpstnCustomResourceRole6F0C285E", "Arn", ], }, "Runtime": "python3.9", "Timeout": 60, }, "Type": "AWS::Lambda::Function", }, "SiteCloudfrontDistribution0794B6B8": { "Properties": { "DistributionConfig": { "DefaultCacheBehavior": { "CachePolicyId": "4135ea2d-6df8-44a3-9df3-4b5a84be39ad", "Compress": true, "TargetOriginId": "testSiteCloudfrontDistributionOrigin14F75D719", "ViewerProtocolPolicy": "redirect-to-https", }, "DefaultRootObject": "index.html", "Enabled": true, "HttpVersion": "http2", "IPV6Enabled": true, "Logging": { "Bucket": { "Fn::GetAtt": [ "SiteCloudfrontDistributionLoggingBucket0054AC66", "RegionalDomainName", ], }, }, "Origins": [ { "DomainName": { "Fn::GetAtt": [ "SitewebsiteBucketBC20A569", "RegionalDomainName", ], }, "Id": "testSiteCloudfrontDistributionOrigin14F75D719", "S3OriginConfig": { "OriginAccessIdentity": { "Fn::Join": [ "", [ "origin-access-identity/cloudfront/", { "Ref": "SiteCloudfrontDistributionOrigin1S3Origin4F2AB6D1", }, ], ], }, }, }, ], }, }, "Type": "AWS::CloudFront::Distribution", }, "SiteCloudfrontDistributionLoggingBucket0054AC66": { "DeletionPolicy": "Retain", "Properties": { "BucketEncryption": { "ServerSideEncryptionConfiguration": [ { "ServerSideEncryptionByDefault": { "SSEAlgorithm": "AES256", }, }, ], }, "OwnershipControls": { "Rules": [ { "ObjectOwnership": "ObjectWriter", }, ], }, }, "Type": "AWS::S3::Bucket", "UpdateReplacePolicy": "Retain", }, "SiteCloudfrontDistributionOrigin1S3Origin4F2AB6D1": { "Properties": { "CloudFrontOriginAccessIdentityConfig": { "Comment": "Identity for testSiteCloudfrontDistributionOrigin14F75D719", }, }, "Type": "AWS::CloudFront::CloudFrontOriginAccessIdentity", }, "SiteDeployBucketAwsCliLayerB1A3335C": { "Properties": { "Content": { "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, "S3Key": "88b83f5f61fe6f85ffcd0a37a09a8f3be90e7c090964b0b62b062eb8a5a1a3a7.zip", }, "Description": "/opt/awscli/aws", }, "Type": "AWS::Lambda::LayerVersion", }, "SiteDeployBucketCustomResource08EC962A": { "DeletionPolicy": "Delete", "Properties": { "DestinationBucketName": { "Ref": "SitewebsiteBucketBC20A569", }, "DistributionId": { "Ref": "SiteCloudfrontDistribution0794B6B8", }, "DistributionPaths": [ "/*", ], "Prune": true, "ServiceToken": { "Fn::GetAtt": [ "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C81C01536", "Arn", ], }, "SourceBucketNames": [ { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, ], "SourceMarkers": [ {}, { "<>": { "Ref": "infrastructureChimeSDKPSTNAudioUpdate61F7534F", }, "<>": { "Ref": "AWS::Region", }, "<>": { "Ref": "AWS::URLSuffix", }, "<>": { "Ref": "infrastructureChimeSDKPSTNAudioUpdateDeploymentStageprodE1AF9CED", }, }, ], "SourceObjectKeys": [ "d23ac60c296e38c9cd36e492f2d80f7c48e1f4bbfd9721c7f52a8f86e3f94538.zip", "54db0af5da74dab89a93c249167c5b162223925d4c9385ff9262a09b67c99244.zip", ], }, "Type": "Custom::CDKBucketDeployment", "UpdateReplacePolicy": "Delete", }, "SitewebsiteBucketAutoDeleteObjectsCustomResourceB62EAF63": { "DeletionPolicy": "Delete", "DependsOn": [ "SitewebsiteBucketPolicyC20F0243", ], "Properties": { "BucketName": { "Ref": "SitewebsiteBucketBC20A569", }, "ServiceToken": { "Fn::GetAtt": [ "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "Arn", ], }, }, "Type": "Custom::S3AutoDeleteObjects", "UpdateReplacePolicy": "Delete", }, "SitewebsiteBucketBC20A569": { "DeletionPolicy": "Delete", "Properties": { "Tags": [ { "Key": "aws-cdk:auto-delete-objects", "Value": "true", }, { "Key": "aws-cdk:cr-owned:7d2ce709", "Value": "true", }, ], }, "Type": "AWS::S3::Bucket", "UpdateReplacePolicy": "Delete", }, "SitewebsiteBucketPolicyC20F0243": { "Properties": { "Bucket": { "Ref": "SitewebsiteBucketBC20A569", }, "PolicyDocument": { "Statement": [ { "Action": [ "s3:GetBucket*", "s3:List*", "s3:DeleteObject*", ], "Effect": "Allow", "Principal": { "AWS": { "Fn::GetAtt": [ "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", "Arn", ], }, }, "Resource": [ { "Fn::GetAtt": [ "SitewebsiteBucketBC20A569", "Arn", ], }, { "Fn::Join": [ "", [ { "Fn::GetAtt": [ "SitewebsiteBucketBC20A569", "Arn", ], }, "/*", ], ], }, ], }, { "Action": "s3:GetObject", "Effect": "Allow", "Principal": { "CanonicalUser": { "Fn::GetAtt": [ "SiteCloudfrontDistributionOrigin1S3Origin4F2AB6D1", "S3CanonicalUserId", ], }, }, "Resource": { "Fn::Join": [ "", [ { "Fn::GetAtt": [ "SitewebsiteBucketBC20A569", "Arn", ], }, "/*", ], ], }, }, ], "Version": "2012-10-17", }, }, "Type": "AWS::S3::BucketPolicy", }, "infrastructureChimeSDKPSTNAudioUpdate61F7534F": { "Properties": { "EndpointConfiguration": { "Types": [ "REGIONAL", ], }, "Name": "ChimeSDKPSTNAudioUpdate", }, "Type": "AWS::ApiGateway::RestApi", }, "infrastructureChimeSDKPSTNAudioUpdateAccount29B7FC26": { "DeletionPolicy": "Retain", "DependsOn": [ "infrastructureChimeSDKPSTNAudioUpdate61F7534F", ], "Properties": { "CloudWatchRoleArn": { "Fn::GetAtt": [ "infrastructureChimeSDKPSTNAudioUpdateCloudWatchRole26DF1C23", "Arn", ], }, }, "Type": "AWS::ApiGateway::Account", "UpdateReplacePolicy": "Retain", }, "infrastructureChimeSDKPSTNAudioUpdateCloudWatchRole26DF1C23": { "DeletionPolicy": "Retain", "Properties": { "AssumeRolePolicyDocument": { "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "Service": "apigateway.amazonaws.com", }, }, ], "Version": "2012-10-17", }, "ManagedPolicyArns": [ { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":iam::aws:policy/service-role/AmazonAPIGatewayPushToCloudWatchLogs", ], ], }, ], }, "Type": "AWS::IAM::Role", "UpdateReplacePolicy": "Retain", }, "infrastructureChimeSDKPSTNAudioUpdateDeployment1EBE23388fc624619c7b98eec95f58a0dd7babd7": { "DependsOn": [ "infrastructureChimeSDKPSTNAudioUpdateOPTIONS59A04900", "infrastructureChimeSDKPSTNAudioUpdatequeryMeetingsOPTIONS60CC2D51", "infrastructureChimeSDKPSTNAudioUpdatequeryMeetingsPOSTDA30B456", "infrastructureChimeSDKPSTNAudioUpdatequeryMeetingsB4C52E01", "infrastructureChimeSDKPSTNAudioUpdateupdateCallNodeOPTIONS0D311FCB", "infrastructureChimeSDKPSTNAudioUpdateupdateCallNodePOST7FBC0C31", "infrastructureChimeSDKPSTNAudioUpdateupdateCallNode31009A02", "infrastructureChimeSDKPSTNAudioUpdateupdateCallPythonOPTIONS415172FD", "infrastructureChimeSDKPSTNAudioUpdateupdateCallPythonPOST7D6D7673", "infrastructureChimeSDKPSTNAudioUpdateupdateCallPython31BE3EFB", ], "Properties": { "Description": "Automatically created by the RestApi construct", "RestApiId": { "Ref": "infrastructureChimeSDKPSTNAudioUpdate61F7534F", }, }, "Type": "AWS::ApiGateway::Deployment", }, "infrastructureChimeSDKPSTNAudioUpdateDeploymentStageprodE1AF9CED": { "DependsOn": [ "infrastructureChimeSDKPSTNAudioUpdateAccount29B7FC26", ], "Properties": { "DeploymentId": { "Ref": "infrastructureChimeSDKPSTNAudioUpdateDeployment1EBE23388fc624619c7b98eec95f58a0dd7babd7", }, "MethodSettings": [ { "DataTraceEnabled": true, "HttpMethod": "*", "LoggingLevel": "INFO", "ResourcePath": "/*", }, ], "RestApiId": { "Ref": "infrastructureChimeSDKPSTNAudioUpdate61F7534F", }, "StageName": "prod", }, "Type": "AWS::ApiGateway::Stage", }, "infrastructureChimeSDKPSTNAudioUpdateOPTIONS59A04900": { "Properties": { "ApiKeyRequired": false, "AuthorizationType": "NONE", "HttpMethod": "OPTIONS", "Integration": { "IntegrationResponses": [ { "ResponseParameters": { "method.response.header.Access-Control-Allow-Credentials": "'true'", "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key'", "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,POST'", "method.response.header.Access-Control-Allow-Origin": "'*'", }, "StatusCode": "204", }, ], "RequestTemplates": { "application/json": "{ statusCode: 200 }", }, "Type": "MOCK", }, "MethodResponses": [ { "ResponseParameters": { "method.response.header.Access-Control-Allow-Credentials": true, "method.response.header.Access-Control-Allow-Headers": true, "method.response.header.Access-Control-Allow-Methods": true, "method.response.header.Access-Control-Allow-Origin": true, }, "StatusCode": "204", }, ], "ResourceId": { "Fn::GetAtt": [ "infrastructureChimeSDKPSTNAudioUpdate61F7534F", "RootResourceId", ], }, "RestApiId": { "Ref": "infrastructureChimeSDKPSTNAudioUpdate61F7534F", }, }, "Type": "AWS::ApiGateway::Method", }, "infrastructureChimeSDKPSTNAudioUpdatequeryMeetingsB4C52E01": { "Properties": { "ParentId": { "Fn::GetAtt": [ "infrastructureChimeSDKPSTNAudioUpdate61F7534F", "RootResourceId", ], }, "PathPart": "queryMeetings", "RestApiId": { "Ref": "infrastructureChimeSDKPSTNAudioUpdate61F7534F", }, }, "Type": "AWS::ApiGateway::Resource", }, "infrastructureChimeSDKPSTNAudioUpdatequeryMeetingsOPTIONS60CC2D51": { "Properties": { "ApiKeyRequired": false, "AuthorizationType": "NONE", "HttpMethod": "OPTIONS", "Integration": { "IntegrationResponses": [ { "ResponseParameters": { "method.response.header.Access-Control-Allow-Credentials": "'true'", "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key'", "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,POST'", "method.response.header.Access-Control-Allow-Origin": "'*'", }, "StatusCode": "204", }, ], "RequestTemplates": { "application/json": "{ statusCode: 200 }", }, "Type": "MOCK", }, "MethodResponses": [ { "ResponseParameters": { "method.response.header.Access-Control-Allow-Credentials": true, "method.response.header.Access-Control-Allow-Headers": true, "method.response.header.Access-Control-Allow-Methods": true, "method.response.header.Access-Control-Allow-Origin": true, }, "StatusCode": "204", }, ], "ResourceId": { "Ref": "infrastructureChimeSDKPSTNAudioUpdatequeryMeetingsB4C52E01", }, "RestApiId": { "Ref": "infrastructureChimeSDKPSTNAudioUpdate61F7534F", }, }, "Type": "AWS::ApiGateway::Method", }, "infrastructureChimeSDKPSTNAudioUpdatequeryMeetingsPOSTApiPermissionTesttestinfrastructureChimeSDKPSTNAudioUpdate68A1464APOSTqueryMeetings85F55C71": { "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { "Fn::GetAtt": [ "infrastructuremeetingLambda262F5C95", "Arn", ], }, "Principal": "apigateway.amazonaws.com", "SourceArn": { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":execute-api:", { "Ref": "AWS::Region", }, ":", { "Ref": "AWS::AccountId", }, ":", { "Ref": "infrastructureChimeSDKPSTNAudioUpdate61F7534F", }, "/test-invoke-stage/POST/queryMeetings", ], ], }, }, "Type": "AWS::Lambda::Permission", }, "infrastructureChimeSDKPSTNAudioUpdatequeryMeetingsPOSTApiPermissiontestinfrastructureChimeSDKPSTNAudioUpdate68A1464APOSTqueryMeetingsD964170D": { "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { "Fn::GetAtt": [ "infrastructuremeetingLambda262F5C95", "Arn", ], }, "Principal": "apigateway.amazonaws.com", "SourceArn": { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":execute-api:", { "Ref": "AWS::Region", }, ":", { "Ref": "AWS::AccountId", }, ":", { "Ref": "infrastructureChimeSDKPSTNAudioUpdate61F7534F", }, "/", { "Ref": "infrastructureChimeSDKPSTNAudioUpdateDeploymentStageprodE1AF9CED", }, "/POST/queryMeetings", ], ], }, }, "Type": "AWS::Lambda::Permission", }, "infrastructureChimeSDKPSTNAudioUpdatequeryMeetingsPOSTDA30B456": { "Properties": { "AuthorizationType": "NONE", "HttpMethod": "POST", "Integration": { "IntegrationHttpMethod": "POST", "Type": "AWS_PROXY", "Uri": { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":apigateway:", { "Ref": "AWS::Region", }, ":lambda:path/2015-03-31/functions/", { "Fn::GetAtt": [ "infrastructuremeetingLambda262F5C95", "Arn", ], }, "/invocations", ], ], }, }, "ResourceId": { "Ref": "infrastructureChimeSDKPSTNAudioUpdatequeryMeetingsB4C52E01", }, "RestApiId": { "Ref": "infrastructureChimeSDKPSTNAudioUpdate61F7534F", }, }, "Type": "AWS::ApiGateway::Method", }, "infrastructureChimeSDKPSTNAudioUpdateupdateCallNode31009A02": { "Properties": { "ParentId": { "Fn::GetAtt": [ "infrastructureChimeSDKPSTNAudioUpdate61F7534F", "RootResourceId", ], }, "PathPart": "updateCallNode", "RestApiId": { "Ref": "infrastructureChimeSDKPSTNAudioUpdate61F7534F", }, }, "Type": "AWS::ApiGateway::Resource", }, "infrastructureChimeSDKPSTNAudioUpdateupdateCallNodeOPTIONS0D311FCB": { "Properties": { "ApiKeyRequired": false, "AuthorizationType": "NONE", "HttpMethod": "OPTIONS", "Integration": { "IntegrationResponses": [ { "ResponseParameters": { "method.response.header.Access-Control-Allow-Credentials": "'true'", "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key'", "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,POST'", "method.response.header.Access-Control-Allow-Origin": "'*'", }, "StatusCode": "204", }, ], "RequestTemplates": { "application/json": "{ statusCode: 200 }", }, "Type": "MOCK", }, "MethodResponses": [ { "ResponseParameters": { "method.response.header.Access-Control-Allow-Credentials": true, "method.response.header.Access-Control-Allow-Headers": true, "method.response.header.Access-Control-Allow-Methods": true, "method.response.header.Access-Control-Allow-Origin": true, }, "StatusCode": "204", }, ], "ResourceId": { "Ref": "infrastructureChimeSDKPSTNAudioUpdateupdateCallNode31009A02", }, "RestApiId": { "Ref": "infrastructureChimeSDKPSTNAudioUpdate61F7534F", }, }, "Type": "AWS::ApiGateway::Method", }, "infrastructureChimeSDKPSTNAudioUpdateupdateCallNodePOST7FBC0C31": { "Properties": { "AuthorizationType": "NONE", "HttpMethod": "POST", "Integration": { "IntegrationHttpMethod": "POST", "Type": "AWS_PROXY", "Uri": { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":apigateway:", { "Ref": "AWS::Region", }, ":lambda:path/2015-03-31/functions/", { "Fn::GetAtt": [ "infrastructureupdateCallNodeLambda3955D30C", "Arn", ], }, "/invocations", ], ], }, }, "ResourceId": { "Ref": "infrastructureChimeSDKPSTNAudioUpdateupdateCallNode31009A02", }, "RestApiId": { "Ref": "infrastructureChimeSDKPSTNAudioUpdate61F7534F", }, }, "Type": "AWS::ApiGateway::Method", }, "infrastructureChimeSDKPSTNAudioUpdateupdateCallNodePOSTApiPermissionTesttestinfrastructureChimeSDKPSTNAudioUpdate68A1464APOSTupdateCallNodeE8D03D68": { "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { "Fn::GetAtt": [ "infrastructureupdateCallNodeLambda3955D30C", "Arn", ], }, "Principal": "apigateway.amazonaws.com", "SourceArn": { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":execute-api:", { "Ref": "AWS::Region", }, ":", { "Ref": "AWS::AccountId", }, ":", { "Ref": "infrastructureChimeSDKPSTNAudioUpdate61F7534F", }, "/test-invoke-stage/POST/updateCallNode", ], ], }, }, "Type": "AWS::Lambda::Permission", }, "infrastructureChimeSDKPSTNAudioUpdateupdateCallNodePOSTApiPermissiontestinfrastructureChimeSDKPSTNAudioUpdate68A1464APOSTupdateCallNodeDD60557B": { "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { "Fn::GetAtt": [ "infrastructureupdateCallNodeLambda3955D30C", "Arn", ], }, "Principal": "apigateway.amazonaws.com", "SourceArn": { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":execute-api:", { "Ref": "AWS::Region", }, ":", { "Ref": "AWS::AccountId", }, ":", { "Ref": "infrastructureChimeSDKPSTNAudioUpdate61F7534F", }, "/", { "Ref": "infrastructureChimeSDKPSTNAudioUpdateDeploymentStageprodE1AF9CED", }, "/POST/updateCallNode", ], ], }, }, "Type": "AWS::Lambda::Permission", }, "infrastructureChimeSDKPSTNAudioUpdateupdateCallPython31BE3EFB": { "Properties": { "ParentId": { "Fn::GetAtt": [ "infrastructureChimeSDKPSTNAudioUpdate61F7534F", "RootResourceId", ], }, "PathPart": "updateCallPython", "RestApiId": { "Ref": "infrastructureChimeSDKPSTNAudioUpdate61F7534F", }, }, "Type": "AWS::ApiGateway::Resource", }, "infrastructureChimeSDKPSTNAudioUpdateupdateCallPythonOPTIONS415172FD": { "Properties": { "ApiKeyRequired": false, "AuthorizationType": "NONE", "HttpMethod": "OPTIONS", "Integration": { "IntegrationResponses": [ { "ResponseParameters": { "method.response.header.Access-Control-Allow-Credentials": "'true'", "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key'", "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,POST'", "method.response.header.Access-Control-Allow-Origin": "'*'", }, "StatusCode": "204", }, ], "RequestTemplates": { "application/json": "{ statusCode: 200 }", }, "Type": "MOCK", }, "MethodResponses": [ { "ResponseParameters": { "method.response.header.Access-Control-Allow-Credentials": true, "method.response.header.Access-Control-Allow-Headers": true, "method.response.header.Access-Control-Allow-Methods": true, "method.response.header.Access-Control-Allow-Origin": true, }, "StatusCode": "204", }, ], "ResourceId": { "Ref": "infrastructureChimeSDKPSTNAudioUpdateupdateCallPython31BE3EFB", }, "RestApiId": { "Ref": "infrastructureChimeSDKPSTNAudioUpdate61F7534F", }, }, "Type": "AWS::ApiGateway::Method", }, "infrastructureChimeSDKPSTNAudioUpdateupdateCallPythonPOST7D6D7673": { "Properties": { "AuthorizationType": "NONE", "HttpMethod": "POST", "Integration": { "IntegrationHttpMethod": "POST", "Type": "AWS_PROXY", "Uri": { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":apigateway:", { "Ref": "AWS::Region", }, ":lambda:path/2015-03-31/functions/", { "Fn::GetAtt": [ "infrastructureupdateCallPythonLambda0B04AE94", "Arn", ], }, "/invocations", ], ], }, }, "ResourceId": { "Ref": "infrastructureChimeSDKPSTNAudioUpdateupdateCallPython31BE3EFB", }, "RestApiId": { "Ref": "infrastructureChimeSDKPSTNAudioUpdate61F7534F", }, }, "Type": "AWS::ApiGateway::Method", }, "infrastructureChimeSDKPSTNAudioUpdateupdateCallPythonPOSTApiPermissionTesttestinfrastructureChimeSDKPSTNAudioUpdate68A1464APOSTupdateCallPythonA8B95E8D": { "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { "Fn::GetAtt": [ "infrastructureupdateCallPythonLambda0B04AE94", "Arn", ], }, "Principal": "apigateway.amazonaws.com", "SourceArn": { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":execute-api:", { "Ref": "AWS::Region", }, ":", { "Ref": "AWS::AccountId", }, ":", { "Ref": "infrastructureChimeSDKPSTNAudioUpdate61F7534F", }, "/test-invoke-stage/POST/updateCallPython", ], ], }, }, "Type": "AWS::Lambda::Permission", }, "infrastructureChimeSDKPSTNAudioUpdateupdateCallPythonPOSTApiPermissiontestinfrastructureChimeSDKPSTNAudioUpdate68A1464APOSTupdateCallPythonF130FC61": { "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { "Fn::GetAtt": [ "infrastructureupdateCallPythonLambda0B04AE94", "Arn", ], }, "Principal": "apigateway.amazonaws.com", "SourceArn": { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":execute-api:", { "Ref": "AWS::Region", }, ":", { "Ref": "AWS::AccountId", }, ":", { "Ref": "infrastructureChimeSDKPSTNAudioUpdate61F7534F", }, "/", { "Ref": "infrastructureChimeSDKPSTNAudioUpdateDeploymentStageprodE1AF9CED", }, "/POST/updateCallPython", ], ], }, }, "Type": "AWS::Lambda::Permission", }, "infrastructureinfrastructureRole7CDA6EE1": { "Properties": { "AssumeRolePolicyDocument": { "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "Service": "lambda.amazonaws.com", }, }, ], "Version": "2012-10-17", }, "ManagedPolicyArns": [ { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", ], ], }, ], "Policies": [ { "PolicyDocument": { "Statement": [ { "Action": "chime:*", "Effect": "Allow", "Resource": "*", }, ], "Version": "2012-10-17", }, "PolicyName": "chimePolicy", }, ], }, "Type": "AWS::IAM::Role", }, "infrastructureinfrastructureRoleDefaultPolicy8A8149BB": { "Properties": { "PolicyDocument": { "Statement": [ { "Action": [ "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": [ { "Fn::GetAtt": [ "DatabasemeetingInfoTableB2C41513", "Arn", ], }, { "Fn::Join": [ "", [ { "Fn::GetAtt": [ "DatabasemeetingInfoTableB2C41513", "Arn", ], }, "/index/*", ], ], }, ], }, ], "Version": "2012-10-17", }, "PolicyName": "infrastructureinfrastructureRoleDefaultPolicy8A8149BB", "Roles": [ { "Ref": "infrastructureinfrastructureRole7CDA6EE1", }, ], }, "Type": "AWS::IAM::Policy", }, "infrastructuremeetingLambda262F5C95": { "DependsOn": [ "infrastructureinfrastructureRoleDefaultPolicy8A8149BB", "infrastructureinfrastructureRole7CDA6EE1", ], "Properties": { "Architectures": [ "arm64", ], "Code": { "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, "S3Key": "161d686c8c2cb344edb223574e77aedcb3e5ed70b6387aa5c0a41b506fe25961.zip", }, "Environment": { "Variables": { "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1", "MEETING_INFO": { "Ref": "DatabasemeetingInfoTableB2C41513", }, }, }, "Handler": "index.handler", "Role": { "Fn::GetAtt": [ "infrastructureinfrastructureRole7CDA6EE1", "Arn", ], }, "Runtime": "nodejs16.x", "Timeout": 60, }, "Type": "AWS::Lambda::Function", }, "infrastructureupdateCallNodeLambda3955D30C": { "DependsOn": [ "infrastructureupdateCallRoleB1E3DEFC", ], "Properties": { "Code": { "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, "S3Key": "1a31569d9368713ada0487b4458016b68ade8e54b25f60d90638bead6ba5a84d.zip", }, "Environment": { "Variables": { "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1", "SMA_ID": { "Fn::GetAtt": [ "ChimesipMediaAppsipMediaAppRequestpstnCustomResource505FA3C9", "sipMediaAppId", ], }, }, }, "Handler": "index.handler", "Role": { "Fn::GetAtt": [ "infrastructureupdateCallRoleB1E3DEFC", "Arn", ], }, "Runtime": "nodejs16.x", }, "Type": "AWS::Lambda::Function", }, "infrastructureupdateCallPythonLambda0B04AE94": { "DependsOn": [ "infrastructureupdateCallRoleB1E3DEFC", ], "Properties": { "Code": { "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, "S3Key": "cf11172613721bc9dcac787fcfd2be713fcc0a80e046a2cfb73ca7634bccba72.zip", }, "Environment": { "Variables": { "SMA_ID": { "Fn::GetAtt": [ "ChimesipMediaAppsipMediaAppRequestpstnCustomResource505FA3C9", "sipMediaAppId", ], }, }, }, "Handler": "updateCall.lambda_handler", "Role": { "Fn::GetAtt": [ "infrastructureupdateCallRoleB1E3DEFC", "Arn", ], }, "Runtime": "python3.9", }, "Type": "AWS::Lambda::Function", }, "infrastructureupdateCallRoleB1E3DEFC": { "Properties": { "AssumeRolePolicyDocument": { "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "Service": "lambda.amazonaws.com", }, }, ], "Version": "2012-10-17", }, "ManagedPolicyArns": [ { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", ], ], }, ], "Policies": [ { "PolicyDocument": { "Statement": [ { "Action": "chime:*", "Effect": "Allow", "Resource": "*", }, ], "Version": "2012-10-17", }, "PolicyName": "chimePolicy", }, ], }, "Type": "AWS::IAM::Role", }, }, "Rules": { "CheckBootstrapVersion": { "Assertions": [ { "Assert": { "Fn::Not": [ { "Fn::Contains": [ [ "1", "2", "3", "4", "5", ], { "Ref": "BootstrapVersion", }, ], }, ], }, "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI.", }, ], }, }, } `;