diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js similarity index 70% rename from packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js index 1b0227e9abb22..c58c31d67d083 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js @@ -1 +1 @@ -"use strict";var ce=Object.create;var A=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var ge=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)A(e,a,{get:t[a],enumerable:!0})},_=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pe(t))!de.call(e,i)&&i!==a&&A(e,i,{get:()=>t[i],enumerable:!(r=le(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?ce(ue(e)):{},_(t||!e||!e.__esModule?A(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>_(A({},"__esModule",{value:!0}),e);function Se(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?me.decode(e.buffer):e}function b(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=Se(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function k(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function w(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((u,l)=>{try{let c=require("https").request(s,u);c.on("error",l),c.write(o),c.end()}catch(c){l(c)}})}function S(e){if(e)return JSON.parse(e)}function P(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,me,D=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",me=new TextDecoder});var K={};y(K,{forceSdkInstallation:()=>ye,handler:()=>Re});function ye(){M=!1}function fe(){console.log("Installing latest AWS SDK v2"),(0,U.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),M=!0}function he(e){let t=e.apiLoader;return Ce.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,u=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!M&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{fe(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else M?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=he(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let l=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${l}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let u=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let l=await u[n.action](n.parameters&&k(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...b(l)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=w(i,P(c)):o=i}catch(l){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(l.code))throw l}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var U,B,T,M,Ce,N=d(()=>{"use strict";U=require("child_process"),B=E(require("fs")),T=require("path");D();M=!1;Ce=[]});var q,G=d(()=>{"use strict";q={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var j={};y(j,{coerceApiParametersToUint8Array:()=>Ae,coerceToUint8Array:()=>v});function Ae(e,t,a={}){let r=q?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)v(a,i.split("."));return a}function v(e,t){return t.length===0?be(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>v(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=v(e[t[0]],t.slice(1))),e)}function be(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var $=d(()=>{"use strict";G()});var H={};y(H,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var z,Z=d(()=>{"use strict";z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,Q=d(()=>{"use strict";Z();F={...z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var J={};y(J,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";Q();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var Y={};y(Y,{getV3Client:()=>we,getV3Command:()=>Pe,loadV3ClientPackage:()=>ke});function ke(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function we(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Pe(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var X=d(()=>{"use strict";x();W()});var ee=ge(p=>{"use strict";var De=p&&p.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Me=p&&p.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(p,"__esModule",{value:!0});p.getV3ClientPackageName=p.findV3ClientConstructor=p.coerceApiParametersToUint8Array=void 0;var ve=($(),f(j));Object.defineProperty(p,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return ve.coerceApiParametersToUint8Array}});var Ie=(x(),f(H));Object.defineProperty(p,"findV3ClientConstructor",{enumerable:!0,get:function(){return Ie.findV3ClientConstructor}});var Ee=(W(),f(J));Object.defineProperty(p,"getV3ClientPackageName",{enumerable:!0,get:function(){return Ee.getV3ClientPackageName}});Me((X(),f(Y)),p)});var ae={};y(ae,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Be(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,te.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),h={...h,[e]:!0}}async function Te(e,t){let a;try{if(!h[e]&&t==="true")try{Be(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else h[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Oe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,I.getV3ClientPackageName)(i.service),n=Te(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let s;if(i.assumedRoleArn){let g=new Date().getTime(),m={RoleArn:i.assumedRoleArn,RoleSessionName:`${g}-${r}`.substring(0,64)},{fromTemporaryCredentials:se}=await import("@aws-sdk/credential-providers");s=se({params:m,clientConfig:i.region!==void 0?{region:i.region}:void 0})}n=await n;let u=(0,I.findV3ClientConstructor)(n),l=new u({apiVersion:i.apiVersion,credentials:s,region:i.region}),c=i.action.endsWith("Command")?i.action:`${i.action}Command`,oe=Object.entries(n).find(([g])=>g.toLowerCase()===c.toLowerCase())?.[1],R={};try{let g=await l.send(new oe((i.parameters&&k(i.parameters,r))??{}));R={apiVersion:l.config.apiVersion,region:await l.config.region().catch(()=>{}),...b(g)};let m;i.outputPath?m=[i.outputPath]:i.outputPaths&&(m=i.outputPaths),m?a=w(R,P(m)):a=R}catch(g){let m=g.name??g.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(m))throw g}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var te,I,h,ie=d(()=>{"use strict";te=require("child_process"),I=E(ee());D();h={}});var Fe={};y(Fe,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>xe,v2handler:()=>re,v3handler:()=>ne});module.exports=f(Fe);D();function re(e,t){return(N(),f(K)).handler(e,t)}function ne(e,t){return(ie(),f(ae)).handler(e,t)}function xe(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?ne(e,t):re(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); +"use strict";var pe=Object.create;var b=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var me=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)b(e,a,{get:t[a],enumerable:!0})},U=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&b(e,i,{get:()=>t[i],enumerable:!(r=ue(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?pe(me(e)):{},U(t||!e||!e.__esModule?b(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>U(b({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?ye.decode(e.buffer):e}function k(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=fe(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function w(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function P(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((p,u)=>{try{let c=require("https").request(s,p);c.on("error",u),c.write(o),c.end()}catch(c){u(c)}})}function S(e){if(e)return JSON.parse(e)}function D(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,ye,M=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",ye=new TextDecoder});var N={};y(N,{forceSdkInstallation:()=>Ce,handler:()=>be});function Ce(){v=!1}function he(){console.log("Installing latest AWS SDK v2"),(0,K.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function Ae(e){let t=e.apiLoader;return Re.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,p=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return p.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,p},enumerable:!0,configurable:!0})})}),e}async function be(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{he(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else v?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=Ae(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let u=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${u}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let p=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let u=await p[n.action](n.parameters&&w(n.parameters,r)).promise();i={apiVersion:p.config.apiVersion,region:p.config.region,...k(u)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=P(i,D(c)):o=i}catch(u){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(u.code))throw u}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var K,B,T,v,Re,q=d(()=>{"use strict";K=require("child_process"),B=E(require("fs")),T=require("path");M();v=!1;Re=[]});var G,j=d(()=>{"use strict";G={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var $={};y($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>I});function ke(e,t,a={}){let r=G?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)I(a,i.split("."));return a}function I(e,t){return t.length===0?we(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>I(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=I(e[t[0]],t.slice(1))),e)}function we(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var H=d(()=>{"use strict";j()});var z={};y(z,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Z,Q=d(()=>{"use strict";Z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,J=d(()=>{"use strict";Q();F={...Z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var Y={};y(Y,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";J();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var X={};y(X,{getV3Client:()=>De,getV3Command:()=>Me,loadV3ClientPackage:()=>Pe});function Pe(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function De(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Me(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var ee=d(()=>{"use strict";x();W()});var te=Se(l=>{"use strict";var ve=l&&l.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Ie=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&ve(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Ee=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Ee.coerceApiParametersToUint8Array}});var Le=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Le.findV3ClientConstructor}});var Be=(W(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return Be.getV3ClientPackageName}});Ie((ee(),f(X)),l)});var ie={};y(ie,{forceSdkInstallation:()=>Te,handler:()=>Fe});function Te(){R={}}function Oe(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,ae.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),R={...R,[e]:!0}}async function xe(e,t){let a;try{if(!R[e]&&t==="true")try{Oe(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else R[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Fe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,h.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let p;if(i.assumedRoleArn){let m=new Date().getTime(),g={RoleArn:i.assumedRoleArn,RoleSessionName:`${m}-${r}`.substring(0,64)},{fromTemporaryCredentials:le}=await import("@aws-sdk/credential-providers");p=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let u=(0,h.findV3ClientConstructor)(s),c=new u({apiVersion:i.apiVersion,credentials:p,region:i.region}),_=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=_.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===_.toLowerCase())?.[1],A={};try{let m=await c.send(new ce(i.parameters?(0,h.coerceApiParametersToUint8Array)(n,se,w(i.parameters,r)):{}));A={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...k(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=P(A,D(g)):a=A}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=A[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,h,R,re=d(()=>{"use strict";ae=require("child_process"),h=E(te());M();R={}});var We={};y(We,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>Ve,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(We);M();function ne(e,t){return(q(),f(N)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Ve(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?oe(e,t):ne(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/integ-cognito.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/integ-cognito.assets.json index 360d20ef0a7ce..2bc30d8fd1845 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/integ-cognito.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/integ-cognito.assets.json @@ -1,15 +1,15 @@ { "version": "34.0.0", "files": { - "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038": { + "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { "source": { - "path": "asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038", + "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip", + "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } @@ -27,7 +27,7 @@ } } }, - "ab0d9b313b4f2204e0b3f209c6e8b9ab0587fe0f522a92ba8d183d0110cf67a0": { + "138ef46e68c06b10d1d1954083ce1b05447a02cb1291c497797a82ec3d370019": { "source": { "path": "integ-cognito.template.json", "packaging": "file" @@ -35,7 +35,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "ab0d9b313b4f2204e0b3f209c6e8b9ab0587fe0f522a92ba8d183d0110cf67a0.json", + "objectKey": "138ef46e68c06b10d1d1954083ce1b05447a02cb1291c497797a82ec3d370019.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/integ-cognito.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/integ-cognito.template.json index 1b130754c3f31..42a9ea764674b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/integ-cognito.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/integ-cognito.template.json @@ -827,7 +827,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "S3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "Handler": "index.handler", "Role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/integtestcognitoDefaultTestDeployAssert6F2623C9.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/integtestcognitoDefaultTestDeployAssert6F2623C9.assets.json index be61b32ac1e44..1a439771cb0c1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/integtestcognitoDefaultTestDeployAssert6F2623C9.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/integtestcognitoDefaultTestDeployAssert6F2623C9.assets.json @@ -14,7 +14,7 @@ } } }, - "1207f64db26d88cadd34b49497a5303c70fe0e8a086c1da277f11ab9750e9ebc": { + "504170b68c2138b2272e8dbf831c9ada39b375e8de4d4311494e65fa6a8c6aad": { "source": { "path": "integtestcognitoDefaultTestDeployAssert6F2623C9.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "1207f64db26d88cadd34b49497a5303c70fe0e8a086c1da277f11ab9750e9ebc.json", + "objectKey": "504170b68c2138b2272e8dbf831c9ada39b375e8de4d4311494e65fa6a8c6aad.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/integtestcognitoDefaultTestDeployAssert6F2623C9.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/integtestcognitoDefaultTestDeployAssert6F2623C9.template.json index 4bc767c3b5e10..a02adda552624 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/integtestcognitoDefaultTestDeployAssert6F2623C9.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/integtestcognitoDefaultTestDeployAssert6F2623C9.template.json @@ -27,7 +27,7 @@ } }, "flattenResponse": "false", - "salt": "1694176690688" + "salt": "1694180759409" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/manifest.json index c0d3198a4541e..59f2a447f61d8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/manifest.json @@ -17,7 +17,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ab0d9b313b4f2204e0b3f209c6e8b9ab0587fe0f522a92ba8d183d0110cf67a0.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/138ef46e68c06b10d1d1954083ce1b05447a02cb1291c497797a82ec3d370019.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -316,7 +316,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1207f64db26d88cadd34b49497a5303c70fe0e8a086c1da277f11ab9750e9ebc.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/504170b68c2138b2272e8dbf831c9ada39b375e8de4d4311494e65fa6a8c6aad.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/tree.json index ce586ac8e86c4..e2e9e011bd676 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/tree.json @@ -1362,7 +1362,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "s3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "handler": "index.handler", "role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/IntegAlbOidc.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/IntegAlbOidc.assets.json index 224b9fb7fc75d..8435656910020 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/IntegAlbOidc.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/IntegAlbOidc.assets.json @@ -14,15 +14,15 @@ } } }, - "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038": { + "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { "source": { - "path": "asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038", + "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip", + "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } @@ -40,7 +40,7 @@ } } }, - "f6f5d829a740fdff7d657a795947b972b2ae71de40310abd5f74499f76ead7bf": { + "091fe950bd584de4a1808864a3e9e4ed96da0ec658ecc23ad243c71c846ca9ae": { "source": { "path": "IntegAlbOidc.template.json", "packaging": "file" @@ -48,7 +48,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "f6f5d829a740fdff7d657a795947b972b2ae71de40310abd5f74499f76ead7bf.json", + "objectKey": "091fe950bd584de4a1808864a3e9e4ed96da0ec658ecc23ad243c71c846ca9ae.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/IntegAlbOidc.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/IntegAlbOidc.template.json index eaa6f5653fada..5f3abf10532be 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/IntegAlbOidc.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/IntegAlbOidc.template.json @@ -895,7 +895,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "S3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "Handler": "index.handler", "Role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/IntegTestAlbOidcDefaultTestDeployAssert2476ECB6.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/IntegTestAlbOidcDefaultTestDeployAssert2476ECB6.assets.json index 714a761b7ad6e..ee89ad95ef22a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/IntegTestAlbOidcDefaultTestDeployAssert2476ECB6.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/IntegTestAlbOidcDefaultTestDeployAssert2476ECB6.assets.json @@ -14,7 +14,7 @@ } } }, - "373e5d1278180181751a117499e32d5e375d64df47f43b3bfdabb0764b538eb9": { + "277b1c50e6ed841627166094c91d865aac621afb72f6fe6abffacf6788a4bb4b": { "source": { "path": "IntegTestAlbOidcDefaultTestDeployAssert2476ECB6.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "373e5d1278180181751a117499e32d5e375d64df47f43b3bfdabb0764b538eb9.json", + "objectKey": "277b1c50e6ed841627166094c91d865aac621afb72f6fe6abffacf6788a4bb4b.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/IntegTestAlbOidcDefaultTestDeployAssert2476ECB6.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/IntegTestAlbOidcDefaultTestDeployAssert2476ECB6.template.json index 9257be973f12e..604b65547a165 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/IntegTestAlbOidcDefaultTestDeployAssert2476ECB6.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/IntegTestAlbOidcDefaultTestDeployAssert2476ECB6.template.json @@ -27,7 +27,7 @@ } }, "flattenResponse": "false", - "salt": "1694176690770" + "salt": "1694180759459" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js similarity index 70% rename from packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js index 1b0227e9abb22..c58c31d67d083 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js @@ -1 +1 @@ -"use strict";var ce=Object.create;var A=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var ge=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)A(e,a,{get:t[a],enumerable:!0})},_=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pe(t))!de.call(e,i)&&i!==a&&A(e,i,{get:()=>t[i],enumerable:!(r=le(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?ce(ue(e)):{},_(t||!e||!e.__esModule?A(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>_(A({},"__esModule",{value:!0}),e);function Se(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?me.decode(e.buffer):e}function b(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=Se(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function k(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function w(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((u,l)=>{try{let c=require("https").request(s,u);c.on("error",l),c.write(o),c.end()}catch(c){l(c)}})}function S(e){if(e)return JSON.parse(e)}function P(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,me,D=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",me=new TextDecoder});var K={};y(K,{forceSdkInstallation:()=>ye,handler:()=>Re});function ye(){M=!1}function fe(){console.log("Installing latest AWS SDK v2"),(0,U.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),M=!0}function he(e){let t=e.apiLoader;return Ce.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,u=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!M&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{fe(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else M?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=he(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let l=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${l}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let u=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let l=await u[n.action](n.parameters&&k(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...b(l)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=w(i,P(c)):o=i}catch(l){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(l.code))throw l}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var U,B,T,M,Ce,N=d(()=>{"use strict";U=require("child_process"),B=E(require("fs")),T=require("path");D();M=!1;Ce=[]});var q,G=d(()=>{"use strict";q={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var j={};y(j,{coerceApiParametersToUint8Array:()=>Ae,coerceToUint8Array:()=>v});function Ae(e,t,a={}){let r=q?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)v(a,i.split("."));return a}function v(e,t){return t.length===0?be(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>v(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=v(e[t[0]],t.slice(1))),e)}function be(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var $=d(()=>{"use strict";G()});var H={};y(H,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var z,Z=d(()=>{"use strict";z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,Q=d(()=>{"use strict";Z();F={...z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var J={};y(J,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";Q();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var Y={};y(Y,{getV3Client:()=>we,getV3Command:()=>Pe,loadV3ClientPackage:()=>ke});function ke(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function we(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Pe(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var X=d(()=>{"use strict";x();W()});var ee=ge(p=>{"use strict";var De=p&&p.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Me=p&&p.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(p,"__esModule",{value:!0});p.getV3ClientPackageName=p.findV3ClientConstructor=p.coerceApiParametersToUint8Array=void 0;var ve=($(),f(j));Object.defineProperty(p,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return ve.coerceApiParametersToUint8Array}});var Ie=(x(),f(H));Object.defineProperty(p,"findV3ClientConstructor",{enumerable:!0,get:function(){return Ie.findV3ClientConstructor}});var Ee=(W(),f(J));Object.defineProperty(p,"getV3ClientPackageName",{enumerable:!0,get:function(){return Ee.getV3ClientPackageName}});Me((X(),f(Y)),p)});var ae={};y(ae,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Be(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,te.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),h={...h,[e]:!0}}async function Te(e,t){let a;try{if(!h[e]&&t==="true")try{Be(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else h[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Oe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,I.getV3ClientPackageName)(i.service),n=Te(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let s;if(i.assumedRoleArn){let g=new Date().getTime(),m={RoleArn:i.assumedRoleArn,RoleSessionName:`${g}-${r}`.substring(0,64)},{fromTemporaryCredentials:se}=await import("@aws-sdk/credential-providers");s=se({params:m,clientConfig:i.region!==void 0?{region:i.region}:void 0})}n=await n;let u=(0,I.findV3ClientConstructor)(n),l=new u({apiVersion:i.apiVersion,credentials:s,region:i.region}),c=i.action.endsWith("Command")?i.action:`${i.action}Command`,oe=Object.entries(n).find(([g])=>g.toLowerCase()===c.toLowerCase())?.[1],R={};try{let g=await l.send(new oe((i.parameters&&k(i.parameters,r))??{}));R={apiVersion:l.config.apiVersion,region:await l.config.region().catch(()=>{}),...b(g)};let m;i.outputPath?m=[i.outputPath]:i.outputPaths&&(m=i.outputPaths),m?a=w(R,P(m)):a=R}catch(g){let m=g.name??g.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(m))throw g}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var te,I,h,ie=d(()=>{"use strict";te=require("child_process"),I=E(ee());D();h={}});var Fe={};y(Fe,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>xe,v2handler:()=>re,v3handler:()=>ne});module.exports=f(Fe);D();function re(e,t){return(N(),f(K)).handler(e,t)}function ne(e,t){return(ie(),f(ae)).handler(e,t)}function xe(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?ne(e,t):re(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); +"use strict";var pe=Object.create;var b=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var me=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)b(e,a,{get:t[a],enumerable:!0})},U=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&b(e,i,{get:()=>t[i],enumerable:!(r=ue(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?pe(me(e)):{},U(t||!e||!e.__esModule?b(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>U(b({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?ye.decode(e.buffer):e}function k(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=fe(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function w(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function P(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((p,u)=>{try{let c=require("https").request(s,p);c.on("error",u),c.write(o),c.end()}catch(c){u(c)}})}function S(e){if(e)return JSON.parse(e)}function D(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,ye,M=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",ye=new TextDecoder});var N={};y(N,{forceSdkInstallation:()=>Ce,handler:()=>be});function Ce(){v=!1}function he(){console.log("Installing latest AWS SDK v2"),(0,K.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function Ae(e){let t=e.apiLoader;return Re.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,p=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return p.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,p},enumerable:!0,configurable:!0})})}),e}async function be(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{he(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else v?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=Ae(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let u=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${u}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let p=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let u=await p[n.action](n.parameters&&w(n.parameters,r)).promise();i={apiVersion:p.config.apiVersion,region:p.config.region,...k(u)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=P(i,D(c)):o=i}catch(u){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(u.code))throw u}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var K,B,T,v,Re,q=d(()=>{"use strict";K=require("child_process"),B=E(require("fs")),T=require("path");M();v=!1;Re=[]});var G,j=d(()=>{"use strict";G={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var $={};y($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>I});function ke(e,t,a={}){let r=G?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)I(a,i.split("."));return a}function I(e,t){return t.length===0?we(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>I(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=I(e[t[0]],t.slice(1))),e)}function we(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var H=d(()=>{"use strict";j()});var z={};y(z,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Z,Q=d(()=>{"use strict";Z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,J=d(()=>{"use strict";Q();F={...Z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var Y={};y(Y,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";J();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var X={};y(X,{getV3Client:()=>De,getV3Command:()=>Me,loadV3ClientPackage:()=>Pe});function Pe(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function De(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Me(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var ee=d(()=>{"use strict";x();W()});var te=Se(l=>{"use strict";var ve=l&&l.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Ie=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&ve(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Ee=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Ee.coerceApiParametersToUint8Array}});var Le=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Le.findV3ClientConstructor}});var Be=(W(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return Be.getV3ClientPackageName}});Ie((ee(),f(X)),l)});var ie={};y(ie,{forceSdkInstallation:()=>Te,handler:()=>Fe});function Te(){R={}}function Oe(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,ae.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),R={...R,[e]:!0}}async function xe(e,t){let a;try{if(!R[e]&&t==="true")try{Oe(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else R[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Fe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,h.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let p;if(i.assumedRoleArn){let m=new Date().getTime(),g={RoleArn:i.assumedRoleArn,RoleSessionName:`${m}-${r}`.substring(0,64)},{fromTemporaryCredentials:le}=await import("@aws-sdk/credential-providers");p=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let u=(0,h.findV3ClientConstructor)(s),c=new u({apiVersion:i.apiVersion,credentials:p,region:i.region}),_=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=_.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===_.toLowerCase())?.[1],A={};try{let m=await c.send(new ce(i.parameters?(0,h.coerceApiParametersToUint8Array)(n,se,w(i.parameters,r)):{}));A={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...k(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=P(A,D(g)):a=A}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=A[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,h,R,re=d(()=>{"use strict";ae=require("child_process"),h=E(te());M();R={}});var We={};y(We,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>Ve,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(We);M();function ne(e,t){return(q(),f(N)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Ve(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?oe(e,t):ne(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/manifest.json index 01c2fa83acfc1..6029a84280040 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/manifest.json @@ -17,7 +17,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f6f5d829a740fdff7d657a795947b972b2ae71de40310abd5f74499f76ead7bf.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/091fe950bd584de4a1808864a3e9e4ed96da0ec658ecc23ad243c71c846ca9ae.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -334,7 +334,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/373e5d1278180181751a117499e32d5e375d64df47f43b3bfdabb0764b538eb9.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/277b1c50e6ed841627166094c91d865aac621afb72f6fe6abffacf6788a4bb4b.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/tree.json index 4f0aefd09c188..feb25f99b05da 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/tree.json @@ -1265,7 +1265,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "s3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "handler": "index.handler", "role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js similarity index 70% rename from packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js index 1b0227e9abb22..c58c31d67d083 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js @@ -1 +1 @@ -"use strict";var ce=Object.create;var A=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var ge=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)A(e,a,{get:t[a],enumerable:!0})},_=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pe(t))!de.call(e,i)&&i!==a&&A(e,i,{get:()=>t[i],enumerable:!(r=le(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?ce(ue(e)):{},_(t||!e||!e.__esModule?A(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>_(A({},"__esModule",{value:!0}),e);function Se(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?me.decode(e.buffer):e}function b(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=Se(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function k(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function w(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((u,l)=>{try{let c=require("https").request(s,u);c.on("error",l),c.write(o),c.end()}catch(c){l(c)}})}function S(e){if(e)return JSON.parse(e)}function P(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,me,D=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",me=new TextDecoder});var K={};y(K,{forceSdkInstallation:()=>ye,handler:()=>Re});function ye(){M=!1}function fe(){console.log("Installing latest AWS SDK v2"),(0,U.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),M=!0}function he(e){let t=e.apiLoader;return Ce.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,u=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!M&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{fe(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else M?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=he(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let l=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${l}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let u=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let l=await u[n.action](n.parameters&&k(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...b(l)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=w(i,P(c)):o=i}catch(l){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(l.code))throw l}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var U,B,T,M,Ce,N=d(()=>{"use strict";U=require("child_process"),B=E(require("fs")),T=require("path");D();M=!1;Ce=[]});var q,G=d(()=>{"use strict";q={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var j={};y(j,{coerceApiParametersToUint8Array:()=>Ae,coerceToUint8Array:()=>v});function Ae(e,t,a={}){let r=q?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)v(a,i.split("."));return a}function v(e,t){return t.length===0?be(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>v(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=v(e[t[0]],t.slice(1))),e)}function be(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var $=d(()=>{"use strict";G()});var H={};y(H,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var z,Z=d(()=>{"use strict";z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,Q=d(()=>{"use strict";Z();F={...z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var J={};y(J,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";Q();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var Y={};y(Y,{getV3Client:()=>we,getV3Command:()=>Pe,loadV3ClientPackage:()=>ke});function ke(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function we(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Pe(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var X=d(()=>{"use strict";x();W()});var ee=ge(p=>{"use strict";var De=p&&p.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Me=p&&p.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(p,"__esModule",{value:!0});p.getV3ClientPackageName=p.findV3ClientConstructor=p.coerceApiParametersToUint8Array=void 0;var ve=($(),f(j));Object.defineProperty(p,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return ve.coerceApiParametersToUint8Array}});var Ie=(x(),f(H));Object.defineProperty(p,"findV3ClientConstructor",{enumerable:!0,get:function(){return Ie.findV3ClientConstructor}});var Ee=(W(),f(J));Object.defineProperty(p,"getV3ClientPackageName",{enumerable:!0,get:function(){return Ee.getV3ClientPackageName}});Me((X(),f(Y)),p)});var ae={};y(ae,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Be(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,te.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),h={...h,[e]:!0}}async function Te(e,t){let a;try{if(!h[e]&&t==="true")try{Be(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else h[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Oe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,I.getV3ClientPackageName)(i.service),n=Te(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let s;if(i.assumedRoleArn){let g=new Date().getTime(),m={RoleArn:i.assumedRoleArn,RoleSessionName:`${g}-${r}`.substring(0,64)},{fromTemporaryCredentials:se}=await import("@aws-sdk/credential-providers");s=se({params:m,clientConfig:i.region!==void 0?{region:i.region}:void 0})}n=await n;let u=(0,I.findV3ClientConstructor)(n),l=new u({apiVersion:i.apiVersion,credentials:s,region:i.region}),c=i.action.endsWith("Command")?i.action:`${i.action}Command`,oe=Object.entries(n).find(([g])=>g.toLowerCase()===c.toLowerCase())?.[1],R={};try{let g=await l.send(new oe((i.parameters&&k(i.parameters,r))??{}));R={apiVersion:l.config.apiVersion,region:await l.config.region().catch(()=>{}),...b(g)};let m;i.outputPath?m=[i.outputPath]:i.outputPaths&&(m=i.outputPaths),m?a=w(R,P(m)):a=R}catch(g){let m=g.name??g.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(m))throw g}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var te,I,h,ie=d(()=>{"use strict";te=require("child_process"),I=E(ee());D();h={}});var Fe={};y(Fe,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>xe,v2handler:()=>re,v3handler:()=>ne});module.exports=f(Fe);D();function re(e,t){return(N(),f(K)).handler(e,t)}function ne(e,t){return(ie(),f(ae)).handler(e,t)}function xe(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?ne(e,t):re(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); +"use strict";var pe=Object.create;var b=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var me=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)b(e,a,{get:t[a],enumerable:!0})},U=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&b(e,i,{get:()=>t[i],enumerable:!(r=ue(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?pe(me(e)):{},U(t||!e||!e.__esModule?b(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>U(b({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?ye.decode(e.buffer):e}function k(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=fe(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function w(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function P(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((p,u)=>{try{let c=require("https").request(s,p);c.on("error",u),c.write(o),c.end()}catch(c){u(c)}})}function S(e){if(e)return JSON.parse(e)}function D(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,ye,M=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",ye=new TextDecoder});var N={};y(N,{forceSdkInstallation:()=>Ce,handler:()=>be});function Ce(){v=!1}function he(){console.log("Installing latest AWS SDK v2"),(0,K.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function Ae(e){let t=e.apiLoader;return Re.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,p=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return p.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,p},enumerable:!0,configurable:!0})})}),e}async function be(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{he(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else v?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=Ae(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let u=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${u}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let p=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let u=await p[n.action](n.parameters&&w(n.parameters,r)).promise();i={apiVersion:p.config.apiVersion,region:p.config.region,...k(u)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=P(i,D(c)):o=i}catch(u){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(u.code))throw u}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var K,B,T,v,Re,q=d(()=>{"use strict";K=require("child_process"),B=E(require("fs")),T=require("path");M();v=!1;Re=[]});var G,j=d(()=>{"use strict";G={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var $={};y($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>I});function ke(e,t,a={}){let r=G?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)I(a,i.split("."));return a}function I(e,t){return t.length===0?we(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>I(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=I(e[t[0]],t.slice(1))),e)}function we(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var H=d(()=>{"use strict";j()});var z={};y(z,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Z,Q=d(()=>{"use strict";Z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,J=d(()=>{"use strict";Q();F={...Z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var Y={};y(Y,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";J();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var X={};y(X,{getV3Client:()=>De,getV3Command:()=>Me,loadV3ClientPackage:()=>Pe});function Pe(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function De(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Me(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var ee=d(()=>{"use strict";x();W()});var te=Se(l=>{"use strict";var ve=l&&l.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Ie=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&ve(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Ee=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Ee.coerceApiParametersToUint8Array}});var Le=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Le.findV3ClientConstructor}});var Be=(W(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return Be.getV3ClientPackageName}});Ie((ee(),f(X)),l)});var ie={};y(ie,{forceSdkInstallation:()=>Te,handler:()=>Fe});function Te(){R={}}function Oe(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,ae.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),R={...R,[e]:!0}}async function xe(e,t){let a;try{if(!R[e]&&t==="true")try{Oe(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else R[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Fe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,h.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let p;if(i.assumedRoleArn){let m=new Date().getTime(),g={RoleArn:i.assumedRoleArn,RoleSessionName:`${m}-${r}`.substring(0,64)},{fromTemporaryCredentials:le}=await import("@aws-sdk/credential-providers");p=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let u=(0,h.findV3ClientConstructor)(s),c=new u({apiVersion:i.apiVersion,credentials:p,region:i.region}),_=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=_.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===_.toLowerCase())?.[1],A={};try{let m=await c.send(new ce(i.parameters?(0,h.coerceApiParametersToUint8Array)(n,se,w(i.parameters,r)):{}));A={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...k(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=P(A,D(g)):a=A}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=A[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,h,R,re=d(()=>{"use strict";ae=require("child_process"),h=E(te());M();R={}});var We={};y(We,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>Ve,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(We);M();function ne(e,t){return(q(),f(N)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Ve(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?oe(e,t):ne(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/cdk-integ-elasticsearch-custom-kms-key.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/cdk-integ-elasticsearch-custom-kms-key.assets.json index a6bb59afef835..6f5e0a607e155 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/cdk-integ-elasticsearch-custom-kms-key.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/cdk-integ-elasticsearch-custom-kms-key.assets.json @@ -1,20 +1,20 @@ { "version": "34.0.0", "files": { - "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038": { + "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { "source": { - "path": "asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038", + "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip", + "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "f8f61eb2d3813128ac486cf33e4201ada90e84c5e55f83484a984f5220a0fea5": { + "8d9fa817e4aa4463eb17ae2621b0d23d3343a823b5631c0b13fe7226726ca738": { "source": { "path": "cdk-integ-elasticsearch-custom-kms-key.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "f8f61eb2d3813128ac486cf33e4201ada90e84c5e55f83484a984f5220a0fea5.json", + "objectKey": "8d9fa817e4aa4463eb17ae2621b0d23d3343a823b5631c0b13fe7226726ca738.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/cdk-integ-elasticsearch-custom-kms-key.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/cdk-integ-elasticsearch-custom-kms-key.template.json index 6da6ebd962191..bb0001ab7ebb9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/cdk-integ-elasticsearch-custom-kms-key.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/cdk-integ-elasticsearch-custom-kms-key.template.json @@ -355,7 +355,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "S3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "Handler": "index.handler", "Role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/manifest.json index e253792aec5d9..bba4b9444299d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/manifest.json @@ -17,7 +17,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f8f61eb2d3813128ac486cf33e4201ada90e84c5e55f83484a984f5220a0fea5.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/8d9fa817e4aa4463eb17ae2621b0d23d3343a823b5631c0b13fe7226726ca738.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/tree.json index 7c2a75e7195d5..560eae43cab9c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/tree.json @@ -481,7 +481,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "s3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "handler": "index.handler", "role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js similarity index 70% rename from packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js index 1b0227e9abb22..c58c31d67d083 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js @@ -1 +1 @@ -"use strict";var ce=Object.create;var A=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var ge=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)A(e,a,{get:t[a],enumerable:!0})},_=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pe(t))!de.call(e,i)&&i!==a&&A(e,i,{get:()=>t[i],enumerable:!(r=le(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?ce(ue(e)):{},_(t||!e||!e.__esModule?A(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>_(A({},"__esModule",{value:!0}),e);function Se(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?me.decode(e.buffer):e}function b(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=Se(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function k(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function w(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((u,l)=>{try{let c=require("https").request(s,u);c.on("error",l),c.write(o),c.end()}catch(c){l(c)}})}function S(e){if(e)return JSON.parse(e)}function P(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,me,D=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",me=new TextDecoder});var K={};y(K,{forceSdkInstallation:()=>ye,handler:()=>Re});function ye(){M=!1}function fe(){console.log("Installing latest AWS SDK v2"),(0,U.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),M=!0}function he(e){let t=e.apiLoader;return Ce.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,u=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!M&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{fe(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else M?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=he(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let l=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${l}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let u=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let l=await u[n.action](n.parameters&&k(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...b(l)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=w(i,P(c)):o=i}catch(l){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(l.code))throw l}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var U,B,T,M,Ce,N=d(()=>{"use strict";U=require("child_process"),B=E(require("fs")),T=require("path");D();M=!1;Ce=[]});var q,G=d(()=>{"use strict";q={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var j={};y(j,{coerceApiParametersToUint8Array:()=>Ae,coerceToUint8Array:()=>v});function Ae(e,t,a={}){let r=q?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)v(a,i.split("."));return a}function v(e,t){return t.length===0?be(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>v(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=v(e[t[0]],t.slice(1))),e)}function be(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var $=d(()=>{"use strict";G()});var H={};y(H,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var z,Z=d(()=>{"use strict";z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,Q=d(()=>{"use strict";Z();F={...z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var J={};y(J,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";Q();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var Y={};y(Y,{getV3Client:()=>we,getV3Command:()=>Pe,loadV3ClientPackage:()=>ke});function ke(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function we(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Pe(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var X=d(()=>{"use strict";x();W()});var ee=ge(p=>{"use strict";var De=p&&p.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Me=p&&p.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(p,"__esModule",{value:!0});p.getV3ClientPackageName=p.findV3ClientConstructor=p.coerceApiParametersToUint8Array=void 0;var ve=($(),f(j));Object.defineProperty(p,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return ve.coerceApiParametersToUint8Array}});var Ie=(x(),f(H));Object.defineProperty(p,"findV3ClientConstructor",{enumerable:!0,get:function(){return Ie.findV3ClientConstructor}});var Ee=(W(),f(J));Object.defineProperty(p,"getV3ClientPackageName",{enumerable:!0,get:function(){return Ee.getV3ClientPackageName}});Me((X(),f(Y)),p)});var ae={};y(ae,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Be(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,te.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),h={...h,[e]:!0}}async function Te(e,t){let a;try{if(!h[e]&&t==="true")try{Be(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else h[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Oe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,I.getV3ClientPackageName)(i.service),n=Te(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let s;if(i.assumedRoleArn){let g=new Date().getTime(),m={RoleArn:i.assumedRoleArn,RoleSessionName:`${g}-${r}`.substring(0,64)},{fromTemporaryCredentials:se}=await import("@aws-sdk/credential-providers");s=se({params:m,clientConfig:i.region!==void 0?{region:i.region}:void 0})}n=await n;let u=(0,I.findV3ClientConstructor)(n),l=new u({apiVersion:i.apiVersion,credentials:s,region:i.region}),c=i.action.endsWith("Command")?i.action:`${i.action}Command`,oe=Object.entries(n).find(([g])=>g.toLowerCase()===c.toLowerCase())?.[1],R={};try{let g=await l.send(new oe((i.parameters&&k(i.parameters,r))??{}));R={apiVersion:l.config.apiVersion,region:await l.config.region().catch(()=>{}),...b(g)};let m;i.outputPath?m=[i.outputPath]:i.outputPaths&&(m=i.outputPaths),m?a=w(R,P(m)):a=R}catch(g){let m=g.name??g.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(m))throw g}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var te,I,h,ie=d(()=>{"use strict";te=require("child_process"),I=E(ee());D();h={}});var Fe={};y(Fe,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>xe,v2handler:()=>re,v3handler:()=>ne});module.exports=f(Fe);D();function re(e,t){return(N(),f(K)).handler(e,t)}function ne(e,t){return(ie(),f(ae)).handler(e,t)}function xe(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?ne(e,t):re(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); +"use strict";var pe=Object.create;var b=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var me=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)b(e,a,{get:t[a],enumerable:!0})},U=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&b(e,i,{get:()=>t[i],enumerable:!(r=ue(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?pe(me(e)):{},U(t||!e||!e.__esModule?b(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>U(b({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?ye.decode(e.buffer):e}function k(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=fe(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function w(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function P(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((p,u)=>{try{let c=require("https").request(s,p);c.on("error",u),c.write(o),c.end()}catch(c){u(c)}})}function S(e){if(e)return JSON.parse(e)}function D(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,ye,M=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",ye=new TextDecoder});var N={};y(N,{forceSdkInstallation:()=>Ce,handler:()=>be});function Ce(){v=!1}function he(){console.log("Installing latest AWS SDK v2"),(0,K.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function Ae(e){let t=e.apiLoader;return Re.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,p=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return p.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,p},enumerable:!0,configurable:!0})})}),e}async function be(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{he(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else v?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=Ae(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let u=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${u}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let p=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let u=await p[n.action](n.parameters&&w(n.parameters,r)).promise();i={apiVersion:p.config.apiVersion,region:p.config.region,...k(u)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=P(i,D(c)):o=i}catch(u){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(u.code))throw u}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var K,B,T,v,Re,q=d(()=>{"use strict";K=require("child_process"),B=E(require("fs")),T=require("path");M();v=!1;Re=[]});var G,j=d(()=>{"use strict";G={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var $={};y($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>I});function ke(e,t,a={}){let r=G?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)I(a,i.split("."));return a}function I(e,t){return t.length===0?we(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>I(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=I(e[t[0]],t.slice(1))),e)}function we(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var H=d(()=>{"use strict";j()});var z={};y(z,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Z,Q=d(()=>{"use strict";Z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,J=d(()=>{"use strict";Q();F={...Z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var Y={};y(Y,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";J();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var X={};y(X,{getV3Client:()=>De,getV3Command:()=>Me,loadV3ClientPackage:()=>Pe});function Pe(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function De(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Me(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var ee=d(()=>{"use strict";x();W()});var te=Se(l=>{"use strict";var ve=l&&l.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Ie=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&ve(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Ee=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Ee.coerceApiParametersToUint8Array}});var Le=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Le.findV3ClientConstructor}});var Be=(W(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return Be.getV3ClientPackageName}});Ie((ee(),f(X)),l)});var ie={};y(ie,{forceSdkInstallation:()=>Te,handler:()=>Fe});function Te(){R={}}function Oe(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,ae.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),R={...R,[e]:!0}}async function xe(e,t){let a;try{if(!R[e]&&t==="true")try{Oe(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else R[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Fe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,h.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let p;if(i.assumedRoleArn){let m=new Date().getTime(),g={RoleArn:i.assumedRoleArn,RoleSessionName:`${m}-${r}`.substring(0,64)},{fromTemporaryCredentials:le}=await import("@aws-sdk/credential-providers");p=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let u=(0,h.findV3ClientConstructor)(s),c=new u({apiVersion:i.apiVersion,credentials:p,region:i.region}),_=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=_.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===_.toLowerCase())?.[1],A={};try{let m=await c.send(new ce(i.parameters?(0,h.coerceApiParametersToUint8Array)(n,se,w(i.parameters,r)):{}));A={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...k(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=P(A,D(g)):a=A}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=A[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,h,R,re=d(()=>{"use strict";ae=require("child_process"),h=E(te());M();R={}});var We={};y(We,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>Ve,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(We);M();function ne(e,t){return(q(),f(N)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Ve(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?oe(e,t):ne(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/cdk-integ-elasticsearch-unsignedbasicauth.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/cdk-integ-elasticsearch-unsignedbasicauth.assets.json index 8381f5f5d8ded..691ff715d1a77 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/cdk-integ-elasticsearch-unsignedbasicauth.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/cdk-integ-elasticsearch-unsignedbasicauth.assets.json @@ -1,20 +1,20 @@ { "version": "34.0.0", "files": { - "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038": { + "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { "source": { - "path": "asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038", + "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip", + "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "4be85b420826979a2d2adc0b7a573a00749a0dd68f55aee476228f14189f13a5": { + "13d9ec7e3dc6e7da6620e8e945a56d9b4b92100227765899e2ef30d89eedb763": { "source": { "path": "cdk-integ-elasticsearch-unsignedbasicauth.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "4be85b420826979a2d2adc0b7a573a00749a0dd68f55aee476228f14189f13a5.json", + "objectKey": "13d9ec7e3dc6e7da6620e8e945a56d9b4b92100227765899e2ef30d89eedb763.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/cdk-integ-elasticsearch-unsignedbasicauth.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/cdk-integ-elasticsearch-unsignedbasicauth.template.json index 9ee528370ec49..616aa52c58a25 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/cdk-integ-elasticsearch-unsignedbasicauth.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/cdk-integ-elasticsearch-unsignedbasicauth.template.json @@ -191,7 +191,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "S3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "Handler": "index.handler", "Role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/manifest.json index 140ed03bd1697..e5568e8669525 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/manifest.json @@ -17,7 +17,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4be85b420826979a2d2adc0b7a573a00749a0dd68f55aee476228f14189f13a5.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/13d9ec7e3dc6e7da6620e8e945a56d9b4b92100227765899e2ef30d89eedb763.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/tree.json index 82b3b23b481ca..81d462e323ae2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/tree.json @@ -281,7 +281,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "s3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "handler": "index.handler", "role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/LogGroupDefaultTestDeployAssert353EE07A.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/LogGroupDefaultTestDeployAssert353EE07A.assets.json index 61457f139aa3a..64e6534d5ab5f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/LogGroupDefaultTestDeployAssert353EE07A.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/LogGroupDefaultTestDeployAssert353EE07A.assets.json @@ -14,7 +14,7 @@ } } }, - "4d59c6178003d286e9ad850479d9c335c823c056f0d0f00a47071e261660d3ee": { + "44a10d4849c24f0cb8e822eeb3f2ddac58921d09c721ec0c7bdb2a2fe17e76c1": { "source": { "path": "LogGroupDefaultTestDeployAssert353EE07A.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "4d59c6178003d286e9ad850479d9c335c823c056f0d0f00a47071e261660d3ee.json", + "objectKey": "44a10d4849c24f0cb8e822eeb3f2ddac58921d09c721ec0c7bdb2a2fe17e76c1.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/LogGroupDefaultTestDeployAssert353EE07A.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/LogGroupDefaultTestDeployAssert353EE07A.template.json index 9c0c84a3a3b1b..8c5b226197eb8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/LogGroupDefaultTestDeployAssert353EE07A.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/LogGroupDefaultTestDeployAssert353EE07A.template.json @@ -1,6 +1,6 @@ { "Resources": { - "AwsApiCallEventBridgeputEvents94d68f8c7f831e3c241ebe34f5c94180": { + "AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba": { "Type": "Custom::DeployAssert@SdkCallEventBridgeputEvents", "Properties": { "ServiceToken": { @@ -12,10 +12,10 @@ "service": "EventBridge", "api": "putEvents", "parameters": { - "Entries": "[{\"Detail\":\"{\\\"date\\\":\\\"abc1694176689067\\\"}\",\"DetailType\":\"cdk-integ-custom-rule\",\"Source\":\"cdk-integ\"}]" + "Entries": "[{\"Detail\":\"{\\\"date\\\":\\\"abc1694180757789\\\"}\",\"DetailType\":\"cdk-integ-custom-rule\",\"Source\":\"cdk-integ\"}]" }, "flattenResponse": "false", - "salt": "1694176689080" + "salt": "1694180757804" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -99,7 +99,7 @@ } } }, - "AwsApiCallCloudWatchLogsfilterLogEvents18da215b754f3fba677de97912ee6822": { + "AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939": { "Type": "Custom::DeployAssert@SdkCallCloudWatchLogsfilterLogEvents", "Properties": { "ServiceToken": { @@ -110,7 +110,7 @@ }, "service": "CloudWatchLogs", "api": "filterLogEvents", - "expected": "{\"$StringLike\":\"abc1694176689067\"}", + "expected": "{\"$StringLike\":\"abc1694180757789\"}", "actualPath": "events.0.message", "parameters": { "logGroupName": { @@ -125,27 +125,27 @@ ] ] }, - "startTime": "1694176689067", + "startTime": "1694180757789", "limit": "1" }, "flattenResponse": "true", "outputPaths": [ "events.0.message" ], - "salt": "1694176689081" + "salt": "1694180757805" }, "DependsOn": [ - "AwsApiCallEventBridgeputEvents94d68f8c7f831e3c241ebe34f5c94180" + "AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba" ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" } }, "Outputs": { - "AssertionResultsAwsApiCallCloudWatchLogsfilterLogEvents18da215b754f3fba677de97912ee6822": { + "AssertionResultsAwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939": { "Value": { "Fn::GetAtt": [ - "AwsApiCallCloudWatchLogsfilterLogEvents18da215b754f3fba677de97912ee6822", + "AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939", "assertion" ] } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js deleted file mode 100644 index 1b0227e9abb22..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var ce=Object.create;var A=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var ge=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)A(e,a,{get:t[a],enumerable:!0})},_=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pe(t))!de.call(e,i)&&i!==a&&A(e,i,{get:()=>t[i],enumerable:!(r=le(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?ce(ue(e)):{},_(t||!e||!e.__esModule?A(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>_(A({},"__esModule",{value:!0}),e);function Se(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?me.decode(e.buffer):e}function b(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=Se(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function k(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function w(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((u,l)=>{try{let c=require("https").request(s,u);c.on("error",l),c.write(o),c.end()}catch(c){l(c)}})}function S(e){if(e)return JSON.parse(e)}function P(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,me,D=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",me=new TextDecoder});var K={};y(K,{forceSdkInstallation:()=>ye,handler:()=>Re});function ye(){M=!1}function fe(){console.log("Installing latest AWS SDK v2"),(0,U.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),M=!0}function he(e){let t=e.apiLoader;return Ce.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,u=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!M&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{fe(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else M?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=he(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let l=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${l}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let u=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let l=await u[n.action](n.parameters&&k(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...b(l)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=w(i,P(c)):o=i}catch(l){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(l.code))throw l}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var U,B,T,M,Ce,N=d(()=>{"use strict";U=require("child_process"),B=E(require("fs")),T=require("path");D();M=!1;Ce=[]});var q,G=d(()=>{"use strict";q={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var j={};y(j,{coerceApiParametersToUint8Array:()=>Ae,coerceToUint8Array:()=>v});function Ae(e,t,a={}){let r=q?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)v(a,i.split("."));return a}function v(e,t){return t.length===0?be(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>v(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=v(e[t[0]],t.slice(1))),e)}function be(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var $=d(()=>{"use strict";G()});var H={};y(H,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var z,Z=d(()=>{"use strict";z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,Q=d(()=>{"use strict";Z();F={...z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var J={};y(J,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";Q();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var Y={};y(Y,{getV3Client:()=>we,getV3Command:()=>Pe,loadV3ClientPackage:()=>ke});function ke(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function we(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Pe(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var X=d(()=>{"use strict";x();W()});var ee=ge(p=>{"use strict";var De=p&&p.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Me=p&&p.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(p,"__esModule",{value:!0});p.getV3ClientPackageName=p.findV3ClientConstructor=p.coerceApiParametersToUint8Array=void 0;var ve=($(),f(j));Object.defineProperty(p,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return ve.coerceApiParametersToUint8Array}});var Ie=(x(),f(H));Object.defineProperty(p,"findV3ClientConstructor",{enumerable:!0,get:function(){return Ie.findV3ClientConstructor}});var Ee=(W(),f(J));Object.defineProperty(p,"getV3ClientPackageName",{enumerable:!0,get:function(){return Ee.getV3ClientPackageName}});Me((X(),f(Y)),p)});var ae={};y(ae,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Be(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,te.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),h={...h,[e]:!0}}async function Te(e,t){let a;try{if(!h[e]&&t==="true")try{Be(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else h[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Oe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,I.getV3ClientPackageName)(i.service),n=Te(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let s;if(i.assumedRoleArn){let g=new Date().getTime(),m={RoleArn:i.assumedRoleArn,RoleSessionName:`${g}-${r}`.substring(0,64)},{fromTemporaryCredentials:se}=await import("@aws-sdk/credential-providers");s=se({params:m,clientConfig:i.region!==void 0?{region:i.region}:void 0})}n=await n;let u=(0,I.findV3ClientConstructor)(n),l=new u({apiVersion:i.apiVersion,credentials:s,region:i.region}),c=i.action.endsWith("Command")?i.action:`${i.action}Command`,oe=Object.entries(n).find(([g])=>g.toLowerCase()===c.toLowerCase())?.[1],R={};try{let g=await l.send(new oe((i.parameters&&k(i.parameters,r))??{}));R={apiVersion:l.config.apiVersion,region:await l.config.region().catch(()=>{}),...b(g)};let m;i.outputPath?m=[i.outputPath]:i.outputPaths&&(m=i.outputPaths),m?a=w(R,P(m)):a=R}catch(g){let m=g.name??g.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(m))throw g}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var te,I,h,ie=d(()=>{"use strict";te=require("child_process"),I=E(ee());D();h={}});var Fe={};y(Fe,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>xe,v2handler:()=>re,v3handler:()=>ne});module.exports=f(Fe);D();function re(e,t){return(N(),f(K)).handler(e,t)}function ne(e,t){return(ie(),f(ae)).handler(e,t)}function xe(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?ne(e,t):re(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js new file mode 100644 index 0000000000000..c58c31d67d083 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js @@ -0,0 +1 @@ +"use strict";var pe=Object.create;var b=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var me=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)b(e,a,{get:t[a],enumerable:!0})},U=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&b(e,i,{get:()=>t[i],enumerable:!(r=ue(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?pe(me(e)):{},U(t||!e||!e.__esModule?b(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>U(b({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?ye.decode(e.buffer):e}function k(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=fe(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function w(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function P(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((p,u)=>{try{let c=require("https").request(s,p);c.on("error",u),c.write(o),c.end()}catch(c){u(c)}})}function S(e){if(e)return JSON.parse(e)}function D(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,ye,M=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",ye=new TextDecoder});var N={};y(N,{forceSdkInstallation:()=>Ce,handler:()=>be});function Ce(){v=!1}function he(){console.log("Installing latest AWS SDK v2"),(0,K.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function Ae(e){let t=e.apiLoader;return Re.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,p=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return p.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,p},enumerable:!0,configurable:!0})})}),e}async function be(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{he(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else v?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=Ae(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let u=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${u}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let p=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let u=await p[n.action](n.parameters&&w(n.parameters,r)).promise();i={apiVersion:p.config.apiVersion,region:p.config.region,...k(u)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=P(i,D(c)):o=i}catch(u){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(u.code))throw u}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var K,B,T,v,Re,q=d(()=>{"use strict";K=require("child_process"),B=E(require("fs")),T=require("path");M();v=!1;Re=[]});var G,j=d(()=>{"use strict";G={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var $={};y($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>I});function ke(e,t,a={}){let r=G?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)I(a,i.split("."));return a}function I(e,t){return t.length===0?we(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>I(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=I(e[t[0]],t.slice(1))),e)}function we(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var H=d(()=>{"use strict";j()});var z={};y(z,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Z,Q=d(()=>{"use strict";Z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,J=d(()=>{"use strict";Q();F={...Z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var Y={};y(Y,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";J();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var X={};y(X,{getV3Client:()=>De,getV3Command:()=>Me,loadV3ClientPackage:()=>Pe});function Pe(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function De(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Me(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var ee=d(()=>{"use strict";x();W()});var te=Se(l=>{"use strict";var ve=l&&l.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Ie=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&ve(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Ee=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Ee.coerceApiParametersToUint8Array}});var Le=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Le.findV3ClientConstructor}});var Be=(W(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return Be.getV3ClientPackageName}});Ie((ee(),f(X)),l)});var ie={};y(ie,{forceSdkInstallation:()=>Te,handler:()=>Fe});function Te(){R={}}function Oe(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,ae.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),R={...R,[e]:!0}}async function xe(e,t){let a;try{if(!R[e]&&t==="true")try{Oe(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else R[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Fe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,h.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let p;if(i.assumedRoleArn){let m=new Date().getTime(),g={RoleArn:i.assumedRoleArn,RoleSessionName:`${m}-${r}`.substring(0,64)},{fromTemporaryCredentials:le}=await import("@aws-sdk/credential-providers");p=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let u=(0,h.findV3ClientConstructor)(s),c=new u({apiVersion:i.apiVersion,credentials:p,region:i.region}),_=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=_.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===_.toLowerCase())?.[1],A={};try{let m=await c.send(new ce(i.parameters?(0,h.coerceApiParametersToUint8Array)(n,se,w(i.parameters,r)):{}));A={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...k(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=P(A,D(g)):a=A}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=A[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,h,R,re=d(()=>{"use strict";ae=require("child_process"),h=E(te());M();R={}});var We={};y(We,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>Ve,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(We);M();function ne(e,t){return(q(),f(N)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Ve(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?oe(e,t):ne(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/log-group-events.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/log-group-events.assets.json index ed1d3432699d4..c007a7facf3c0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/log-group-events.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/log-group-events.assets.json @@ -1,20 +1,20 @@ { "version": "34.0.0", "files": { - "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038": { + "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { "source": { - "path": "asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038", + "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip", + "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "9219b38f84c27712d0ccf93bf34dd4705ecb66ff0f4bb42ebdffd7a06f633079": { + "2f6831011d0933523cf63707f93eeb7cc986e97ad7ef9d7bd60ef5d92e9ab452": { "source": { "path": "log-group-events.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "9219b38f84c27712d0ccf93bf34dd4705ecb66ff0f4bb42ebdffd7a06f633079.json", + "objectKey": "2f6831011d0933523cf63707f93eeb7cc986e97ad7ef9d7bd60ef5d92e9ab452.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/log-group-events.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/log-group-events.template.json index 371ebd2619f67..878a16c139b55 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/log-group-events.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/log-group-events.template.json @@ -170,7 +170,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "S3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "Handler": "index.handler", "Role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/manifest.json index c2b3dec3b1652..517a7e0c63bd9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/manifest.json @@ -17,7 +17,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9219b38f84c27712d0ccf93bf34dd4705ecb66ff0f4bb42ebdffd7a06f633079.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/2f6831011d0933523cf63707f93eeb7cc986e97ad7ef9d7bd60ef5d92e9ab452.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -160,7 +160,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4d59c6178003d286e9ad850479d9c335c823c056f0d0f00a47071e261660d3ee.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/44a10d4849c24f0cb8e822eeb3f2ddac58921d09c721ec0c7bdb2a2fe17e76c1.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -177,10 +177,10 @@ "LogGroupDefaultTestDeployAssert353EE07A.assets" ], "metadata": { - "/LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents94d68f8c7f831e3c241ebe34f5c94180/Default/Default": [ + "/LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba/Default/Default": [ { "type": "aws:cdk:logicalId", - "data": "AwsApiCallEventBridgeputEvents94d68f8c7f831e3c241ebe34f5c94180" + "data": "AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba" } ], "/LogGroup/DefaultTest/DeployAssert/SingletonFunction1488541a7b23466481b69b4408076b81/Role": [ @@ -195,16 +195,16 @@ "data": "SingletonFunction1488541a7b23466481b69b4408076b81HandlerCD40AE9F" } ], - "/LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEvents18da215b754f3fba677de97912ee6822/Default/Default": [ + "/LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939/Default/Default": [ { "type": "aws:cdk:logicalId", - "data": "AwsApiCallCloudWatchLogsfilterLogEvents18da215b754f3fba677de97912ee6822" + "data": "AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939" } ], - "/LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEvents18da215b754f3fba677de97912ee6822/AssertionResults": [ + "/LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939/AssertionResults": [ { "type": "aws:cdk:logicalId", - "data": "AssertionResultsAwsApiCallCloudWatchLogsfilterLogEvents18da215b754f3fba677de97912ee6822" + "data": "AssertionResultsAwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939" } ], "/LogGroup/DefaultTest/DeployAssert/BootstrapVersion": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/tree.json index 42d4161652136..333298274e422 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/tree.json @@ -317,7 +317,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "s3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "handler": "index.handler", "role": { @@ -708,17 +708,17 @@ "id": "DeployAssert", "path": "LogGroup/DefaultTest/DeployAssert", "children": { - "AwsApiCallEventBridgeputEvents94d68f8c7f831e3c241ebe34f5c94180": { - "id": "AwsApiCallEventBridgeputEvents94d68f8c7f831e3c241ebe34f5c94180", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents94d68f8c7f831e3c241ebe34f5c94180", + "AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba": { + "id": "AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba", "children": { "SdkProvider": { "id": "SdkProvider", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents94d68f8c7f831e3c241ebe34f5c94180/SdkProvider", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba/SdkProvider", "children": { "AssertionsProvider": { "id": "AssertionsProvider", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents94d68f8c7f831e3c241ebe34f5c94180/SdkProvider/AssertionsProvider", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba/SdkProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", "version": "10.2.70" @@ -732,11 +732,11 @@ }, "Default": { "id": "Default", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents94d68f8c7f831e3c241ebe34f5c94180/Default", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba/Default", "children": { "Default": { "id": "Default", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents94d68f8c7f831e3c241ebe34f5c94180/Default/Default", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba/Default/Default", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -788,17 +788,17 @@ "version": "10.2.70" } }, - "AwsApiCallCloudWatchLogsfilterLogEvents18da215b754f3fba677de97912ee6822": { - "id": "AwsApiCallCloudWatchLogsfilterLogEvents18da215b754f3fba677de97912ee6822", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEvents18da215b754f3fba677de97912ee6822", + "AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939": { + "id": "AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939", "children": { "SdkProvider": { "id": "SdkProvider", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEvents18da215b754f3fba677de97912ee6822/SdkProvider", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939/SdkProvider", "children": { "AssertionsProvider": { "id": "AssertionsProvider", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEvents18da215b754f3fba677de97912ee6822/SdkProvider/AssertionsProvider", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939/SdkProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", "version": "10.2.70" @@ -812,11 +812,11 @@ }, "Default": { "id": "Default", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEvents18da215b754f3fba677de97912ee6822/Default", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939/Default", "children": { "Default": { "id": "Default", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEvents18da215b754f3fba677de97912ee6822/Default/Default", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939/Default/Default", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -830,7 +830,7 @@ }, "AssertionResults": { "id": "AssertionResults", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEvents18da215b754f3fba677de97912ee6822/AssertionResults", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939/AssertionResults", "constructInfo": { "fqn": "aws-cdk-lib.CfnOutput", "version": "0.0.0" diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js deleted file mode 100644 index 1b0227e9abb22..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var ce=Object.create;var A=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var ge=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)A(e,a,{get:t[a],enumerable:!0})},_=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pe(t))!de.call(e,i)&&i!==a&&A(e,i,{get:()=>t[i],enumerable:!(r=le(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?ce(ue(e)):{},_(t||!e||!e.__esModule?A(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>_(A({},"__esModule",{value:!0}),e);function Se(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?me.decode(e.buffer):e}function b(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=Se(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function k(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function w(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((u,l)=>{try{let c=require("https").request(s,u);c.on("error",l),c.write(o),c.end()}catch(c){l(c)}})}function S(e){if(e)return JSON.parse(e)}function P(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,me,D=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",me=new TextDecoder});var K={};y(K,{forceSdkInstallation:()=>ye,handler:()=>Re});function ye(){M=!1}function fe(){console.log("Installing latest AWS SDK v2"),(0,U.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),M=!0}function he(e){let t=e.apiLoader;return Ce.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,u=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!M&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{fe(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else M?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=he(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let l=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${l}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let u=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let l=await u[n.action](n.parameters&&k(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...b(l)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=w(i,P(c)):o=i}catch(l){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(l.code))throw l}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var U,B,T,M,Ce,N=d(()=>{"use strict";U=require("child_process"),B=E(require("fs")),T=require("path");D();M=!1;Ce=[]});var q,G=d(()=>{"use strict";q={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var j={};y(j,{coerceApiParametersToUint8Array:()=>Ae,coerceToUint8Array:()=>v});function Ae(e,t,a={}){let r=q?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)v(a,i.split("."));return a}function v(e,t){return t.length===0?be(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>v(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=v(e[t[0]],t.slice(1))),e)}function be(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var $=d(()=>{"use strict";G()});var H={};y(H,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var z,Z=d(()=>{"use strict";z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,Q=d(()=>{"use strict";Z();F={...z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var J={};y(J,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";Q();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var Y={};y(Y,{getV3Client:()=>we,getV3Command:()=>Pe,loadV3ClientPackage:()=>ke});function ke(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function we(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Pe(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var X=d(()=>{"use strict";x();W()});var ee=ge(p=>{"use strict";var De=p&&p.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Me=p&&p.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(p,"__esModule",{value:!0});p.getV3ClientPackageName=p.findV3ClientConstructor=p.coerceApiParametersToUint8Array=void 0;var ve=($(),f(j));Object.defineProperty(p,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return ve.coerceApiParametersToUint8Array}});var Ie=(x(),f(H));Object.defineProperty(p,"findV3ClientConstructor",{enumerable:!0,get:function(){return Ie.findV3ClientConstructor}});var Ee=(W(),f(J));Object.defineProperty(p,"getV3ClientPackageName",{enumerable:!0,get:function(){return Ee.getV3ClientPackageName}});Me((X(),f(Y)),p)});var ae={};y(ae,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Be(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,te.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),h={...h,[e]:!0}}async function Te(e,t){let a;try{if(!h[e]&&t==="true")try{Be(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else h[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Oe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,I.getV3ClientPackageName)(i.service),n=Te(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let s;if(i.assumedRoleArn){let g=new Date().getTime(),m={RoleArn:i.assumedRoleArn,RoleSessionName:`${g}-${r}`.substring(0,64)},{fromTemporaryCredentials:se}=await import("@aws-sdk/credential-providers");s=se({params:m,clientConfig:i.region!==void 0?{region:i.region}:void 0})}n=await n;let u=(0,I.findV3ClientConstructor)(n),l=new u({apiVersion:i.apiVersion,credentials:s,region:i.region}),c=i.action.endsWith("Command")?i.action:`${i.action}Command`,oe=Object.entries(n).find(([g])=>g.toLowerCase()===c.toLowerCase())?.[1],R={};try{let g=await l.send(new oe((i.parameters&&k(i.parameters,r))??{}));R={apiVersion:l.config.apiVersion,region:await l.config.region().catch(()=>{}),...b(g)};let m;i.outputPath?m=[i.outputPath]:i.outputPaths&&(m=i.outputPaths),m?a=w(R,P(m)):a=R}catch(g){let m=g.name??g.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(m))throw g}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var te,I,h,ie=d(()=>{"use strict";te=require("child_process"),I=E(ee());D();h={}});var Fe={};y(Fe,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>xe,v2handler:()=>re,v3handler:()=>ne});module.exports=f(Fe);D();function re(e,t){return(N(),f(K)).handler(e,t)}function ne(e,t){return(ie(),f(ae)).handler(e,t)}function xe(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?ne(e,t):re(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js new file mode 100644 index 0000000000000..c58c31d67d083 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js @@ -0,0 +1 @@ +"use strict";var pe=Object.create;var b=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var me=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)b(e,a,{get:t[a],enumerable:!0})},U=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&b(e,i,{get:()=>t[i],enumerable:!(r=ue(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?pe(me(e)):{},U(t||!e||!e.__esModule?b(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>U(b({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?ye.decode(e.buffer):e}function k(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=fe(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function w(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function P(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((p,u)=>{try{let c=require("https").request(s,p);c.on("error",u),c.write(o),c.end()}catch(c){u(c)}})}function S(e){if(e)return JSON.parse(e)}function D(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,ye,M=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",ye=new TextDecoder});var N={};y(N,{forceSdkInstallation:()=>Ce,handler:()=>be});function Ce(){v=!1}function he(){console.log("Installing latest AWS SDK v2"),(0,K.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function Ae(e){let t=e.apiLoader;return Re.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,p=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return p.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,p},enumerable:!0,configurable:!0})})}),e}async function be(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{he(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else v?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=Ae(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let u=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${u}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let p=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let u=await p[n.action](n.parameters&&w(n.parameters,r)).promise();i={apiVersion:p.config.apiVersion,region:p.config.region,...k(u)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=P(i,D(c)):o=i}catch(u){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(u.code))throw u}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var K,B,T,v,Re,q=d(()=>{"use strict";K=require("child_process"),B=E(require("fs")),T=require("path");M();v=!1;Re=[]});var G,j=d(()=>{"use strict";G={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var $={};y($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>I});function ke(e,t,a={}){let r=G?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)I(a,i.split("."));return a}function I(e,t){return t.length===0?we(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>I(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=I(e[t[0]],t.slice(1))),e)}function we(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var H=d(()=>{"use strict";j()});var z={};y(z,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Z,Q=d(()=>{"use strict";Z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,J=d(()=>{"use strict";Q();F={...Z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var Y={};y(Y,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";J();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var X={};y(X,{getV3Client:()=>De,getV3Command:()=>Me,loadV3ClientPackage:()=>Pe});function Pe(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function De(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Me(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var ee=d(()=>{"use strict";x();W()});var te=Se(l=>{"use strict";var ve=l&&l.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Ie=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&ve(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Ee=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Ee.coerceApiParametersToUint8Array}});var Le=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Le.findV3ClientConstructor}});var Be=(W(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return Be.getV3ClientPackageName}});Ie((ee(),f(X)),l)});var ie={};y(ie,{forceSdkInstallation:()=>Te,handler:()=>Fe});function Te(){R={}}function Oe(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,ae.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),R={...R,[e]:!0}}async function xe(e,t){let a;try{if(!R[e]&&t==="true")try{Oe(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else R[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Fe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,h.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let p;if(i.assumedRoleArn){let m=new Date().getTime(),g={RoleArn:i.assumedRoleArn,RoleSessionName:`${m}-${r}`.substring(0,64)},{fromTemporaryCredentials:le}=await import("@aws-sdk/credential-providers");p=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let u=(0,h.findV3ClientConstructor)(s),c=new u({apiVersion:i.apiVersion,credentials:p,region:i.region}),_=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=_.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===_.toLowerCase())?.[1],A={};try{let m=await c.send(new ce(i.parameters?(0,h.coerceApiParametersToUint8Array)(n,se,w(i.parameters,r)):{}));A={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...k(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=P(A,D(g)):a=A}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=A[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,h,R,re=d(()=>{"use strict";ae=require("child_process"),h=E(te());M();R={}});var We={};y(We,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>Ve,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(We);M();function ne(e,t){return(q(),f(N)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Ve(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?oe(e,t):ne(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/integ-globalaccelerator.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/integ-globalaccelerator.assets.json index 0bd82bfedf0db..ec7b6f55b25c4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/integ-globalaccelerator.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/integ-globalaccelerator.assets.json @@ -1,20 +1,20 @@ { "version": "34.0.0", "files": { - "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038": { + "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { "source": { - "path": "asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038", + "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip", + "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "31d088721595d768541ee61ae04828effc08ef47c511d895acf02ad1eda2cae2": { + "12834f9674e6eb6a21d493a2bf59ca2163e173d070447dcb5e51baf42c063248": { "source": { "path": "integ-globalaccelerator.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "31d088721595d768541ee61ae04828effc08ef47c511d895acf02ad1eda2cae2.json", + "objectKey": "12834f9674e6eb6a21d493a2bf59ca2163e173d070447dcb5e51baf42c063248.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/integ-globalaccelerator.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/integ-globalaccelerator.template.json index 5a849fb166109..3975339c10584 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/integ-globalaccelerator.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/integ-globalaccelerator.template.json @@ -817,7 +817,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "S3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "Handler": "index.handler", "Role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/manifest.json index 256bcb67f3909..e6c9c9296acea 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/manifest.json @@ -17,7 +17,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/31d088721595d768541ee61ae04828effc08ef47c511d895acf02ad1eda2cae2.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/12834f9674e6eb6a21d493a2bf59ca2163e173d070447dcb5e51baf42c063248.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/tree.json index f8ab715cdc36d..5959275e2565d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/tree.json @@ -1408,7 +1408,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "s3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "handler": "index.handler", "role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/LambdaIntegDefaultTestDeployAssert7BC530B7.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/LambdaIntegDefaultTestDeployAssert7BC530B7.assets.json index d091646d58f76..651cf697ee07a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/LambdaIntegDefaultTestDeployAssert7BC530B7.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/LambdaIntegDefaultTestDeployAssert7BC530B7.assets.json @@ -14,7 +14,7 @@ } } }, - "27cf8f0d209190a552b0b96771d6212e7d9abedba0958195355b7369b03bcbc1": { + "8a7861b5bb664efd900ad03feed27cebdb21fa1859e8a06778d56eb478dcc673": { "source": { "path": "LambdaIntegDefaultTestDeployAssert7BC530B7.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "27cf8f0d209190a552b0b96771d6212e7d9abedba0958195355b7369b03bcbc1.json", + "objectKey": "8a7861b5bb664efd900ad03feed27cebdb21fa1859e8a06778d56eb478dcc673.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/LambdaIntegDefaultTestDeployAssert7BC530B7.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/LambdaIntegDefaultTestDeployAssert7BC530B7.template.json index 773e118428336..33bad42262c78 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/LambdaIntegDefaultTestDeployAssert7BC530B7.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/LambdaIntegDefaultTestDeployAssert7BC530B7.template.json @@ -15,7 +15,7 @@ "Entries": "[{\"Detail\":\"{\\\"foo\\\":\\\"bar\\\"}\",\"DetailType\":\"cdk-integ-custom-rule\",\"Source\":\"cdk-lambda-integ\"}]" }, "flattenResponse": "false", - "salt": "1694176687708" + "salt": "1694180756469" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -127,7 +127,7 @@ "WaitTimeSeconds": "20" }, "flattenResponse": "false", - "salt": "1694176687709" + "salt": "1694180756470" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js deleted file mode 100644 index 1b0227e9abb22..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var ce=Object.create;var A=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var ge=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)A(e,a,{get:t[a],enumerable:!0})},_=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pe(t))!de.call(e,i)&&i!==a&&A(e,i,{get:()=>t[i],enumerable:!(r=le(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?ce(ue(e)):{},_(t||!e||!e.__esModule?A(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>_(A({},"__esModule",{value:!0}),e);function Se(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?me.decode(e.buffer):e}function b(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=Se(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function k(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function w(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((u,l)=>{try{let c=require("https").request(s,u);c.on("error",l),c.write(o),c.end()}catch(c){l(c)}})}function S(e){if(e)return JSON.parse(e)}function P(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,me,D=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",me=new TextDecoder});var K={};y(K,{forceSdkInstallation:()=>ye,handler:()=>Re});function ye(){M=!1}function fe(){console.log("Installing latest AWS SDK v2"),(0,U.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),M=!0}function he(e){let t=e.apiLoader;return Ce.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,u=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!M&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{fe(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else M?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=he(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let l=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${l}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let u=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let l=await u[n.action](n.parameters&&k(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...b(l)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=w(i,P(c)):o=i}catch(l){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(l.code))throw l}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var U,B,T,M,Ce,N=d(()=>{"use strict";U=require("child_process"),B=E(require("fs")),T=require("path");D();M=!1;Ce=[]});var q,G=d(()=>{"use strict";q={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var j={};y(j,{coerceApiParametersToUint8Array:()=>Ae,coerceToUint8Array:()=>v});function Ae(e,t,a={}){let r=q?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)v(a,i.split("."));return a}function v(e,t){return t.length===0?be(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>v(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=v(e[t[0]],t.slice(1))),e)}function be(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var $=d(()=>{"use strict";G()});var H={};y(H,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var z,Z=d(()=>{"use strict";z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,Q=d(()=>{"use strict";Z();F={...z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var J={};y(J,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";Q();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var Y={};y(Y,{getV3Client:()=>we,getV3Command:()=>Pe,loadV3ClientPackage:()=>ke});function ke(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function we(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Pe(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var X=d(()=>{"use strict";x();W()});var ee=ge(p=>{"use strict";var De=p&&p.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Me=p&&p.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(p,"__esModule",{value:!0});p.getV3ClientPackageName=p.findV3ClientConstructor=p.coerceApiParametersToUint8Array=void 0;var ve=($(),f(j));Object.defineProperty(p,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return ve.coerceApiParametersToUint8Array}});var Ie=(x(),f(H));Object.defineProperty(p,"findV3ClientConstructor",{enumerable:!0,get:function(){return Ie.findV3ClientConstructor}});var Ee=(W(),f(J));Object.defineProperty(p,"getV3ClientPackageName",{enumerable:!0,get:function(){return Ee.getV3ClientPackageName}});Me((X(),f(Y)),p)});var ae={};y(ae,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Be(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,te.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),h={...h,[e]:!0}}async function Te(e,t){let a;try{if(!h[e]&&t==="true")try{Be(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else h[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Oe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,I.getV3ClientPackageName)(i.service),n=Te(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let s;if(i.assumedRoleArn){let g=new Date().getTime(),m={RoleArn:i.assumedRoleArn,RoleSessionName:`${g}-${r}`.substring(0,64)},{fromTemporaryCredentials:se}=await import("@aws-sdk/credential-providers");s=se({params:m,clientConfig:i.region!==void 0?{region:i.region}:void 0})}n=await n;let u=(0,I.findV3ClientConstructor)(n),l=new u({apiVersion:i.apiVersion,credentials:s,region:i.region}),c=i.action.endsWith("Command")?i.action:`${i.action}Command`,oe=Object.entries(n).find(([g])=>g.toLowerCase()===c.toLowerCase())?.[1],R={};try{let g=await l.send(new oe((i.parameters&&k(i.parameters,r))??{}));R={apiVersion:l.config.apiVersion,region:await l.config.region().catch(()=>{}),...b(g)};let m;i.outputPath?m=[i.outputPath]:i.outputPaths&&(m=i.outputPaths),m?a=w(R,P(m)):a=R}catch(g){let m=g.name??g.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(m))throw g}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var te,I,h,ie=d(()=>{"use strict";te=require("child_process"),I=E(ee());D();h={}});var Fe={};y(Fe,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>xe,v2handler:()=>re,v3handler:()=>ne});module.exports=f(Fe);D();function re(e,t){return(N(),f(K)).handler(e,t)}function ne(e,t){return(ie(),f(ae)).handler(e,t)}function xe(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?ne(e,t):re(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js new file mode 100644 index 0000000000000..c58c31d67d083 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js @@ -0,0 +1 @@ +"use strict";var pe=Object.create;var b=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var me=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)b(e,a,{get:t[a],enumerable:!0})},U=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&b(e,i,{get:()=>t[i],enumerable:!(r=ue(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?pe(me(e)):{},U(t||!e||!e.__esModule?b(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>U(b({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?ye.decode(e.buffer):e}function k(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=fe(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function w(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function P(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((p,u)=>{try{let c=require("https").request(s,p);c.on("error",u),c.write(o),c.end()}catch(c){u(c)}})}function S(e){if(e)return JSON.parse(e)}function D(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,ye,M=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",ye=new TextDecoder});var N={};y(N,{forceSdkInstallation:()=>Ce,handler:()=>be});function Ce(){v=!1}function he(){console.log("Installing latest AWS SDK v2"),(0,K.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function Ae(e){let t=e.apiLoader;return Re.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,p=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return p.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,p},enumerable:!0,configurable:!0})})}),e}async function be(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{he(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else v?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=Ae(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let u=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${u}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let p=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let u=await p[n.action](n.parameters&&w(n.parameters,r)).promise();i={apiVersion:p.config.apiVersion,region:p.config.region,...k(u)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=P(i,D(c)):o=i}catch(u){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(u.code))throw u}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var K,B,T,v,Re,q=d(()=>{"use strict";K=require("child_process"),B=E(require("fs")),T=require("path");M();v=!1;Re=[]});var G,j=d(()=>{"use strict";G={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var $={};y($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>I});function ke(e,t,a={}){let r=G?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)I(a,i.split("."));return a}function I(e,t){return t.length===0?we(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>I(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=I(e[t[0]],t.slice(1))),e)}function we(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var H=d(()=>{"use strict";j()});var z={};y(z,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Z,Q=d(()=>{"use strict";Z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,J=d(()=>{"use strict";Q();F={...Z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var Y={};y(Y,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";J();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var X={};y(X,{getV3Client:()=>De,getV3Command:()=>Me,loadV3ClientPackage:()=>Pe});function Pe(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function De(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Me(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var ee=d(()=>{"use strict";x();W()});var te=Se(l=>{"use strict";var ve=l&&l.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Ie=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&ve(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Ee=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Ee.coerceApiParametersToUint8Array}});var Le=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Le.findV3ClientConstructor}});var Be=(W(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return Be.getV3ClientPackageName}});Ie((ee(),f(X)),l)});var ie={};y(ie,{forceSdkInstallation:()=>Te,handler:()=>Fe});function Te(){R={}}function Oe(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,ae.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),R={...R,[e]:!0}}async function xe(e,t){let a;try{if(!R[e]&&t==="true")try{Oe(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else R[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Fe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,h.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let p;if(i.assumedRoleArn){let m=new Date().getTime(),g={RoleArn:i.assumedRoleArn,RoleSessionName:`${m}-${r}`.substring(0,64)},{fromTemporaryCredentials:le}=await import("@aws-sdk/credential-providers");p=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let u=(0,h.findV3ClientConstructor)(s),c=new u({apiVersion:i.apiVersion,credentials:p,region:i.region}),_=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=_.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===_.toLowerCase())?.[1],A={};try{let m=await c.send(new ce(i.parameters?(0,h.coerceApiParametersToUint8Array)(n,se,w(i.parameters,r)):{}));A={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...k(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=P(A,D(g)):a=A}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=A[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,h,R,re=d(()=>{"use strict";ae=require("child_process"),h=E(te());M();R={}});var We={};y(We,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>Ve,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(We);M();function ne(e,t){return(q(),f(N)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Ve(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?oe(e,t):ne(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/lambda-logssubscription-integ.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/lambda-logssubscription-integ.assets.json index cd20a78b8ac90..f050421f4c6c6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/lambda-logssubscription-integ.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/lambda-logssubscription-integ.assets.json @@ -1,20 +1,20 @@ { "version": "34.0.0", "files": { - "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038": { + "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { "source": { - "path": "asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038", + "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip", + "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "0a778286999c4589fc09bdb0aecb5195863352fe90bf380c0ff693e2682e981f": { + "55526b0b8f05403660c8987e0033c13275cd95a5b5b8615789245e9c76cb6836": { "source": { "path": "lambda-logssubscription-integ.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "0a778286999c4589fc09bdb0aecb5195863352fe90bf380c0ff693e2682e981f.json", + "objectKey": "55526b0b8f05403660c8987e0033c13275cd95a5b5b8615789245e9c76cb6836.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/lambda-logssubscription-integ.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/lambda-logssubscription-integ.template.json index 531f958c08456..724603976d7f9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/lambda-logssubscription-integ.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/lambda-logssubscription-integ.template.json @@ -308,7 +308,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "S3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "Handler": "index.handler", "Role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/manifest.json index 5b3e67924056f..746a974418d2a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/manifest.json @@ -17,7 +17,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0a778286999c4589fc09bdb0aecb5195863352fe90bf380c0ff693e2682e981f.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/55526b0b8f05403660c8987e0033c13275cd95a5b5b8615789245e9c76cb6836.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -148,7 +148,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/27cf8f0d209190a552b0b96771d6212e7d9abedba0958195355b7369b03bcbc1.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/8a7861b5bb664efd900ad03feed27cebdb21fa1859e8a06778d56eb478dcc673.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/tree.json index 309520588cec2..51d21b694f445 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/tree.json @@ -531,7 +531,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "s3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "handler": "index.handler", "role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js deleted file mode 100644 index 1b0227e9abb22..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var ce=Object.create;var A=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var ge=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)A(e,a,{get:t[a],enumerable:!0})},_=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pe(t))!de.call(e,i)&&i!==a&&A(e,i,{get:()=>t[i],enumerable:!(r=le(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?ce(ue(e)):{},_(t||!e||!e.__esModule?A(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>_(A({},"__esModule",{value:!0}),e);function Se(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?me.decode(e.buffer):e}function b(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=Se(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function k(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function w(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((u,l)=>{try{let c=require("https").request(s,u);c.on("error",l),c.write(o),c.end()}catch(c){l(c)}})}function S(e){if(e)return JSON.parse(e)}function P(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,me,D=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",me=new TextDecoder});var K={};y(K,{forceSdkInstallation:()=>ye,handler:()=>Re});function ye(){M=!1}function fe(){console.log("Installing latest AWS SDK v2"),(0,U.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),M=!0}function he(e){let t=e.apiLoader;return Ce.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,u=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!M&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{fe(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else M?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=he(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let l=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${l}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let u=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let l=await u[n.action](n.parameters&&k(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...b(l)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=w(i,P(c)):o=i}catch(l){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(l.code))throw l}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var U,B,T,M,Ce,N=d(()=>{"use strict";U=require("child_process"),B=E(require("fs")),T=require("path");D();M=!1;Ce=[]});var q,G=d(()=>{"use strict";q={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var j={};y(j,{coerceApiParametersToUint8Array:()=>Ae,coerceToUint8Array:()=>v});function Ae(e,t,a={}){let r=q?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)v(a,i.split("."));return a}function v(e,t){return t.length===0?be(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>v(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=v(e[t[0]],t.slice(1))),e)}function be(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var $=d(()=>{"use strict";G()});var H={};y(H,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var z,Z=d(()=>{"use strict";z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,Q=d(()=>{"use strict";Z();F={...z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var J={};y(J,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";Q();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var Y={};y(Y,{getV3Client:()=>we,getV3Command:()=>Pe,loadV3ClientPackage:()=>ke});function ke(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function we(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Pe(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var X=d(()=>{"use strict";x();W()});var ee=ge(p=>{"use strict";var De=p&&p.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Me=p&&p.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(p,"__esModule",{value:!0});p.getV3ClientPackageName=p.findV3ClientConstructor=p.coerceApiParametersToUint8Array=void 0;var ve=($(),f(j));Object.defineProperty(p,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return ve.coerceApiParametersToUint8Array}});var Ie=(x(),f(H));Object.defineProperty(p,"findV3ClientConstructor",{enumerable:!0,get:function(){return Ie.findV3ClientConstructor}});var Ee=(W(),f(J));Object.defineProperty(p,"getV3ClientPackageName",{enumerable:!0,get:function(){return Ee.getV3ClientPackageName}});Me((X(),f(Y)),p)});var ae={};y(ae,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Be(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,te.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),h={...h,[e]:!0}}async function Te(e,t){let a;try{if(!h[e]&&t==="true")try{Be(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else h[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Oe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,I.getV3ClientPackageName)(i.service),n=Te(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let s;if(i.assumedRoleArn){let g=new Date().getTime(),m={RoleArn:i.assumedRoleArn,RoleSessionName:`${g}-${r}`.substring(0,64)},{fromTemporaryCredentials:se}=await import("@aws-sdk/credential-providers");s=se({params:m,clientConfig:i.region!==void 0?{region:i.region}:void 0})}n=await n;let u=(0,I.findV3ClientConstructor)(n),l=new u({apiVersion:i.apiVersion,credentials:s,region:i.region}),c=i.action.endsWith("Command")?i.action:`${i.action}Command`,oe=Object.entries(n).find(([g])=>g.toLowerCase()===c.toLowerCase())?.[1],R={};try{let g=await l.send(new oe((i.parameters&&k(i.parameters,r))??{}));R={apiVersion:l.config.apiVersion,region:await l.config.region().catch(()=>{}),...b(g)};let m;i.outputPath?m=[i.outputPath]:i.outputPaths&&(m=i.outputPaths),m?a=w(R,P(m)):a=R}catch(g){let m=g.name??g.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(m))throw g}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var te,I,h,ie=d(()=>{"use strict";te=require("child_process"),I=E(ee());D();h={}});var Fe={};y(Fe,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>xe,v2handler:()=>re,v3handler:()=>ne});module.exports=f(Fe);D();function re(e,t){return(N(),f(K)).handler(e,t)}function ne(e,t){return(ie(),f(ae)).handler(e,t)}function xe(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?ne(e,t):re(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js new file mode 100644 index 0000000000000..c58c31d67d083 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js @@ -0,0 +1 @@ +"use strict";var pe=Object.create;var b=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var me=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)b(e,a,{get:t[a],enumerable:!0})},U=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&b(e,i,{get:()=>t[i],enumerable:!(r=ue(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?pe(me(e)):{},U(t||!e||!e.__esModule?b(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>U(b({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?ye.decode(e.buffer):e}function k(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=fe(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function w(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function P(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((p,u)=>{try{let c=require("https").request(s,p);c.on("error",u),c.write(o),c.end()}catch(c){u(c)}})}function S(e){if(e)return JSON.parse(e)}function D(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,ye,M=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",ye=new TextDecoder});var N={};y(N,{forceSdkInstallation:()=>Ce,handler:()=>be});function Ce(){v=!1}function he(){console.log("Installing latest AWS SDK v2"),(0,K.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function Ae(e){let t=e.apiLoader;return Re.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,p=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return p.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,p},enumerable:!0,configurable:!0})})}),e}async function be(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{he(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else v?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=Ae(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let u=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${u}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let p=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let u=await p[n.action](n.parameters&&w(n.parameters,r)).promise();i={apiVersion:p.config.apiVersion,region:p.config.region,...k(u)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=P(i,D(c)):o=i}catch(u){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(u.code))throw u}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var K,B,T,v,Re,q=d(()=>{"use strict";K=require("child_process"),B=E(require("fs")),T=require("path");M();v=!1;Re=[]});var G,j=d(()=>{"use strict";G={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var $={};y($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>I});function ke(e,t,a={}){let r=G?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)I(a,i.split("."));return a}function I(e,t){return t.length===0?we(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>I(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=I(e[t[0]],t.slice(1))),e)}function we(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var H=d(()=>{"use strict";j()});var z={};y(z,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Z,Q=d(()=>{"use strict";Z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,J=d(()=>{"use strict";Q();F={...Z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var Y={};y(Y,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";J();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var X={};y(X,{getV3Client:()=>De,getV3Command:()=>Me,loadV3ClientPackage:()=>Pe});function Pe(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function De(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Me(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var ee=d(()=>{"use strict";x();W()});var te=Se(l=>{"use strict";var ve=l&&l.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Ie=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&ve(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Ee=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Ee.coerceApiParametersToUint8Array}});var Le=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Le.findV3ClientConstructor}});var Be=(W(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return Be.getV3ClientPackageName}});Ie((ee(),f(X)),l)});var ie={};y(ie,{forceSdkInstallation:()=>Te,handler:()=>Fe});function Te(){R={}}function Oe(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,ae.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),R={...R,[e]:!0}}async function xe(e,t){let a;try{if(!R[e]&&t==="true")try{Oe(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else R[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Fe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,h.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let p;if(i.assumedRoleArn){let m=new Date().getTime(),g={RoleArn:i.assumedRoleArn,RoleSessionName:`${m}-${r}`.substring(0,64)},{fromTemporaryCredentials:le}=await import("@aws-sdk/credential-providers");p=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let u=(0,h.findV3ClientConstructor)(s),c=new u({apiVersion:i.apiVersion,credentials:p,region:i.region}),_=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=_.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===_.toLowerCase())?.[1],A={};try{let m=await c.send(new ce(i.parameters?(0,h.coerceApiParametersToUint8Array)(n,se,w(i.parameters,r)):{}));A={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...k(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=P(A,D(g)):a=A}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=A[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,h,R,re=d(()=>{"use strict";ae=require("child_process"),h=E(te());M();R={}});var We={};y(We,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>Ve,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(We);M();function ne(e,t){return(q(),f(N)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Ve(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?oe(e,t):ne(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/cdk-integ-opensearch-custom-kms-key.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/cdk-integ-opensearch-custom-kms-key.assets.json index eceb80880c572..acf732a1f56d6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/cdk-integ-opensearch-custom-kms-key.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/cdk-integ-opensearch-custom-kms-key.assets.json @@ -1,20 +1,20 @@ { "version": "34.0.0", "files": { - "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038": { + "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { "source": { - "path": "asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038", + "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip", + "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "7a11d23edd2c83410dd054378a452c0b9810da0a1c9f9df78c54fd97de5aad37": { + "951d0b1661534d9e99c72323ca20fe80125cc6aefce6f2b6f05f2046d8b85cee": { "source": { "path": "cdk-integ-opensearch-custom-kms-key.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "7a11d23edd2c83410dd054378a452c0b9810da0a1c9f9df78c54fd97de5aad37.json", + "objectKey": "951d0b1661534d9e99c72323ca20fe80125cc6aefce6f2b6f05f2046d8b85cee.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/cdk-integ-opensearch-custom-kms-key.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/cdk-integ-opensearch-custom-kms-key.template.json index 08857e061af05..f323ff2a7ea74 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/cdk-integ-opensearch-custom-kms-key.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/cdk-integ-opensearch-custom-kms-key.template.json @@ -228,7 +228,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "S3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "Handler": "index.handler", "Role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/manifest.json index 0d7f4659649e8..1f35930106975 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/manifest.json @@ -17,7 +17,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/7a11d23edd2c83410dd054378a452c0b9810da0a1c9f9df78c54fd97de5aad37.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/951d0b1661534d9e99c72323ca20fe80125cc6aefce6f2b6f05f2046d8b85cee.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/tree.json index 573331130d81b..b036074cbdfb4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/tree.json @@ -334,7 +334,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "s3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "handler": "index.handler", "role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js deleted file mode 100644 index 1b0227e9abb22..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var ce=Object.create;var A=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var ge=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)A(e,a,{get:t[a],enumerable:!0})},_=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pe(t))!de.call(e,i)&&i!==a&&A(e,i,{get:()=>t[i],enumerable:!(r=le(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?ce(ue(e)):{},_(t||!e||!e.__esModule?A(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>_(A({},"__esModule",{value:!0}),e);function Se(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?me.decode(e.buffer):e}function b(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=Se(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function k(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function w(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((u,l)=>{try{let c=require("https").request(s,u);c.on("error",l),c.write(o),c.end()}catch(c){l(c)}})}function S(e){if(e)return JSON.parse(e)}function P(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,me,D=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",me=new TextDecoder});var K={};y(K,{forceSdkInstallation:()=>ye,handler:()=>Re});function ye(){M=!1}function fe(){console.log("Installing latest AWS SDK v2"),(0,U.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),M=!0}function he(e){let t=e.apiLoader;return Ce.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,u=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!M&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{fe(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else M?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=he(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let l=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${l}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let u=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let l=await u[n.action](n.parameters&&k(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...b(l)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=w(i,P(c)):o=i}catch(l){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(l.code))throw l}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var U,B,T,M,Ce,N=d(()=>{"use strict";U=require("child_process"),B=E(require("fs")),T=require("path");D();M=!1;Ce=[]});var q,G=d(()=>{"use strict";q={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var j={};y(j,{coerceApiParametersToUint8Array:()=>Ae,coerceToUint8Array:()=>v});function Ae(e,t,a={}){let r=q?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)v(a,i.split("."));return a}function v(e,t){return t.length===0?be(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>v(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=v(e[t[0]],t.slice(1))),e)}function be(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var $=d(()=>{"use strict";G()});var H={};y(H,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var z,Z=d(()=>{"use strict";z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,Q=d(()=>{"use strict";Z();F={...z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var J={};y(J,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";Q();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var Y={};y(Y,{getV3Client:()=>we,getV3Command:()=>Pe,loadV3ClientPackage:()=>ke});function ke(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function we(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Pe(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var X=d(()=>{"use strict";x();W()});var ee=ge(p=>{"use strict";var De=p&&p.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Me=p&&p.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(p,"__esModule",{value:!0});p.getV3ClientPackageName=p.findV3ClientConstructor=p.coerceApiParametersToUint8Array=void 0;var ve=($(),f(j));Object.defineProperty(p,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return ve.coerceApiParametersToUint8Array}});var Ie=(x(),f(H));Object.defineProperty(p,"findV3ClientConstructor",{enumerable:!0,get:function(){return Ie.findV3ClientConstructor}});var Ee=(W(),f(J));Object.defineProperty(p,"getV3ClientPackageName",{enumerable:!0,get:function(){return Ee.getV3ClientPackageName}});Me((X(),f(Y)),p)});var ae={};y(ae,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Be(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,te.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),h={...h,[e]:!0}}async function Te(e,t){let a;try{if(!h[e]&&t==="true")try{Be(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else h[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Oe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,I.getV3ClientPackageName)(i.service),n=Te(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let s;if(i.assumedRoleArn){let g=new Date().getTime(),m={RoleArn:i.assumedRoleArn,RoleSessionName:`${g}-${r}`.substring(0,64)},{fromTemporaryCredentials:se}=await import("@aws-sdk/credential-providers");s=se({params:m,clientConfig:i.region!==void 0?{region:i.region}:void 0})}n=await n;let u=(0,I.findV3ClientConstructor)(n),l=new u({apiVersion:i.apiVersion,credentials:s,region:i.region}),c=i.action.endsWith("Command")?i.action:`${i.action}Command`,oe=Object.entries(n).find(([g])=>g.toLowerCase()===c.toLowerCase())?.[1],R={};try{let g=await l.send(new oe((i.parameters&&k(i.parameters,r))??{}));R={apiVersion:l.config.apiVersion,region:await l.config.region().catch(()=>{}),...b(g)};let m;i.outputPath?m=[i.outputPath]:i.outputPaths&&(m=i.outputPaths),m?a=w(R,P(m)):a=R}catch(g){let m=g.name??g.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(m))throw g}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var te,I,h,ie=d(()=>{"use strict";te=require("child_process"),I=E(ee());D();h={}});var Fe={};y(Fe,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>xe,v2handler:()=>re,v3handler:()=>ne});module.exports=f(Fe);D();function re(e,t){return(N(),f(K)).handler(e,t)}function ne(e,t){return(ie(),f(ae)).handler(e,t)}function xe(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?ne(e,t):re(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js new file mode 100644 index 0000000000000..c58c31d67d083 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js @@ -0,0 +1 @@ +"use strict";var pe=Object.create;var b=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var me=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)b(e,a,{get:t[a],enumerable:!0})},U=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&b(e,i,{get:()=>t[i],enumerable:!(r=ue(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?pe(me(e)):{},U(t||!e||!e.__esModule?b(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>U(b({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?ye.decode(e.buffer):e}function k(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=fe(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function w(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function P(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((p,u)=>{try{let c=require("https").request(s,p);c.on("error",u),c.write(o),c.end()}catch(c){u(c)}})}function S(e){if(e)return JSON.parse(e)}function D(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,ye,M=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",ye=new TextDecoder});var N={};y(N,{forceSdkInstallation:()=>Ce,handler:()=>be});function Ce(){v=!1}function he(){console.log("Installing latest AWS SDK v2"),(0,K.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function Ae(e){let t=e.apiLoader;return Re.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,p=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return p.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,p},enumerable:!0,configurable:!0})})}),e}async function be(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{he(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else v?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=Ae(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let u=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${u}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let p=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let u=await p[n.action](n.parameters&&w(n.parameters,r)).promise();i={apiVersion:p.config.apiVersion,region:p.config.region,...k(u)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=P(i,D(c)):o=i}catch(u){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(u.code))throw u}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var K,B,T,v,Re,q=d(()=>{"use strict";K=require("child_process"),B=E(require("fs")),T=require("path");M();v=!1;Re=[]});var G,j=d(()=>{"use strict";G={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var $={};y($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>I});function ke(e,t,a={}){let r=G?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)I(a,i.split("."));return a}function I(e,t){return t.length===0?we(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>I(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=I(e[t[0]],t.slice(1))),e)}function we(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var H=d(()=>{"use strict";j()});var z={};y(z,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Z,Q=d(()=>{"use strict";Z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,J=d(()=>{"use strict";Q();F={...Z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var Y={};y(Y,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";J();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var X={};y(X,{getV3Client:()=>De,getV3Command:()=>Me,loadV3ClientPackage:()=>Pe});function Pe(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function De(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Me(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var ee=d(()=>{"use strict";x();W()});var te=Se(l=>{"use strict";var ve=l&&l.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Ie=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&ve(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Ee=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Ee.coerceApiParametersToUint8Array}});var Le=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Le.findV3ClientConstructor}});var Be=(W(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return Be.getV3ClientPackageName}});Ie((ee(),f(X)),l)});var ie={};y(ie,{forceSdkInstallation:()=>Te,handler:()=>Fe});function Te(){R={}}function Oe(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,ae.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),R={...R,[e]:!0}}async function xe(e,t){let a;try{if(!R[e]&&t==="true")try{Oe(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else R[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Fe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,h.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let p;if(i.assumedRoleArn){let m=new Date().getTime(),g={RoleArn:i.assumedRoleArn,RoleSessionName:`${m}-${r}`.substring(0,64)},{fromTemporaryCredentials:le}=await import("@aws-sdk/credential-providers");p=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let u=(0,h.findV3ClientConstructor)(s),c=new u({apiVersion:i.apiVersion,credentials:p,region:i.region}),_=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=_.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===_.toLowerCase())?.[1],A={};try{let m=await c.send(new ce(i.parameters?(0,h.coerceApiParametersToUint8Array)(n,se,w(i.parameters,r)):{}));A={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...k(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=P(A,D(g)):a=A}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=A[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,h,R,re=d(()=>{"use strict";ae=require("child_process"),h=E(te());M();R={}});var We={};y(We,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>Ve,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(We);M();function ne(e,t){return(q(),f(N)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Ve(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?oe(e,t):ne(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/cdk-integ-opensearch.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/cdk-integ-opensearch.assets.json index f9947d39207e2..54746f98e020e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/cdk-integ-opensearch.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/cdk-integ-opensearch.assets.json @@ -1,20 +1,20 @@ { "version": "34.0.0", "files": { - "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038": { + "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { "source": { - "path": "asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038", + "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip", + "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "60dd9c30d9d3772135dec94cf7784b41a51020a6ca1ee2ac6393b5eab289580e": { + "2f38f24bd6429081fabfde62783f4bcae89526a732234aaf27c22499fca0de70": { "source": { "path": "cdk-integ-opensearch.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "60dd9c30d9d3772135dec94cf7784b41a51020a6ca1ee2ac6393b5eab289580e.json", + "objectKey": "2f38f24bd6429081fabfde62783f4bcae89526a732234aaf27c22499fca0de70.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/cdk-integ-opensearch.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/cdk-integ-opensearch.template.json index 89e7b7862e26e..70764718c9b6c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/cdk-integ-opensearch.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/cdk-integ-opensearch.template.json @@ -302,7 +302,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "S3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "Handler": "index.handler", "Role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/manifest.json index 2618b5de81499..b793015ce5d2b 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/manifest.json @@ -17,7 +17,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/60dd9c30d9d3772135dec94cf7784b41a51020a6ca1ee2ac6393b5eab289580e.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/2f38f24bd6429081fabfde62783f4bcae89526a732234aaf27c22499fca0de70.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/tree.json index 4588d12d63814..190f57e84dc71 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/tree.json @@ -394,7 +394,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "s3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "handler": "index.handler", "role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js deleted file mode 100644 index 1b0227e9abb22..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var ce=Object.create;var A=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var ge=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)A(e,a,{get:t[a],enumerable:!0})},_=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pe(t))!de.call(e,i)&&i!==a&&A(e,i,{get:()=>t[i],enumerable:!(r=le(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?ce(ue(e)):{},_(t||!e||!e.__esModule?A(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>_(A({},"__esModule",{value:!0}),e);function Se(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?me.decode(e.buffer):e}function b(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=Se(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function k(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function w(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((u,l)=>{try{let c=require("https").request(s,u);c.on("error",l),c.write(o),c.end()}catch(c){l(c)}})}function S(e){if(e)return JSON.parse(e)}function P(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,me,D=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",me=new TextDecoder});var K={};y(K,{forceSdkInstallation:()=>ye,handler:()=>Re});function ye(){M=!1}function fe(){console.log("Installing latest AWS SDK v2"),(0,U.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),M=!0}function he(e){let t=e.apiLoader;return Ce.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,u=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!M&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{fe(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else M?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=he(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let l=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${l}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let u=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let l=await u[n.action](n.parameters&&k(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...b(l)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=w(i,P(c)):o=i}catch(l){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(l.code))throw l}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var U,B,T,M,Ce,N=d(()=>{"use strict";U=require("child_process"),B=E(require("fs")),T=require("path");D();M=!1;Ce=[]});var q,G=d(()=>{"use strict";q={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var j={};y(j,{coerceApiParametersToUint8Array:()=>Ae,coerceToUint8Array:()=>v});function Ae(e,t,a={}){let r=q?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)v(a,i.split("."));return a}function v(e,t){return t.length===0?be(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>v(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=v(e[t[0]],t.slice(1))),e)}function be(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var $=d(()=>{"use strict";G()});var H={};y(H,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var z,Z=d(()=>{"use strict";z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,Q=d(()=>{"use strict";Z();F={...z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var J={};y(J,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";Q();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var Y={};y(Y,{getV3Client:()=>we,getV3Command:()=>Pe,loadV3ClientPackage:()=>ke});function ke(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function we(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Pe(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var X=d(()=>{"use strict";x();W()});var ee=ge(p=>{"use strict";var De=p&&p.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Me=p&&p.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(p,"__esModule",{value:!0});p.getV3ClientPackageName=p.findV3ClientConstructor=p.coerceApiParametersToUint8Array=void 0;var ve=($(),f(j));Object.defineProperty(p,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return ve.coerceApiParametersToUint8Array}});var Ie=(x(),f(H));Object.defineProperty(p,"findV3ClientConstructor",{enumerable:!0,get:function(){return Ie.findV3ClientConstructor}});var Ee=(W(),f(J));Object.defineProperty(p,"getV3ClientPackageName",{enumerable:!0,get:function(){return Ee.getV3ClientPackageName}});Me((X(),f(Y)),p)});var ae={};y(ae,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Be(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,te.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),h={...h,[e]:!0}}async function Te(e,t){let a;try{if(!h[e]&&t==="true")try{Be(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else h[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Oe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,I.getV3ClientPackageName)(i.service),n=Te(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let s;if(i.assumedRoleArn){let g=new Date().getTime(),m={RoleArn:i.assumedRoleArn,RoleSessionName:`${g}-${r}`.substring(0,64)},{fromTemporaryCredentials:se}=await import("@aws-sdk/credential-providers");s=se({params:m,clientConfig:i.region!==void 0?{region:i.region}:void 0})}n=await n;let u=(0,I.findV3ClientConstructor)(n),l=new u({apiVersion:i.apiVersion,credentials:s,region:i.region}),c=i.action.endsWith("Command")?i.action:`${i.action}Command`,oe=Object.entries(n).find(([g])=>g.toLowerCase()===c.toLowerCase())?.[1],R={};try{let g=await l.send(new oe((i.parameters&&k(i.parameters,r))??{}));R={apiVersion:l.config.apiVersion,region:await l.config.region().catch(()=>{}),...b(g)};let m;i.outputPath?m=[i.outputPath]:i.outputPaths&&(m=i.outputPaths),m?a=w(R,P(m)):a=R}catch(g){let m=g.name??g.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(m))throw g}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var te,I,h,ie=d(()=>{"use strict";te=require("child_process"),I=E(ee());D();h={}});var Fe={};y(Fe,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>xe,v2handler:()=>re,v3handler:()=>ne});module.exports=f(Fe);D();function re(e,t){return(N(),f(K)).handler(e,t)}function ne(e,t){return(ie(),f(ae)).handler(e,t)}function xe(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?ne(e,t):re(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js new file mode 100644 index 0000000000000..c58c31d67d083 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js @@ -0,0 +1 @@ +"use strict";var pe=Object.create;var b=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var me=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)b(e,a,{get:t[a],enumerable:!0})},U=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&b(e,i,{get:()=>t[i],enumerable:!(r=ue(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?pe(me(e)):{},U(t||!e||!e.__esModule?b(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>U(b({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?ye.decode(e.buffer):e}function k(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=fe(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function w(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function P(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((p,u)=>{try{let c=require("https").request(s,p);c.on("error",u),c.write(o),c.end()}catch(c){u(c)}})}function S(e){if(e)return JSON.parse(e)}function D(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,ye,M=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",ye=new TextDecoder});var N={};y(N,{forceSdkInstallation:()=>Ce,handler:()=>be});function Ce(){v=!1}function he(){console.log("Installing latest AWS SDK v2"),(0,K.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function Ae(e){let t=e.apiLoader;return Re.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,p=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return p.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,p},enumerable:!0,configurable:!0})})}),e}async function be(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{he(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else v?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=Ae(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let u=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${u}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let p=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let u=await p[n.action](n.parameters&&w(n.parameters,r)).promise();i={apiVersion:p.config.apiVersion,region:p.config.region,...k(u)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=P(i,D(c)):o=i}catch(u){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(u.code))throw u}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var K,B,T,v,Re,q=d(()=>{"use strict";K=require("child_process"),B=E(require("fs")),T=require("path");M();v=!1;Re=[]});var G,j=d(()=>{"use strict";G={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var $={};y($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>I});function ke(e,t,a={}){let r=G?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)I(a,i.split("."));return a}function I(e,t){return t.length===0?we(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>I(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=I(e[t[0]],t.slice(1))),e)}function we(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var H=d(()=>{"use strict";j()});var z={};y(z,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Z,Q=d(()=>{"use strict";Z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,J=d(()=>{"use strict";Q();F={...Z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var Y={};y(Y,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";J();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var X={};y(X,{getV3Client:()=>De,getV3Command:()=>Me,loadV3ClientPackage:()=>Pe});function Pe(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function De(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Me(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var ee=d(()=>{"use strict";x();W()});var te=Se(l=>{"use strict";var ve=l&&l.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Ie=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&ve(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Ee=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Ee.coerceApiParametersToUint8Array}});var Le=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Le.findV3ClientConstructor}});var Be=(W(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return Be.getV3ClientPackageName}});Ie((ee(),f(X)),l)});var ie={};y(ie,{forceSdkInstallation:()=>Te,handler:()=>Fe});function Te(){R={}}function Oe(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,ae.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),R={...R,[e]:!0}}async function xe(e,t){let a;try{if(!R[e]&&t==="true")try{Oe(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else R[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Fe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,h.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let p;if(i.assumedRoleArn){let m=new Date().getTime(),g={RoleArn:i.assumedRoleArn,RoleSessionName:`${m}-${r}`.substring(0,64)},{fromTemporaryCredentials:le}=await import("@aws-sdk/credential-providers");p=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let u=(0,h.findV3ClientConstructor)(s),c=new u({apiVersion:i.apiVersion,credentials:p,region:i.region}),_=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=_.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===_.toLowerCase())?.[1],A={};try{let m=await c.send(new ce(i.parameters?(0,h.coerceApiParametersToUint8Array)(n,se,w(i.parameters,r)):{}));A={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...k(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=P(A,D(g)):a=A}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=A[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,h,R,re=d(()=>{"use strict";ae=require("child_process"),h=E(te());M();R={}});var We={};y(We,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>Ve,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(We);M();function ne(e,t){return(q(),f(N)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Ve(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?oe(e,t):ne(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/cdk-integ-opensearch-unsignedbasicauth.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/cdk-integ-opensearch-unsignedbasicauth.assets.json index 8ab2f3f09d57b..bd8aec3e1bf68 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/cdk-integ-opensearch-unsignedbasicauth.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/cdk-integ-opensearch-unsignedbasicauth.assets.json @@ -1,20 +1,20 @@ { "version": "34.0.0", "files": { - "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038": { + "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { "source": { - "path": "asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038", + "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip", + "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "d6084868107e4a1febaa3ac3a62aab521fa8cee792a00ed9e56f2cda01d04c01": { + "50ea36df785dc53f86708b0a9f173a912e50b6d9b7ef625e43903316237d69e3": { "source": { "path": "cdk-integ-opensearch-unsignedbasicauth.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "d6084868107e4a1febaa3ac3a62aab521fa8cee792a00ed9e56f2cda01d04c01.json", + "objectKey": "50ea36df785dc53f86708b0a9f173a912e50b6d9b7ef625e43903316237d69e3.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/cdk-integ-opensearch-unsignedbasicauth.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/cdk-integ-opensearch-unsignedbasicauth.template.json index 7d695c85e442a..9e3e67f0aacb2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/cdk-integ-opensearch-unsignedbasicauth.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/cdk-integ-opensearch-unsignedbasicauth.template.json @@ -189,7 +189,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "S3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "Handler": "index.handler", "Role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/manifest.json index ab227f4959902..b056f8722126a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/manifest.json @@ -17,7 +17,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d6084868107e4a1febaa3ac3a62aab521fa8cee792a00ed9e56f2cda01d04c01.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/50ea36df785dc53f86708b0a9f173a912e50b6d9b7ef625e43903316237d69e3.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/tree.json index b9f300fe46186..61499346ab832 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/tree.json @@ -279,7 +279,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "s3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "handler": "index.handler", "role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js deleted file mode 100644 index 1b0227e9abb22..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var ce=Object.create;var A=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var ge=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)A(e,a,{get:t[a],enumerable:!0})},_=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pe(t))!de.call(e,i)&&i!==a&&A(e,i,{get:()=>t[i],enumerable:!(r=le(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?ce(ue(e)):{},_(t||!e||!e.__esModule?A(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>_(A({},"__esModule",{value:!0}),e);function Se(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?me.decode(e.buffer):e}function b(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=Se(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function k(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function w(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((u,l)=>{try{let c=require("https").request(s,u);c.on("error",l),c.write(o),c.end()}catch(c){l(c)}})}function S(e){if(e)return JSON.parse(e)}function P(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,me,D=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",me=new TextDecoder});var K={};y(K,{forceSdkInstallation:()=>ye,handler:()=>Re});function ye(){M=!1}function fe(){console.log("Installing latest AWS SDK v2"),(0,U.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),M=!0}function he(e){let t=e.apiLoader;return Ce.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,u=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!M&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{fe(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else M?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=he(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let l=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${l}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let u=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let l=await u[n.action](n.parameters&&k(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...b(l)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=w(i,P(c)):o=i}catch(l){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(l.code))throw l}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var U,B,T,M,Ce,N=d(()=>{"use strict";U=require("child_process"),B=E(require("fs")),T=require("path");D();M=!1;Ce=[]});var q,G=d(()=>{"use strict";q={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var j={};y(j,{coerceApiParametersToUint8Array:()=>Ae,coerceToUint8Array:()=>v});function Ae(e,t,a={}){let r=q?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)v(a,i.split("."));return a}function v(e,t){return t.length===0?be(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>v(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=v(e[t[0]],t.slice(1))),e)}function be(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var $=d(()=>{"use strict";G()});var H={};y(H,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var z,Z=d(()=>{"use strict";z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,Q=d(()=>{"use strict";Z();F={...z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var J={};y(J,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";Q();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var Y={};y(Y,{getV3Client:()=>we,getV3Command:()=>Pe,loadV3ClientPackage:()=>ke});function ke(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function we(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Pe(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var X=d(()=>{"use strict";x();W()});var ee=ge(p=>{"use strict";var De=p&&p.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Me=p&&p.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(p,"__esModule",{value:!0});p.getV3ClientPackageName=p.findV3ClientConstructor=p.coerceApiParametersToUint8Array=void 0;var ve=($(),f(j));Object.defineProperty(p,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return ve.coerceApiParametersToUint8Array}});var Ie=(x(),f(H));Object.defineProperty(p,"findV3ClientConstructor",{enumerable:!0,get:function(){return Ie.findV3ClientConstructor}});var Ee=(W(),f(J));Object.defineProperty(p,"getV3ClientPackageName",{enumerable:!0,get:function(){return Ee.getV3ClientPackageName}});Me((X(),f(Y)),p)});var ae={};y(ae,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Be(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,te.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),h={...h,[e]:!0}}async function Te(e,t){let a;try{if(!h[e]&&t==="true")try{Be(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else h[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Oe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,I.getV3ClientPackageName)(i.service),n=Te(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let s;if(i.assumedRoleArn){let g=new Date().getTime(),m={RoleArn:i.assumedRoleArn,RoleSessionName:`${g}-${r}`.substring(0,64)},{fromTemporaryCredentials:se}=await import("@aws-sdk/credential-providers");s=se({params:m,clientConfig:i.region!==void 0?{region:i.region}:void 0})}n=await n;let u=(0,I.findV3ClientConstructor)(n),l=new u({apiVersion:i.apiVersion,credentials:s,region:i.region}),c=i.action.endsWith("Command")?i.action:`${i.action}Command`,oe=Object.entries(n).find(([g])=>g.toLowerCase()===c.toLowerCase())?.[1],R={};try{let g=await l.send(new oe((i.parameters&&k(i.parameters,r))??{}));R={apiVersion:l.config.apiVersion,region:await l.config.region().catch(()=>{}),...b(g)};let m;i.outputPath?m=[i.outputPath]:i.outputPaths&&(m=i.outputPaths),m?a=w(R,P(m)):a=R}catch(g){let m=g.name??g.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(m))throw g}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var te,I,h,ie=d(()=>{"use strict";te=require("child_process"),I=E(ee());D();h={}});var Fe={};y(Fe,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>xe,v2handler:()=>re,v3handler:()=>ne});module.exports=f(Fe);D();function re(e,t){return(N(),f(K)).handler(e,t)}function ne(e,t){return(ie(),f(ae)).handler(e,t)}function xe(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?ne(e,t):re(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js new file mode 100644 index 0000000000000..c58c31d67d083 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js @@ -0,0 +1 @@ +"use strict";var pe=Object.create;var b=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var me=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)b(e,a,{get:t[a],enumerable:!0})},U=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&b(e,i,{get:()=>t[i],enumerable:!(r=ue(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?pe(me(e)):{},U(t||!e||!e.__esModule?b(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>U(b({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?ye.decode(e.buffer):e}function k(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=fe(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function w(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function P(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((p,u)=>{try{let c=require("https").request(s,p);c.on("error",u),c.write(o),c.end()}catch(c){u(c)}})}function S(e){if(e)return JSON.parse(e)}function D(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,ye,M=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",ye=new TextDecoder});var N={};y(N,{forceSdkInstallation:()=>Ce,handler:()=>be});function Ce(){v=!1}function he(){console.log("Installing latest AWS SDK v2"),(0,K.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function Ae(e){let t=e.apiLoader;return Re.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,p=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return p.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,p},enumerable:!0,configurable:!0})})}),e}async function be(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{he(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else v?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=Ae(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let u=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${u}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let p=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let u=await p[n.action](n.parameters&&w(n.parameters,r)).promise();i={apiVersion:p.config.apiVersion,region:p.config.region,...k(u)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=P(i,D(c)):o=i}catch(u){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(u.code))throw u}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var K,B,T,v,Re,q=d(()=>{"use strict";K=require("child_process"),B=E(require("fs")),T=require("path");M();v=!1;Re=[]});var G,j=d(()=>{"use strict";G={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var $={};y($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>I});function ke(e,t,a={}){let r=G?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)I(a,i.split("."));return a}function I(e,t){return t.length===0?we(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>I(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=I(e[t[0]],t.slice(1))),e)}function we(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var H=d(()=>{"use strict";j()});var z={};y(z,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Z,Q=d(()=>{"use strict";Z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,J=d(()=>{"use strict";Q();F={...Z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var Y={};y(Y,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";J();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var X={};y(X,{getV3Client:()=>De,getV3Command:()=>Me,loadV3ClientPackage:()=>Pe});function Pe(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function De(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Me(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var ee=d(()=>{"use strict";x();W()});var te=Se(l=>{"use strict";var ve=l&&l.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Ie=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&ve(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Ee=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Ee.coerceApiParametersToUint8Array}});var Le=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Le.findV3ClientConstructor}});var Be=(W(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return Be.getV3ClientPackageName}});Ie((ee(),f(X)),l)});var ie={};y(ie,{forceSdkInstallation:()=>Te,handler:()=>Fe});function Te(){R={}}function Oe(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,ae.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),R={...R,[e]:!0}}async function xe(e,t){let a;try{if(!R[e]&&t==="true")try{Oe(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else R[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Fe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,h.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let p;if(i.assumedRoleArn){let m=new Date().getTime(),g={RoleArn:i.assumedRoleArn,RoleSessionName:`${m}-${r}`.substring(0,64)},{fromTemporaryCredentials:le}=await import("@aws-sdk/credential-providers");p=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let u=(0,h.findV3ClientConstructor)(s),c=new u({apiVersion:i.apiVersion,credentials:p,region:i.region}),_=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=_.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===_.toLowerCase())?.[1],A={};try{let m=await c.send(new ce(i.parameters?(0,h.coerceApiParametersToUint8Array)(n,se,w(i.parameters,r)):{}));A={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...k(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=P(A,D(g)):a=A}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=A[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,h,R,re=d(()=>{"use strict";ae=require("child_process"),h=E(te());M();R={}});var We={};y(We,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>Ve,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(We);M();function ne(e,t){return(q(),f(N)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Ve(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?oe(e,t):ne(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/aws-cdk-vpc-endpoint-dns-integ.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/aws-cdk-vpc-endpoint-dns-integ.assets.json index 48d6bbcc77d2d..a2e4fc4c3beb9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/aws-cdk-vpc-endpoint-dns-integ.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/aws-cdk-vpc-endpoint-dns-integ.assets.json @@ -1,20 +1,20 @@ { "version": "34.0.0", "files": { - "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038": { + "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { "source": { - "path": "asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038", + "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip", + "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "e23ff5065cb9e85db0a2bb31e78d3bc9760059dc13f3e01e1c84ce5021bcd50e": { + "41621824685e33d45b7dcb8dedd05ed874dbdacba427ecc217520d007f8e058f": { "source": { "path": "aws-cdk-vpc-endpoint-dns-integ.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e23ff5065cb9e85db0a2bb31e78d3bc9760059dc13f3e01e1c84ce5021bcd50e.json", + "objectKey": "41621824685e33d45b7dcb8dedd05ed874dbdacba427ecc217520d007f8e058f.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/aws-cdk-vpc-endpoint-dns-integ.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/aws-cdk-vpc-endpoint-dns-integ.template.json index 908b344a3cc73..4435a7cb48802 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/aws-cdk-vpc-endpoint-dns-integ.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/aws-cdk-vpc-endpoint-dns-integ.template.json @@ -815,7 +815,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "S3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "Handler": "index.handler", "Role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/manifest.json index bf08fa072f356..707038a22e114 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/manifest.json @@ -17,7 +17,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e23ff5065cb9e85db0a2bb31e78d3bc9760059dc13f3e01e1c84ce5021bcd50e.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/41621824685e33d45b7dcb8dedd05ed874dbdacba427ecc217520d007f8e058f.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/tree.json index 54f0a37be593f..48578668b2215 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/tree.json @@ -1159,7 +1159,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "s3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "handler": "index.handler", "role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js deleted file mode 100644 index 1b0227e9abb22..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var ce=Object.create;var A=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var ge=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)A(e,a,{get:t[a],enumerable:!0})},_=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pe(t))!de.call(e,i)&&i!==a&&A(e,i,{get:()=>t[i],enumerable:!(r=le(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?ce(ue(e)):{},_(t||!e||!e.__esModule?A(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>_(A({},"__esModule",{value:!0}),e);function Se(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?me.decode(e.buffer):e}function b(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=Se(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function k(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function w(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((u,l)=>{try{let c=require("https").request(s,u);c.on("error",l),c.write(o),c.end()}catch(c){l(c)}})}function S(e){if(e)return JSON.parse(e)}function P(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,me,D=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",me=new TextDecoder});var K={};y(K,{forceSdkInstallation:()=>ye,handler:()=>Re});function ye(){M=!1}function fe(){console.log("Installing latest AWS SDK v2"),(0,U.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),M=!0}function he(e){let t=e.apiLoader;return Ce.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,u=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!M&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{fe(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else M?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=he(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let l=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${l}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let u=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let l=await u[n.action](n.parameters&&k(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...b(l)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=w(i,P(c)):o=i}catch(l){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(l.code))throw l}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var U,B,T,M,Ce,N=d(()=>{"use strict";U=require("child_process"),B=E(require("fs")),T=require("path");D();M=!1;Ce=[]});var q,G=d(()=>{"use strict";q={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var j={};y(j,{coerceApiParametersToUint8Array:()=>Ae,coerceToUint8Array:()=>v});function Ae(e,t,a={}){let r=q?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)v(a,i.split("."));return a}function v(e,t){return t.length===0?be(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>v(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=v(e[t[0]],t.slice(1))),e)}function be(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var $=d(()=>{"use strict";G()});var H={};y(H,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var z,Z=d(()=>{"use strict";z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,Q=d(()=>{"use strict";Z();F={...z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var J={};y(J,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";Q();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var Y={};y(Y,{getV3Client:()=>we,getV3Command:()=>Pe,loadV3ClientPackage:()=>ke});function ke(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function we(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Pe(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var X=d(()=>{"use strict";x();W()});var ee=ge(p=>{"use strict";var De=p&&p.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Me=p&&p.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(p,"__esModule",{value:!0});p.getV3ClientPackageName=p.findV3ClientConstructor=p.coerceApiParametersToUint8Array=void 0;var ve=($(),f(j));Object.defineProperty(p,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return ve.coerceApiParametersToUint8Array}});var Ie=(x(),f(H));Object.defineProperty(p,"findV3ClientConstructor",{enumerable:!0,get:function(){return Ie.findV3ClientConstructor}});var Ee=(W(),f(J));Object.defineProperty(p,"getV3ClientPackageName",{enumerable:!0,get:function(){return Ee.getV3ClientPackageName}});Me((X(),f(Y)),p)});var ae={};y(ae,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Be(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,te.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),h={...h,[e]:!0}}async function Te(e,t){let a;try{if(!h[e]&&t==="true")try{Be(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else h[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Oe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,I.getV3ClientPackageName)(i.service),n=Te(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let s;if(i.assumedRoleArn){let g=new Date().getTime(),m={RoleArn:i.assumedRoleArn,RoleSessionName:`${g}-${r}`.substring(0,64)},{fromTemporaryCredentials:se}=await import("@aws-sdk/credential-providers");s=se({params:m,clientConfig:i.region!==void 0?{region:i.region}:void 0})}n=await n;let u=(0,I.findV3ClientConstructor)(n),l=new u({apiVersion:i.apiVersion,credentials:s,region:i.region}),c=i.action.endsWith("Command")?i.action:`${i.action}Command`,oe=Object.entries(n).find(([g])=>g.toLowerCase()===c.toLowerCase())?.[1],R={};try{let g=await l.send(new oe((i.parameters&&k(i.parameters,r))??{}));R={apiVersion:l.config.apiVersion,region:await l.config.region().catch(()=>{}),...b(g)};let m;i.outputPath?m=[i.outputPath]:i.outputPaths&&(m=i.outputPaths),m?a=w(R,P(m)):a=R}catch(g){let m=g.name??g.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(m))throw g}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var te,I,h,ie=d(()=>{"use strict";te=require("child_process"),I=E(ee());D();h={}});var Fe={};y(Fe,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>xe,v2handler:()=>re,v3handler:()=>ne});module.exports=f(Fe);D();function re(e,t){return(N(),f(K)).handler(e,t)}function ne(e,t){return(ie(),f(ae)).handler(e,t)}function xe(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?ne(e,t):re(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js new file mode 100644 index 0000000000000..c58c31d67d083 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js @@ -0,0 +1 @@ +"use strict";var pe=Object.create;var b=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var me=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)b(e,a,{get:t[a],enumerable:!0})},U=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&b(e,i,{get:()=>t[i],enumerable:!(r=ue(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?pe(me(e)):{},U(t||!e||!e.__esModule?b(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>U(b({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?ye.decode(e.buffer):e}function k(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=fe(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function w(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function P(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((p,u)=>{try{let c=require("https").request(s,p);c.on("error",u),c.write(o),c.end()}catch(c){u(c)}})}function S(e){if(e)return JSON.parse(e)}function D(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,ye,M=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",ye=new TextDecoder});var N={};y(N,{forceSdkInstallation:()=>Ce,handler:()=>be});function Ce(){v=!1}function he(){console.log("Installing latest AWS SDK v2"),(0,K.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function Ae(e){let t=e.apiLoader;return Re.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,p=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return p.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,p},enumerable:!0,configurable:!0})})}),e}async function be(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{he(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else v?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=Ae(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let u=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${u}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let p=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let u=await p[n.action](n.parameters&&w(n.parameters,r)).promise();i={apiVersion:p.config.apiVersion,region:p.config.region,...k(u)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=P(i,D(c)):o=i}catch(u){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(u.code))throw u}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var K,B,T,v,Re,q=d(()=>{"use strict";K=require("child_process"),B=E(require("fs")),T=require("path");M();v=!1;Re=[]});var G,j=d(()=>{"use strict";G={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var $={};y($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>I});function ke(e,t,a={}){let r=G?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)I(a,i.split("."));return a}function I(e,t){return t.length===0?we(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>I(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=I(e[t[0]],t.slice(1))),e)}function we(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var H=d(()=>{"use strict";j()});var z={};y(z,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Z,Q=d(()=>{"use strict";Z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,J=d(()=>{"use strict";Q();F={...Z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var Y={};y(Y,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";J();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var X={};y(X,{getV3Client:()=>De,getV3Command:()=>Me,loadV3ClientPackage:()=>Pe});function Pe(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function De(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Me(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var ee=d(()=>{"use strict";x();W()});var te=Se(l=>{"use strict";var ve=l&&l.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Ie=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&ve(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Ee=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Ee.coerceApiParametersToUint8Array}});var Le=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Le.findV3ClientConstructor}});var Be=(W(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return Be.getV3ClientPackageName}});Ie((ee(),f(X)),l)});var ie={};y(ie,{forceSdkInstallation:()=>Te,handler:()=>Fe});function Te(){R={}}function Oe(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,ae.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),R={...R,[e]:!0}}async function xe(e,t){let a;try{if(!R[e]&&t==="true")try{Oe(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else R[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Fe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,h.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let p;if(i.assumedRoleArn){let m=new Date().getTime(),g={RoleArn:i.assumedRoleArn,RoleSessionName:`${m}-${r}`.substring(0,64)},{fromTemporaryCredentials:le}=await import("@aws-sdk/credential-providers");p=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let u=(0,h.findV3ClientConstructor)(s),c=new u({apiVersion:i.apiVersion,credentials:p,region:i.region}),_=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=_.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===_.toLowerCase())?.[1],A={};try{let m=await c.send(new ce(i.parameters?(0,h.coerceApiParametersToUint8Array)(n,se,w(i.parameters,r)):{}));A={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...k(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=P(A,D(g)):a=A}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=A[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,h,R,re=d(()=>{"use strict";ae=require("child_process"),h=E(te());M();R={}});var We={};y(We,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>Ve,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(We);M();function ne(e,t){return(q(),f(N)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Ve(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?oe(e,t):ne(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/cdk-s3-bucket-auto-delete-objects.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/cdk-s3-bucket-auto-delete-objects.assets.json index f6f17e796830c..be47a1b007b19 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/cdk-s3-bucket-auto-delete-objects.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/cdk-s3-bucket-auto-delete-objects.assets.json @@ -27,20 +27,20 @@ } } }, - "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038": { + "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { "source": { - "path": "asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038", + "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip", + "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "67082c88899c1f134cb9d12a5e81b9c65fee8ae0de585db4a3936e71a7264f7e": { + "0c7ed524b46122628a1de30953154e24b73441dab16b4f56400e982e8219a78f": { "source": { "path": "cdk-s3-bucket-auto-delete-objects.template.json", "packaging": "file" @@ -48,7 +48,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "67082c88899c1f134cb9d12a5e81b9c65fee8ae0de585db4a3936e71a7264f7e.json", + "objectKey": "0c7ed524b46122628a1de30953154e24b73441dab16b4f56400e982e8219a78f.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/cdk-s3-bucket-auto-delete-objects.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/cdk-s3-bucket-auto-delete-objects.template.json index 934a6dbf2b8f9..b291b3aa636c2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/cdk-s3-bucket-auto-delete-objects.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/cdk-s3-bucket-auto-delete-objects.template.json @@ -414,7 +414,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "S3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "Handler": "index.handler", "Role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/manifest.json index fadd90a23d163..ebd7b25b76dbb 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/manifest.json @@ -17,7 +17,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/67082c88899c1f134cb9d12a5e81b9c65fee8ae0de585db4a3936e71a7264f7e.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0c7ed524b46122628a1de30953154e24b73441dab16b4f56400e982e8219a78f.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/tree.json index fc39e021dcbc2..9dc1a3f6efea1 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/tree.json @@ -503,7 +503,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "s3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "handler": "index.handler", "role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js deleted file mode 100644 index 1b0227e9abb22..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var ce=Object.create;var A=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var ge=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)A(e,a,{get:t[a],enumerable:!0})},_=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pe(t))!de.call(e,i)&&i!==a&&A(e,i,{get:()=>t[i],enumerable:!(r=le(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?ce(ue(e)):{},_(t||!e||!e.__esModule?A(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>_(A({},"__esModule",{value:!0}),e);function Se(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?me.decode(e.buffer):e}function b(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=Se(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function k(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function w(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((u,l)=>{try{let c=require("https").request(s,u);c.on("error",l),c.write(o),c.end()}catch(c){l(c)}})}function S(e){if(e)return JSON.parse(e)}function P(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,me,D=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",me=new TextDecoder});var K={};y(K,{forceSdkInstallation:()=>ye,handler:()=>Re});function ye(){M=!1}function fe(){console.log("Installing latest AWS SDK v2"),(0,U.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),M=!0}function he(e){let t=e.apiLoader;return Ce.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,u=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!M&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{fe(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else M?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=he(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let l=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${l}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let u=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let l=await u[n.action](n.parameters&&k(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...b(l)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=w(i,P(c)):o=i}catch(l){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(l.code))throw l}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var U,B,T,M,Ce,N=d(()=>{"use strict";U=require("child_process"),B=E(require("fs")),T=require("path");D();M=!1;Ce=[]});var q,G=d(()=>{"use strict";q={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var j={};y(j,{coerceApiParametersToUint8Array:()=>Ae,coerceToUint8Array:()=>v});function Ae(e,t,a={}){let r=q?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)v(a,i.split("."));return a}function v(e,t){return t.length===0?be(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>v(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=v(e[t[0]],t.slice(1))),e)}function be(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var $=d(()=>{"use strict";G()});var H={};y(H,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var z,Z=d(()=>{"use strict";z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,Q=d(()=>{"use strict";Z();F={...z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var J={};y(J,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";Q();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var Y={};y(Y,{getV3Client:()=>we,getV3Command:()=>Pe,loadV3ClientPackage:()=>ke});function ke(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function we(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Pe(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var X=d(()=>{"use strict";x();W()});var ee=ge(p=>{"use strict";var De=p&&p.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Me=p&&p.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(p,"__esModule",{value:!0});p.getV3ClientPackageName=p.findV3ClientConstructor=p.coerceApiParametersToUint8Array=void 0;var ve=($(),f(j));Object.defineProperty(p,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return ve.coerceApiParametersToUint8Array}});var Ie=(x(),f(H));Object.defineProperty(p,"findV3ClientConstructor",{enumerable:!0,get:function(){return Ie.findV3ClientConstructor}});var Ee=(W(),f(J));Object.defineProperty(p,"getV3ClientPackageName",{enumerable:!0,get:function(){return Ee.getV3ClientPackageName}});Me((X(),f(Y)),p)});var ae={};y(ae,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Be(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,te.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),h={...h,[e]:!0}}async function Te(e,t){let a;try{if(!h[e]&&t==="true")try{Be(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else h[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Oe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,I.getV3ClientPackageName)(i.service),n=Te(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let s;if(i.assumedRoleArn){let g=new Date().getTime(),m={RoleArn:i.assumedRoleArn,RoleSessionName:`${g}-${r}`.substring(0,64)},{fromTemporaryCredentials:se}=await import("@aws-sdk/credential-providers");s=se({params:m,clientConfig:i.region!==void 0?{region:i.region}:void 0})}n=await n;let u=(0,I.findV3ClientConstructor)(n),l=new u({apiVersion:i.apiVersion,credentials:s,region:i.region}),c=i.action.endsWith("Command")?i.action:`${i.action}Command`,oe=Object.entries(n).find(([g])=>g.toLowerCase()===c.toLowerCase())?.[1],R={};try{let g=await l.send(new oe((i.parameters&&k(i.parameters,r))??{}));R={apiVersion:l.config.apiVersion,region:await l.config.region().catch(()=>{}),...b(g)};let m;i.outputPath?m=[i.outputPath]:i.outputPaths&&(m=i.outputPaths),m?a=w(R,P(m)):a=R}catch(g){let m=g.name??g.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(m))throw g}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var te,I,h,ie=d(()=>{"use strict";te=require("child_process"),I=E(ee());D();h={}});var Fe={};y(Fe,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>xe,v2handler:()=>re,v3handler:()=>ne});module.exports=f(Fe);D();function re(e,t){return(N(),f(K)).handler(e,t)}function ne(e,t){return(ie(),f(ae)).handler(e,t)}function xe(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?ne(e,t):re(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js new file mode 100644 index 0000000000000..c58c31d67d083 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js @@ -0,0 +1 @@ +"use strict";var pe=Object.create;var b=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var me=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)b(e,a,{get:t[a],enumerable:!0})},U=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&b(e,i,{get:()=>t[i],enumerable:!(r=ue(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?pe(me(e)):{},U(t||!e||!e.__esModule?b(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>U(b({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?ye.decode(e.buffer):e}function k(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=fe(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function w(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function P(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((p,u)=>{try{let c=require("https").request(s,p);c.on("error",u),c.write(o),c.end()}catch(c){u(c)}})}function S(e){if(e)return JSON.parse(e)}function D(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,ye,M=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",ye=new TextDecoder});var N={};y(N,{forceSdkInstallation:()=>Ce,handler:()=>be});function Ce(){v=!1}function he(){console.log("Installing latest AWS SDK v2"),(0,K.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function Ae(e){let t=e.apiLoader;return Re.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,p=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return p.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,p},enumerable:!0,configurable:!0})})}),e}async function be(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{he(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else v?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=Ae(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let u=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${u}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let p=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let u=await p[n.action](n.parameters&&w(n.parameters,r)).promise();i={apiVersion:p.config.apiVersion,region:p.config.region,...k(u)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=P(i,D(c)):o=i}catch(u){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(u.code))throw u}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var K,B,T,v,Re,q=d(()=>{"use strict";K=require("child_process"),B=E(require("fs")),T=require("path");M();v=!1;Re=[]});var G,j=d(()=>{"use strict";G={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var $={};y($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>I});function ke(e,t,a={}){let r=G?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)I(a,i.split("."));return a}function I(e,t){return t.length===0?we(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>I(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=I(e[t[0]],t.slice(1))),e)}function we(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var H=d(()=>{"use strict";j()});var z={};y(z,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Z,Q=d(()=>{"use strict";Z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,J=d(()=>{"use strict";Q();F={...Z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var Y={};y(Y,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";J();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var X={};y(X,{getV3Client:()=>De,getV3Command:()=>Me,loadV3ClientPackage:()=>Pe});function Pe(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function De(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Me(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var ee=d(()=>{"use strict";x();W()});var te=Se(l=>{"use strict";var ve=l&&l.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Ie=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&ve(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Ee=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Ee.coerceApiParametersToUint8Array}});var Le=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Le.findV3ClientConstructor}});var Be=(W(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return Be.getV3ClientPackageName}});Ie((ee(),f(X)),l)});var ie={};y(ie,{forceSdkInstallation:()=>Te,handler:()=>Fe});function Te(){R={}}function Oe(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,ae.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),R={...R,[e]:!0}}async function xe(e,t){let a;try{if(!R[e]&&t==="true")try{Oe(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else R[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Fe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,h.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let p;if(i.assumedRoleArn){let m=new Date().getTime(),g={RoleArn:i.assumedRoleArn,RoleSessionName:`${m}-${r}`.substring(0,64)},{fromTemporaryCredentials:le}=await import("@aws-sdk/credential-providers");p=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let u=(0,h.findV3ClientConstructor)(s),c=new u({apiVersion:i.apiVersion,credentials:p,region:i.region}),_=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=_.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===_.toLowerCase())?.[1],A={};try{let m=await c.send(new ce(i.parameters?(0,h.coerceApiParametersToUint8Array)(n,se,w(i.parameters,r)):{}));A={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...k(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=P(A,D(g)):a=A}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=A[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,h,R,re=d(()=>{"use strict";ae=require("child_process"),h=E(te());M();R={}});var We={};y(We,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>Ve,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(We);M();function ne(e,t){return(q(),f(N)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Ve(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?oe(e,t):ne(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/aws-cdk-customresources-athena.assets.json b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/aws-cdk-customresources-athena.assets.json index 1daa994b02821..8f02a9d34a195 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/aws-cdk-customresources-athena.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/aws-cdk-customresources-athena.assets.json @@ -1,20 +1,20 @@ { "version": "34.0.0", "files": { - "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038": { + "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { "source": { - "path": "asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038", + "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip", + "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "6e789782997d54f110f5645ebf1cacc69d2dde457f874e5f8f79bc94a1061021": { + "23ff174b469e663d5e661b8f70483a77806187944e7acfbef024118086caf532": { "source": { "path": "aws-cdk-customresources-athena.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "6e789782997d54f110f5645ebf1cacc69d2dde457f874e5f8f79bc94a1061021.json", + "objectKey": "23ff174b469e663d5e661b8f70483a77806187944e7acfbef024118086caf532.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/aws-cdk-customresources-athena.template.json b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/aws-cdk-customresources-athena.template.json index 4d6f26f150d71..81ac4d5d7f240 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/aws-cdk-customresources-athena.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/aws-cdk-customresources-athena.template.json @@ -161,7 +161,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "S3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "Handler": "index.handler", "Role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/manifest.json index 3ca2b97c9095d..170601b9bbac9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/manifest.json @@ -17,7 +17,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6e789782997d54f110f5645ebf1cacc69d2dde457f874e5f8f79bc94a1061021.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/23ff174b469e663d5e661b8f70483a77806187944e7acfbef024118086caf532.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/tree.json index ecfe27846670c..dce95075509c7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/tree.json @@ -273,7 +273,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "s3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "handler": "index.handler", "role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js deleted file mode 100644 index 1b0227e9abb22..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var ce=Object.create;var A=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var ge=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)A(e,a,{get:t[a],enumerable:!0})},_=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pe(t))!de.call(e,i)&&i!==a&&A(e,i,{get:()=>t[i],enumerable:!(r=le(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?ce(ue(e)):{},_(t||!e||!e.__esModule?A(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>_(A({},"__esModule",{value:!0}),e);function Se(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?me.decode(e.buffer):e}function b(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=Se(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function k(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function w(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((u,l)=>{try{let c=require("https").request(s,u);c.on("error",l),c.write(o),c.end()}catch(c){l(c)}})}function S(e){if(e)return JSON.parse(e)}function P(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,me,D=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",me=new TextDecoder});var K={};y(K,{forceSdkInstallation:()=>ye,handler:()=>Re});function ye(){M=!1}function fe(){console.log("Installing latest AWS SDK v2"),(0,U.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),M=!0}function he(e){let t=e.apiLoader;return Ce.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,u=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!M&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{fe(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else M?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=he(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let l=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${l}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let u=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let l=await u[n.action](n.parameters&&k(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...b(l)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=w(i,P(c)):o=i}catch(l){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(l.code))throw l}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var U,B,T,M,Ce,N=d(()=>{"use strict";U=require("child_process"),B=E(require("fs")),T=require("path");D();M=!1;Ce=[]});var q,G=d(()=>{"use strict";q={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var j={};y(j,{coerceApiParametersToUint8Array:()=>Ae,coerceToUint8Array:()=>v});function Ae(e,t,a={}){let r=q?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)v(a,i.split("."));return a}function v(e,t){return t.length===0?be(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>v(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=v(e[t[0]],t.slice(1))),e)}function be(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var $=d(()=>{"use strict";G()});var H={};y(H,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var z,Z=d(()=>{"use strict";z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,Q=d(()=>{"use strict";Z();F={...z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var J={};y(J,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";Q();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var Y={};y(Y,{getV3Client:()=>we,getV3Command:()=>Pe,loadV3ClientPackage:()=>ke});function ke(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function we(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Pe(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var X=d(()=>{"use strict";x();W()});var ee=ge(p=>{"use strict";var De=p&&p.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Me=p&&p.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(p,"__esModule",{value:!0});p.getV3ClientPackageName=p.findV3ClientConstructor=p.coerceApiParametersToUint8Array=void 0;var ve=($(),f(j));Object.defineProperty(p,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return ve.coerceApiParametersToUint8Array}});var Ie=(x(),f(H));Object.defineProperty(p,"findV3ClientConstructor",{enumerable:!0,get:function(){return Ie.findV3ClientConstructor}});var Ee=(W(),f(J));Object.defineProperty(p,"getV3ClientPackageName",{enumerable:!0,get:function(){return Ee.getV3ClientPackageName}});Me((X(),f(Y)),p)});var ae={};y(ae,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Be(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,te.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),h={...h,[e]:!0}}async function Te(e,t){let a;try{if(!h[e]&&t==="true")try{Be(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else h[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Oe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,I.getV3ClientPackageName)(i.service),n=Te(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let s;if(i.assumedRoleArn){let g=new Date().getTime(),m={RoleArn:i.assumedRoleArn,RoleSessionName:`${g}-${r}`.substring(0,64)},{fromTemporaryCredentials:se}=await import("@aws-sdk/credential-providers");s=se({params:m,clientConfig:i.region!==void 0?{region:i.region}:void 0})}n=await n;let u=(0,I.findV3ClientConstructor)(n),l=new u({apiVersion:i.apiVersion,credentials:s,region:i.region}),c=i.action.endsWith("Command")?i.action:`${i.action}Command`,oe=Object.entries(n).find(([g])=>g.toLowerCase()===c.toLowerCase())?.[1],R={};try{let g=await l.send(new oe((i.parameters&&k(i.parameters,r))??{}));R={apiVersion:l.config.apiVersion,region:await l.config.region().catch(()=>{}),...b(g)};let m;i.outputPath?m=[i.outputPath]:i.outputPaths&&(m=i.outputPaths),m?a=w(R,P(m)):a=R}catch(g){let m=g.name??g.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(m))throw g}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var te,I,h,ie=d(()=>{"use strict";te=require("child_process"),I=E(ee());D();h={}});var Fe={};y(Fe,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>xe,v2handler:()=>re,v3handler:()=>ne});module.exports=f(Fe);D();function re(e,t){return(N(),f(K)).handler(e,t)}function ne(e,t){return(ie(),f(ae)).handler(e,t)}function xe(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?ne(e,t):re(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js new file mode 100644 index 0000000000000..c58c31d67d083 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js @@ -0,0 +1 @@ +"use strict";var pe=Object.create;var b=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var me=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)b(e,a,{get:t[a],enumerable:!0})},U=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&b(e,i,{get:()=>t[i],enumerable:!(r=ue(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?pe(me(e)):{},U(t||!e||!e.__esModule?b(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>U(b({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?ye.decode(e.buffer):e}function k(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=fe(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function w(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function P(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((p,u)=>{try{let c=require("https").request(s,p);c.on("error",u),c.write(o),c.end()}catch(c){u(c)}})}function S(e){if(e)return JSON.parse(e)}function D(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,ye,M=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",ye=new TextDecoder});var N={};y(N,{forceSdkInstallation:()=>Ce,handler:()=>be});function Ce(){v=!1}function he(){console.log("Installing latest AWS SDK v2"),(0,K.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function Ae(e){let t=e.apiLoader;return Re.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,p=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return p.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,p},enumerable:!0,configurable:!0})})}),e}async function be(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{he(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else v?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=Ae(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let u=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${u}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let p=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let u=await p[n.action](n.parameters&&w(n.parameters,r)).promise();i={apiVersion:p.config.apiVersion,region:p.config.region,...k(u)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=P(i,D(c)):o=i}catch(u){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(u.code))throw u}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var K,B,T,v,Re,q=d(()=>{"use strict";K=require("child_process"),B=E(require("fs")),T=require("path");M();v=!1;Re=[]});var G,j=d(()=>{"use strict";G={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var $={};y($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>I});function ke(e,t,a={}){let r=G?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)I(a,i.split("."));return a}function I(e,t){return t.length===0?we(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>I(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=I(e[t[0]],t.slice(1))),e)}function we(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var H=d(()=>{"use strict";j()});var z={};y(z,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Z,Q=d(()=>{"use strict";Z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,J=d(()=>{"use strict";Q();F={...Z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var Y={};y(Y,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";J();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var X={};y(X,{getV3Client:()=>De,getV3Command:()=>Me,loadV3ClientPackage:()=>Pe});function Pe(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function De(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Me(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var ee=d(()=>{"use strict";x();W()});var te=Se(l=>{"use strict";var ve=l&&l.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Ie=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&ve(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Ee=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Ee.coerceApiParametersToUint8Array}});var Le=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Le.findV3ClientConstructor}});var Be=(W(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return Be.getV3ClientPackageName}});Ie((ee(),f(X)),l)});var ie={};y(ie,{forceSdkInstallation:()=>Te,handler:()=>Fe});function Te(){R={}}function Oe(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,ae.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),R={...R,[e]:!0}}async function xe(e,t){let a;try{if(!R[e]&&t==="true")try{Oe(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else R[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Fe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,h.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let p;if(i.assumedRoleArn){let m=new Date().getTime(),g={RoleArn:i.assumedRoleArn,RoleSessionName:`${m}-${r}`.substring(0,64)},{fromTemporaryCredentials:le}=await import("@aws-sdk/credential-providers");p=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let u=(0,h.findV3ClientConstructor)(s),c=new u({apiVersion:i.apiVersion,credentials:p,region:i.region}),_=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=_.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===_.toLowerCase())?.[1],A={};try{let m=await c.send(new ce(i.parameters?(0,h.coerceApiParametersToUint8Array)(n,se,w(i.parameters,r)):{}));A={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...k(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=P(A,D(g)):a=A}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=A[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,h,R,re=d(()=>{"use strict";ae=require("child_process"),h=E(te());M();R={}});var We={};y(We,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>Ve,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(We);M();function ne(e,t){return(q(),f(N)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Ve(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?oe(e,t):ne(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/aws-cdk-customresources-vpc.assets.json b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/aws-cdk-customresources-vpc.assets.json index f7de672361b82..2eb66e2565be7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/aws-cdk-customresources-vpc.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/aws-cdk-customresources-vpc.assets.json @@ -1,20 +1,20 @@ { "version": "34.0.0", "files": { - "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038": { + "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { "source": { - "path": "asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038", + "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip", + "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "93c40f25d0173af8d0156f91a9e24083311826bbdfe5bf0c18228435195e92ba": { + "9afd0fc67e12f8aea84fc522b60c4bf2ae2d10598cac37e1d6be11f512dd6911": { "source": { "path": "aws-cdk-customresources-vpc.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "93c40f25d0173af8d0156f91a9e24083311826bbdfe5bf0c18228435195e92ba.json", + "objectKey": "9afd0fc67e12f8aea84fc522b60c4bf2ae2d10598cac37e1d6be11f512dd6911.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/aws-cdk-customresources-vpc.template.json b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/aws-cdk-customresources-vpc.template.json index 2cae47cf6580b..77e55552ec936 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/aws-cdk-customresources-vpc.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/aws-cdk-customresources-vpc.template.json @@ -539,7 +539,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "S3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "Handler": "index.handler", "Role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/manifest.json index ce417768e619c..ce34c8ad36efa 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/manifest.json @@ -17,7 +17,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/93c40f25d0173af8d0156f91a9e24083311826bbdfe5bf0c18228435195e92ba.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9afd0fc67e12f8aea84fc522b60c4bf2ae2d10598cac37e1d6be11f512dd6911.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/tree.json index f3e7475609ee1..90d59b21d6aa9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/tree.json @@ -869,7 +869,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "s3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "handler": "index.handler", "role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js deleted file mode 100644 index 1b0227e9abb22..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var ce=Object.create;var A=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var ge=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)A(e,a,{get:t[a],enumerable:!0})},_=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pe(t))!de.call(e,i)&&i!==a&&A(e,i,{get:()=>t[i],enumerable:!(r=le(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?ce(ue(e)):{},_(t||!e||!e.__esModule?A(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>_(A({},"__esModule",{value:!0}),e);function Se(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?me.decode(e.buffer):e}function b(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=Se(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function k(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function w(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((u,l)=>{try{let c=require("https").request(s,u);c.on("error",l),c.write(o),c.end()}catch(c){l(c)}})}function S(e){if(e)return JSON.parse(e)}function P(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,me,D=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",me=new TextDecoder});var K={};y(K,{forceSdkInstallation:()=>ye,handler:()=>Re});function ye(){M=!1}function fe(){console.log("Installing latest AWS SDK v2"),(0,U.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),M=!0}function he(e){let t=e.apiLoader;return Ce.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,u=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!M&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{fe(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else M?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=he(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let l=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${l}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let u=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let l=await u[n.action](n.parameters&&k(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...b(l)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=w(i,P(c)):o=i}catch(l){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(l.code))throw l}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var U,B,T,M,Ce,N=d(()=>{"use strict";U=require("child_process"),B=E(require("fs")),T=require("path");D();M=!1;Ce=[]});var q,G=d(()=>{"use strict";q={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var j={};y(j,{coerceApiParametersToUint8Array:()=>Ae,coerceToUint8Array:()=>v});function Ae(e,t,a={}){let r=q?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)v(a,i.split("."));return a}function v(e,t){return t.length===0?be(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>v(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=v(e[t[0]],t.slice(1))),e)}function be(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var $=d(()=>{"use strict";G()});var H={};y(H,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var z,Z=d(()=>{"use strict";z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,Q=d(()=>{"use strict";Z();F={...z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var J={};y(J,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";Q();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var Y={};y(Y,{getV3Client:()=>we,getV3Command:()=>Pe,loadV3ClientPackage:()=>ke});function ke(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function we(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Pe(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var X=d(()=>{"use strict";x();W()});var ee=ge(p=>{"use strict";var De=p&&p.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Me=p&&p.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(p,"__esModule",{value:!0});p.getV3ClientPackageName=p.findV3ClientConstructor=p.coerceApiParametersToUint8Array=void 0;var ve=($(),f(j));Object.defineProperty(p,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return ve.coerceApiParametersToUint8Array}});var Ie=(x(),f(H));Object.defineProperty(p,"findV3ClientConstructor",{enumerable:!0,get:function(){return Ie.findV3ClientConstructor}});var Ee=(W(),f(J));Object.defineProperty(p,"getV3ClientPackageName",{enumerable:!0,get:function(){return Ee.getV3ClientPackageName}});Me((X(),f(Y)),p)});var ae={};y(ae,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Be(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,te.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),h={...h,[e]:!0}}async function Te(e,t){let a;try{if(!h[e]&&t==="true")try{Be(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else h[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Oe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,I.getV3ClientPackageName)(i.service),n=Te(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let s;if(i.assumedRoleArn){let g=new Date().getTime(),m={RoleArn:i.assumedRoleArn,RoleSessionName:`${g}-${r}`.substring(0,64)},{fromTemporaryCredentials:se}=await import("@aws-sdk/credential-providers");s=se({params:m,clientConfig:i.region!==void 0?{region:i.region}:void 0})}n=await n;let u=(0,I.findV3ClientConstructor)(n),l=new u({apiVersion:i.apiVersion,credentials:s,region:i.region}),c=i.action.endsWith("Command")?i.action:`${i.action}Command`,oe=Object.entries(n).find(([g])=>g.toLowerCase()===c.toLowerCase())?.[1],R={};try{let g=await l.send(new oe((i.parameters&&k(i.parameters,r))??{}));R={apiVersion:l.config.apiVersion,region:await l.config.region().catch(()=>{}),...b(g)};let m;i.outputPath?m=[i.outputPath]:i.outputPaths&&(m=i.outputPaths),m?a=w(R,P(m)):a=R}catch(g){let m=g.name??g.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(m))throw g}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var te,I,h,ie=d(()=>{"use strict";te=require("child_process"),I=E(ee());D();h={}});var Fe={};y(Fe,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>xe,v2handler:()=>re,v3handler:()=>ne});module.exports=f(Fe);D();function re(e,t){return(N(),f(K)).handler(e,t)}function ne(e,t){return(ie(),f(ae)).handler(e,t)}function xe(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?ne(e,t):re(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js new file mode 100644 index 0000000000000..c58c31d67d083 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js @@ -0,0 +1 @@ +"use strict";var pe=Object.create;var b=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var me=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var a in t)b(e,a,{get:t[a],enumerable:!0})},U=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&b(e,i,{get:()=>t[i],enumerable:!(r=ue(t,i))||r.enumerable});return e};var E=(e,t,a)=>(a=e!=null?pe(me(e)):{},U(t||!e||!e.__esModule?b(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>U(b({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?ye.decode(e.buffer):e}function k(e){function t(a,r=[]){return[].concat(...Object.keys(a).map(i=>{let o=fe(a[i]);return typeof o=="object"&&o!==null?t(o,r.concat([i])):{[r.concat([i]).join(".")]:o}}))}return Object.assign({},...t(e))}function w(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case L:return t;default:return r}})}function P(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function C(e,t,a,r,i){let o=JSON.stringify({Status:t,Reason:a,PhysicalResourceId:r,StackId:e.StackId,RequestId:e.RequestId,LogicalResourceId:e.LogicalResourceId,NoEcho:!1,Data:i});console.log("Responding",o);let n=require("url").parse(e.ResponseURL),s={hostname:n.hostname,path:n.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(o,"utf8")}};return new Promise((p,u)=>{try{let c=require("https").request(s,p);c.on("error",u),c.write(o),c.end()}catch(c){u(c)}})}function S(e){if(e)return JSON.parse(e)}function D(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var L,ye,M=d(()=>{"use strict";L="PHYSICAL:RESOURCEID:",ye=new TextDecoder});var N={};y(N,{forceSdkInstallation:()=>Ce,handler:()=>be});function Ce(){v=!1}function he(){console.log("Installing latest AWS SDK v2"),(0,K.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function Ae(e){let t=e.apiLoader;return Re.forEach(({serviceName:a,apiVersions:r})=>{let i=a.toLowerCase();e.Service.hasService(i)?e.Service.addVersions(e[a],r):(t.services[i]={},e[a]=e.Service.defineService(i,r)),r.forEach(o=>{Object.defineProperty(t.services[i],o,{get:function(){let s=`aws-sdk-patch/${i}-${o}`,p=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.service.json`),"utf-8"));return p.paginators=JSON.parse(B.readFileSync((0,T.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,p},enumerable:!0,configurable:!0})})}),e}async function be(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{he(),a=require("/tmp/node_modules/aws-sdk")}catch(s){console.log(`Failed to install latest AWS SDK v2: ${s}`),a=require("aws-sdk")}else v?a=require("/tmp/node_modules/aws-sdk"):a=require("aws-sdk");try{a=Ae(a)}catch(s){console.log(`Failed to patch AWS SDK: ${s}. Proceeding with the installed copy.`)}console.log(JSON.stringify({...e,ResponseURL:"..."})),console.log("AWS SDK VERSION: "+a.VERSION),e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i={},o={},n=e.ResourceProperties[e.RequestType];if(n){let s;if(n.assumedRoleArn){let u=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${u}-${r}`.substring(0,64)};s=new a.ChainableTemporaryCredentials({params:c,stsConfig:{stsRegionalEndpoints:"regional"}})}if(!Object.prototype.hasOwnProperty.call(a,n.service))throw Error(`Service ${n.service} does not exist in AWS SDK version ${a.VERSION}.`);let p=new a[n.service]({apiVersion:n.apiVersion,credentials:s,region:n.region});try{let u=await p[n.action](n.parameters&&w(n.parameters,r)).promise();i={apiVersion:p.config.apiVersion,region:p.config.region,...k(u)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=P(i,D(c)):o=i}catch(u){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(u.code))throw u}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var K,B,T,v,Re,q=d(()=>{"use strict";K=require("child_process"),B=E(require("fs")),T=require("path");M();v=!1;Re=[]});var G,j=d(()=>{"use strict";G={acm:{exportcertificate:["Passphrase"],importcertificate:["Certificate","CertificateChain","PrivateKey"]},"acm-pca":{importcertificateauthoritycertificate:["Certificate","CertificateChain"],issuecertificate:["Csr"]},apigateway:{importapikeys:["body"],importdocumentationparts:["body"],importrestapi:["body"],putrestapi:["body"],posttoconnection:["Data"]},appconfig:{createhostedconfigurationversion:["Content"]},appsync:{startschemacreation:["definition"]},awsmobilehubservice:{createproject:["contents"],updateproject:["contents"]},"backup-storage":{notifyobjectcomplete:["MetadataBlob"],putchunk:["Data"],putobject:["InlineChunk"]},cloudfront:{createfunction:["FunctionCode"],testfunction:["EventObject"],updatefunction:["FunctionCode"]},cloudsearch:{uploaddocuments:["documents"]},codeartifact:{publishpackageversion:["assetContent"]},codecommit:{createcommit:["putFiles.*.fileContent"],createunreferencedmergecommit:["conflictResolution.replaceContents.*.content"],mergebranchesbysquash:["conflictResolution.replaceContents.*.content"],mergebranchesbythreeway:["conflictResolution.replaceContents.*.content"],mergepullrequestbysquash:["conflictResolution.replaceContents.*.content"],mergepullrequestbythreeway:["conflictResolution.replaceContents.*.content"],putfile:["fileContent"]},"cognito-idp":{setuicustomization:["ImageFile"]},comprehend:{classifydocument:["Bytes"],detectentities:["Bytes"]},datasync:{createlocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],createlocationobjectstorage:["ServerCertificate"],updatelocationhdfs:["KerberosKeytab","KerberosKrb5Conf"],updatelocationobjectstorage:["ServerCertificate"]},dms:{importcertificate:["CertificateWallet"]},ebs:{putsnapshotblock:["BlockData"]},ec2:{bundleinstance:["Storage.S3.UploadPolicy"],importkeypair:["PublicKeyMaterial"],modifyinstanceattribute:["UserData.Value"]},ecr:{uploadlayerpart:["layerPartBlob"]},"ecr-public":{createrepository:["catalogData.logoImageBlob"],putrepositorycatalogdata:["catalogData.logoImageBlob"],uploadlayerpart:["layerPartBlob"]},firehose:{putrecord:["Record.Data"],putrecordbatch:["Records.*.Data"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue"]},greengrass:{createcomponentversion:["inlineRecipe"]},iot:{createotaupdate:["files.*.codeSigning.customCodeSigning.signature.inlineDocument"],testinvokeauthorizer:["mqttContext.password"]},iotanalytics:{batchputmessage:["messages.*.payload"],runpipelineactivity:["payloads.*"]},iotdata:{publish:["payload"],updatethingshadow:["payload"]},ioteventsdata:{batchputmessage:["messages.*.payload"]},iotsitewise:{createportal:["portalLogoImageFile.data"],updateportal:["portalLogoImage.file.data"]},iotwireless:{updateresourceposition:["GeoJsonPayload"]},kafka:{createconfiguration:["ServerProperties"],updateconfiguration:["ServerProperties"]},kendra:{batchputdocument:["Documents.*.Blob"]},kinesis:{putrecord:["Data"],putrecords:["Records.*.Data"]},kinesisanalytics:{createapplication:["ApplicationConfiguration.ApplicationCodeConfiguration.CodeContent.ZipFileContent"],updateapplication:["ApplicationConfigurationUpdate.ApplicationCodeConfigurationUpdate.CodeContentUpdate.ZipFileContentUpdate"]},kms:{decrypt:["CiphertextBlob","Recipient.AttestationDocument"],encrypt:["Plaintext"],generatedatakey:["Recipient.AttestationDocument"],generatedatakeypair:["Recipient.AttestationDocument"],generatemac:["Message"],generaterandom:["Recipient.AttestationDocument"],importkeymaterial:["EncryptedKeyMaterial"],reencrypt:["CiphertextBlob"],sign:["Message"],verify:["Message","Signature"],verifymac:["Mac","Message"]},lambda:{createfunction:["Code.ZipFile"],invoke:["Payload"],invokeasync:["InvokeArgs"],invokewithresponsestream:["Payload"],publishlayerversion:["Content.ZipFile"],updatefunctioncode:["ZipFile"]},lex:{startimport:["payload"],postcontent:["inputStream"],recognizeutterance:["inputStream"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},rekognition:{comparefaces:["SourceImage.Bytes"],detectcustomlabels:["Image.Bytes"],detectfaces:["Image.Bytes"],detectlabels:["Image.Bytes"],detectmoderationlabels:["Image.Bytes"],detectprotectiveequipment:["Image.Bytes"],detecttext:["Image.Bytes"],indexfaces:["Image.Bytes"],recognizecelebrities:["Image.Bytes"],searchfacesbyimage:["Image.Bytes"],searchusersbyimage:["Image.Bytes"],updatedatasetentries:["Changes.GroundTruth"]},s3:{putobject:["Body"],uploadpart:["Body"],writegetobjectresponse:["Body"]},sagemaker:{invokeendpoint:["Body"],invokeendpointwithresponsestream:["Body"]},secretsmanager:{createsecret:["SecretBinary"],putsecretvalue:["SecretBinary"],updatesecret:["SecretBinary"]},ses:{createdeliverabilitytestreport:["Content.Raw.Data","Content.Raw.Data"],sendemail:["Content.Raw.Data","Content.Raw.Data"],sendrawemail:["RawMessage.Data"]},signer:{signpayload:["payload"]},ssm:{registertaskwithmaintenancewindow:["TaskInvocationParameters.Lambda.Payload"],updatemaintenancewindowtask:["TaskInvocationParameters.Lambda.Payload"]},support:{addattachmentstoset:["attachments.*.data"]},synthetics:{createcanary:["Code.ZipFile"],updatecanary:["Code.ZipFile"]},textract:{analyzedocument:["Document.Bytes"],analyzeexpense:["Document.Bytes"],analyzeid:["DocumentPages.*.Bytes"],detectdocumenttext:["Document.Bytes"]},translate:{importterminology:["TerminologyData.File"],translatedocument:["Document.Content"]},waf:{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},"waf-regional":{updatebytematchset:["Updates.*.ByteMatchTuple.TargetString"]},wafv2:{checkcapacity:["Rules.*.Statement.ByteMatchStatement.SearchString"],createrulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],createwebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"],updaterulegroup:["Rules.*.Statement.ByteMatchStatement.SearchString"],updatewebacl:["Rules.*.Statement.ByteMatchStatement.SearchString"]},workspaces:{importclientbranding:["DeviceTypeAndroid.Logo","DeviceTypeIos.Logo","DeviceTypeIos.Logo2x","DeviceTypeIos.Logo3x"]}}});var $={};y($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>I});function ke(e,t,a={}){let r=G?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)I(a,i.split("."));return a}function I(e,t){return t.length===0?we(e):t[0]==="*"&&Array.isArray(e)?e.map(a=>I(a,t.slice(1))):(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=I(e[t[0]],t.slice(1))),e)}function we(e){return e instanceof Uint8Array?e:typeof e=="string"||typeof e=="number"?new TextEncoder().encode(e.toString()):e}var H=d(()=>{"use strict";j()});var z={};y(z,{findV3ClientConstructor:()=>O});function O(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Z,Q=d(()=>{"use strict";Z=["ACM","ACMPCA","APIGateway","ARCZonalShift","AccessAnalyzer","Account","AlexaForBusiness","Amp","Amplify","AmplifyBackend","AmplifyUIBuilder","ApiGatewayManagementApi","ApiGatewayV2","AppConfig","AppConfigData","AppIntegrations","AppMesh","AppRunner","AppStream","AppSync","Appflow","ApplicationAutoScaling","ApplicationCostProfiler","ApplicationInsights","Athena","AuditManager","AugmentedAIRuntime","AutoScaling","AutoScalingPlans","Backup","BackupGateway","BackupStorage","Batch","Billingconductor","Braket","Budgets","CUR","Chime","ChimeSDKIdentity","ChimeSDKMediaPipelines","ChimeSDKMeetings","ChimeSDKMessaging","ChimeSDKVoice","Cloud9","CloudControl","CloudDirectory","CloudFormation","CloudFront","CloudHSM","CloudHSMV2","CloudSearch","CloudSearchDomain","CloudTrail","CloudWatch","CloudWatchEvents","CloudWatchLogs","CodeArtifact","CodeBuild","CodeCatalyst","CodeCommit","CodeDeploy","CodeGuruProfiler","CodeGuruReviewer","CodePipeline","CodeStar","CodeStarNotifications","CodeStarconnections","CognitoIdentity","CognitoIdentityServiceProvider","CognitoSync","Comprehend","ComprehendMedical","ComputeOptimizer","ConfigService","Connect","ConnectCampaigns","ConnectCases","ConnectContactLens","ConnectParticipant","ControlTower","CostExplorer","CustomerProfiles","DAX","DLM","DMS","DataBrew","DataExchange","DataPipeline","DataSync","Detective","DevOpsGuru","DeviceFarm","DirectConnect","DirectoryService","Discovery","DocDB","DocDBElastic","Drs","DynamoDB","DynamoDBStreams","EBS","EC2","EC2InstanceConnect","ECR","ECRPUBLIC","ECS","EFS","EKS","ELB","ELBv2","EMR","EMRServerless","EMRcontainers","ES","ElastiCache","ElasticBeanstalk","ElasticInference","ElasticTranscoder","EventBridge","Evidently","FMS","FSx","Finspace","Finspacedata","Firehose","Fis","ForecastQueryService","ForecastService","FraudDetector","GameLift","GameSparks","Glacier","GlobalAccelerator","Glue","Grafana","Greengrass","GreengrassV2","GroundStation","GuardDuty","Health","HealthLake","Honeycode","IAM","IVS","IdentityStore","Imagebuilder","Inspector","Inspector2","IoT1ClickDevicesService","IoT1ClickProjects","IoTAnalytics","IoTEvents","IoTEventsData","IoTFleetHub","IoTFleetWise","IoTJobsDataPlane","IoTRoboRunner","IoTSecureTunneling","IoTSiteWise","IoTThingsGraph","IoTTwinMaker","IoTWireless","Iot","IotData","IotDeviceAdvisor","Ivschat","KMS","Kafka","KafkaConnect","Kendra","Keyspaces","Kinesis","KinesisAnalytics","KinesisAnalyticsV2","KinesisVideo","KinesisVideoArchivedMedia","KinesisVideoMedia","KinesisVideoSignalingChannels","KinesisVideoWebRTCStorage","LakeFormation","Lambda","LexModelBuildingService","LexModelsV2","LexRuntime","LexRuntimeV2","LicenseManager","LicenseManagerLinuxSubscriptions","LicenseManagerUserSubscriptions","Lightsail","Location","LookoutEquipment","LookoutMetrics","LookoutVision","M2","MQ","MTurk","MWAA","MachineLearning","Macie","Macie2","ManagedBlockchain","MarketplaceCatalog","MarketplaceCommerceAnalytics","MarketplaceEntitlementService","MarketplaceMetering","MediaConnect","MediaConvert","MediaLive","MediaPackage","MediaPackageVod","MediaStore","MediaStoreData","MediaTailor","MemoryDB","Mgn","MigrationHub","MigrationHubConfig","MigrationHubOrchestrator","MigrationHubRefactorSpaces","MigrationHubStrategy","Mobile","Neptune","NetworkFirewall","NetworkManager","Nimble","OAM","Omics","OpenSearch","OpenSearchServerless","OpsWorks","OpsWorksCM","Organizations","Outposts","PI","Panorama","Personalize","PersonalizeEvents","PersonalizeRuntime","Pinpoint","PinpointEmail","PinpointSMSVoice","PinpointSMSVoiceV2","Pipes","Polly","Pricing","PrivateNetworks","Proton","QLDB","QLDBSession","QuickSight","RAM","RDS","RDSDataService","RUM","Rbin","Redshift","RedshiftData","RedshiftServerless","Rekognition","Resiliencehub","ResourceExplorer2","ResourceGroups","ResourceGroupsTaggingAPI","RoboMaker","RolesAnywhere","Route53","Route53Domains","Route53RecoveryCluster","Route53RecoveryControlConfig","Route53RecoveryReadiness","Route53Resolver","S3","S3Control","S3Outposts","SES","SESV2","SMS","SNS","SQS","SSM","SSMContacts","SSMIncidents","SSO","SSOAdmin","SSOOIDC","STS","SWF","SageMaker","SageMakerFeatureStoreRuntime","SageMakerGeospatial","SageMakerMetrics","SageMakerRuntime","SagemakerEdge","SavingsPlans","Scheduler","Schemas","SecretsManager","SecurityHub","SecurityLake","ServerlessApplicationRepository","ServiceCatalog","ServiceCatalogAppRegistry","ServiceDiscovery","ServiceQuotas","Shield","Signer","SimSpaceWeaver","SnowDeviceManagement","Snowball","SsmSap","StepFunctions","StorageGateway","Support","SupportApp","Synthetics","Textract","TimestreamQuery","TimestreamWrite","TranscribeService","Transfer","Translate","VoiceID","WAF","WAFRegional","WAFV2","WellArchitected","Wisdom","WorkDocs","WorkLink","WorkMail","WorkMailMessageFlow","WorkSpaces","WorkSpacesWeb","XRay"]});var F,J=d(()=>{"use strict";Q();F={...Z.reduce((e,t)=>({...e,[t]:`client-${t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`.replace("-chime-sdk","-chime-sdk-").replace("client-amplify-","client-amplify").replace("client-cloud-","client-cloud").replace("client-code-","client-code").replace("client-connect-","client-connect").replace("client-data-","client-data").replace("client-io-t","client-iot-").replace("client-iot-fleet-","client-iotfleet").replace("client-lookout-","client-lookout").replace("client-media-","client-media").replace("client-migration-hub-","client-migrationhub").replace("client-pinpoint-sms","client-pinpoint-sms-").replace("client-route53","client-route53-").replace("client-sage-maker","client-sagemaker").replace("client-security-","client-security").replace("client-work-","client-work")}),{}),AccessAnalyzer:"client-accessanalyzer",ACMPCA:"client-acm-pca",APIGateway:"client-api-gateway",ApiGatewayManagementApi:"client-apigatewaymanagementapi",ApiGatewayV2:"client-apigatewayv2",AppConfig:"client-appconfig",AppConfigData:"client-appconfigdata",AppIntegrations:"client-appintegrations",AppRunner:"client-apprunner",AppStream:"client-appstream",AppSync:"client-appsync",ApplicationCostProfiler:"client-applicationcostprofiler",ARCZonalShift:"client-arc-zonal-shift",AugmentedAIRuntime:"client-sage-maker-a2iruntime",AuditManager:"client-auditmanager",BackupStorage:"client-backupstorage",CUR:"client-cost-and-usage-report-service",CloudHSMV2:"client-cloudhsm-v2",CodeGuruProfiler:"client-codeguruprofiler",CodeStarconnections:"client-codestar-connections",CognitoIdentityServiceProvider:"client-cognito-identity-provider",ComprehendMedical:"client-comprehendmedical",ConnectContactLens:"client-connect-contact-lens",ControlTower:"client-controltower",DMS:"client-database-migration-service",DataPipeline:"client-data-pipeline",Discovery:"client-application-discovery-service",DevOpsGuru:"client-devops-guru",DynamoDB:"client-dynamodb",DynamoDBStreams:"client-dynamodb-streams",DocDB:"client-docdb",DocDBElastic:"client-docdb-elastic",EC2InstanceConnect:"client-ec2-instance-connect",ECRPUBLIC:"client-ecr-public",ELB:"client-elastic-load-balancing",ELBv2:"client-elastic-load-balancing-v2",ElastiCache:"client-elasticache",EMRcontainers:"client-emr-containers",EMRServerless:"client-emr-serverless",ES:"client-elasticsearch-service",EventBridge:"client-eventbridge",Finspacedata:"client-finspace-data",ForecastQueryService:"client-forecastquery",ForecastService:"client-forecast",FraudDetector:"client-frauddetector",GameLift:"client-gamelift",GameSparks:"client-gamesparks",GreengrassV2:"client-greengrassv2",GroundStation:"client-groundstation",GuardDuty:"client-guardduty",HealthLake:"client-healthlake",IdentityStore:"client-identitystore",IoTAnalytics:"client-iotanalytics",IotData:"client-iot-data-plane",IotDeviceAdvisor:"client-iotdeviceadvisor",IoTSecureTunneling:"client-iotsecuretunneling",IoTSiteWise:"client-iotsitewise",IoTThingsGraph:"client-iotthingsgraph",IoTTwinMaker:"client-iottwinmaker",IoTRoboRunner:"client-iot-roborunner",KafkaConnect:"client-kafkaconnect",KinesisVideoSignalingChannels:"client-kinesis-video-signaling",KinesisVideoWebRTCStorage:"client-kinesis-video-webrtc-storage",LakeFormation:"client-lakeformation",LexRuntime:"client-lex-runtime-service",ManagedBlockchain:"client-managedblockchain",MigrationHubConfig:"client-migrationhub-config",MigrationHubRefactorSpaces:"client-migration-hub-refactor-spaces",NetworkManager:"client-networkmanager",OpenSearch:"client-opensearch",OpenSearchServerless:"client-opensearchserverless",OpsWorks:"client-opsworks",OpsWorksCM:"client-opsworkscm",PrivateNetworks:"client-privatenetworks",QLDBSession:"client-qldb-session",QuickSight:"client-quicksight",ResourceExplorer2:"client-resource-explorer-2",RDSDataService:"client-rds-data",RoboMaker:"client-robomaker",RolesAnywhere:"client-rolesanywhere",Route53:"client-route-53",Route53Domains:"client-route-53-domains",Route53Resolver:"client-route53resolver",S3Control:"client-s3-control",SageMakerFeatureStoreRuntime:"client-sagemaker-featurestore-runtime",SavingsPlans:"client-savingsplans",SecurityHub:"client-securityhub",ServerlessApplicationRepository:"client-serverlessapplicationrepository",ServiceCatalogAppRegistry:"client-service-catalog-appregistry",ServiceDiscovery:"client-servicediscovery",SimSpaceWeaver:"client-simspaceweaver",SSMContacts:"client-ssm-contacts",SSMIncidents:"client-ssm-incidents",SSOAdmin:"client-sso-admin",SSOOIDC:"client-sso-oidc",StepFunctions:"client-sfn",TranscribeService:"client-transcribe",WAFRegional:"client-waf-regional",WellArchitected:"client-wellarchitected",WorkMailMessageFlow:"client-workmailmessageflow"}});var Y={};y(Y,{getV3ClientPackageName:()=>V});var V,W=d(()=>{"use strict";J();V=e=>{if(e in F)return`@aws-sdk/${F[e]}`;throw new Error(`Client '${e}' is either deprecated or newly added. Please consider using the v3 package format (@aws-sdk/client-xxx).`)}});var X={};y(X,{getV3Client:()=>De,getV3Command:()=>Me,loadV3ClientPackage:()=>Pe});function Pe(e){let t=e.startsWith("@aws-sdk/")?e:V(e);try{let a=require(t),{version:r}=require(t+"/package.json");return{service:t.replace("@aws-sdk/client-",""),pkg:a,packageName:t,packageVersion:r}}catch{throw Error(`Service ${e} client package with name '${t}' does not exist.`)}}function De(e,t={}){try{let a=O(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Me(e,t){let a=t.endsWith("Command")?t:`${t}Command`,r=Object.entries(e.pkg).find(([i])=>i.toLowerCase()===a.toLowerCase())?.[1];if(!r)throw new Error(`Unable to find command named: ${a} for api: ${t} in service package`);return r}var ee=d(()=>{"use strict";x();W()});var te=Se(l=>{"use strict";var ve=l&&l.__createBinding||(Object.create?function(e,t,a,r){r===void 0&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]}),Ie=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&ve(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Ee=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Ee.coerceApiParametersToUint8Array}});var Le=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Le.findV3ClientConstructor}});var Be=(W(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return Be.getV3ClientPackageName}});Ie((ee(),f(X)),l)});var ie={};y(ie,{forceSdkInstallation:()=>Te,handler:()=>Fe});function Te(){R={}}function Oe(e){console.log(`Installing latest AWS SDK v3: ${e}`),(0,ae.execSync)(`NPM_CONFIG_UPDATE_NOTIFIER=false HOME=/tmp npm install ${e} --omit=dev --no-package-lock --no-save --prefix /tmp`),R={...R,[e]:!0}}async function xe(e,t){let a;try{if(!R[e]&&t==="true")try{Oe(e),a=require(`/tmp/node_modules/${e}`)}catch(r){return console.log(`Failed to install latest AWS SDK v3. Falling back to pre-installed version. Error: ${r}`),require(e)}else R[e]?a=require(`/tmp/node_modules/${e}`):a=require(e)}catch{throw Error(`Package ${e} does not exist.`)}return a}async function Fe(e,t){try{e.ResourceProperties.Create=S(e.ResourceProperties.Create),e.ResourceProperties.Update=S(e.ResourceProperties.Update),e.ResourceProperties.Delete=S(e.ResourceProperties.Delete);let a={},r;switch(e.RequestType){case"Create":r=e.ResourceProperties.Create?.physicalResourceId?.id??e.ResourceProperties.Update?.physicalResourceId?.id??e.ResourceProperties.Delete?.physicalResourceId?.id??e.LogicalResourceId;break;case"Update":case"Delete":r=e.ResourceProperties[e.RequestType]?.physicalResourceId?.id??e.PhysicalResourceId;break}let i=e.ResourceProperties[e.RequestType];if(i){let o=i.service.startsWith("@aws-sdk/")?i.service:(0,h.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let p;if(i.assumedRoleArn){let m=new Date().getTime(),g={RoleArn:i.assumedRoleArn,RoleSessionName:`${m}-${r}`.substring(0,64)},{fromTemporaryCredentials:le}=await import("@aws-sdk/credential-providers");p=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let u=(0,h.findV3ClientConstructor)(s),c=new u({apiVersion:i.apiVersion,credentials:p,region:i.region}),_=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=_.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===_.toLowerCase())?.[1],A={};try{let m=await c.send(new ce(i.parameters?(0,h.coerceApiParametersToUint8Array)(n,se,w(i.parameters,r)):{}));A={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...k(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=P(A,D(g)):a=A}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=A[i.physicalResourceId.responsePath])}await C(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await C(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,h,R,re=d(()=>{"use strict";ae=require("child_process"),h=E(te());M();R={}});var We={};y(We,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>L,handler:()=>Ve,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(We);M();function ne(e,t){return(q(),f(N)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Ve(e,t){let a=process.env.AWS_EXECUTION_ENV;return a&&a>="AWS_Lambda_nodejs18.x"?oe(e,t):ne(e,t)}0&&(module.exports={PHYSICAL_RESOURCE_ID_REFERENCE,handler,v2handler,v3handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/aws-cdk-sdk-js-v3.assets.json b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/aws-cdk-sdk-js-v3.assets.json index 6e53780b43875..810f1145586e4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/aws-cdk-sdk-js-v3.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/aws-cdk-sdk-js-v3.assets.json @@ -1,20 +1,20 @@ { "version": "34.0.0", "files": { - "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038": { + "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { "source": { - "path": "asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038", + "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip", + "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "66d4a9eb1a1bc0a82f792fbb603e07548c5426cef4fc951c5dd23737ed4f2e2b": { + "01f6c1e0f2202f1ab196c0dcf18b0e2688bcefc5e64ad2c01e8b67c4b28d6bfe": { "source": { "path": "aws-cdk-sdk-js-v3.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "66d4a9eb1a1bc0a82f792fbb603e07548c5426cef4fc951c5dd23737ed4f2e2b.json", + "objectKey": "01f6c1e0f2202f1ab196c0dcf18b0e2688bcefc5e64ad2c01e8b67c4b28d6bfe.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/aws-cdk-sdk-js-v3.template.json b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/aws-cdk-sdk-js-v3.template.json index 7dba105ff0640..e05ab529648a5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/aws-cdk-sdk-js-v3.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/aws-cdk-sdk-js-v3.template.json @@ -111,7 +111,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "S3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "Handler": "index.handler", "Role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/aws-cdk-sdk-js.assets.json b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/aws-cdk-sdk-js.assets.json index 2ece7637c798c..b543caaab9b40 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/aws-cdk-sdk-js.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/aws-cdk-sdk-js.assets.json @@ -1,20 +1,20 @@ { "version": "34.0.0", "files": { - "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038": { + "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { "source": { - "path": "asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038", + "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip", + "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "66d4a9eb1a1bc0a82f792fbb603e07548c5426cef4fc951c5dd23737ed4f2e2b": { + "01f6c1e0f2202f1ab196c0dcf18b0e2688bcefc5e64ad2c01e8b67c4b28d6bfe": { "source": { "path": "aws-cdk-sdk-js.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "66d4a9eb1a1bc0a82f792fbb603e07548c5426cef4fc951c5dd23737ed4f2e2b.json", + "objectKey": "01f6c1e0f2202f1ab196c0dcf18b0e2688bcefc5e64ad2c01e8b67c4b28d6bfe.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/aws-cdk-sdk-js.template.json b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/aws-cdk-sdk-js.template.json index 7dba105ff0640..e05ab529648a5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/aws-cdk-sdk-js.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/aws-cdk-sdk-js.template.json @@ -111,7 +111,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "S3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "Handler": "index.handler", "Role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/manifest.json index 89ae9c5a30eb7..f8dce20e13986 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/manifest.json @@ -17,7 +17,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/66d4a9eb1a1bc0a82f792fbb603e07548c5426cef4fc951c5dd23737ed4f2e2b.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/01f6c1e0f2202f1ab196c0dcf18b0e2688bcefc5e64ad2c01e8b67c4b28d6bfe.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -178,7 +178,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/66d4a9eb1a1bc0a82f792fbb603e07548c5426cef4fc951c5dd23737ed4f2e2b.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/01f6c1e0f2202f1ab196c0dcf18b0e2688bcefc5e64ad2c01e8b67c4b28d6bfe.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/tree.json index a6cff2b9bddd4..b87bb178d62c7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/tree.json @@ -202,7 +202,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "s3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "handler": "index.handler", "role": { @@ -846,7 +846,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "s3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "handler": "index.handler", "role": { diff --git a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary-auto-delete-lambda.js.snapshot/cdk-synthetics-canary-auto-delete.assets.json b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary-auto-delete-lambda.js.snapshot/cdk-synthetics-canary-auto-delete.assets.json index f428d3779f510..1558bf6d5847f 100644 --- a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary-auto-delete-lambda.js.snapshot/cdk-synthetics-canary-auto-delete.assets.json +++ b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary-auto-delete-lambda.js.snapshot/cdk-synthetics-canary-auto-delete.assets.json @@ -14,20 +14,20 @@ } } }, - "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038": { + "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { "source": { - "path": "asset.51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038", + "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip", + "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "390cc486e7edf4ce57097673672fa972bcc5d2f92dfb2e1508a3729b0036a2c6": { + "3c6e88baee690b993945de9375496551c64d56151df990a74acdb5c20c8ad662": { "source": { "path": "cdk-synthetics-canary-auto-delete.template.json", "packaging": "file" @@ -35,7 +35,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "390cc486e7edf4ce57097673672fa972bcc5d2f92dfb2e1508a3729b0036a2c6.json", + "objectKey": "3c6e88baee690b993945de9375496551c64d56151df990a74acdb5c20c8ad662.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary-auto-delete-lambda.js.snapshot/cdk-synthetics-canary-auto-delete.template.json b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary-auto-delete-lambda.js.snapshot/cdk-synthetics-canary-auto-delete.template.json index b7c264210bea0..76fa4dc084c69 100644 --- a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary-auto-delete-lambda.js.snapshot/cdk-synthetics-canary-auto-delete.template.json +++ b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary-auto-delete-lambda.js.snapshot/cdk-synthetics-canary-auto-delete.template.json @@ -625,7 +625,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "S3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "Handler": "index.handler", "Role": { diff --git a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary-auto-delete-lambda.js.snapshot/manifest.json b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary-auto-delete-lambda.js.snapshot/manifest.json index 549896b48085f..e6fe2ab7576dc 100644 --- a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary-auto-delete-lambda.js.snapshot/manifest.json +++ b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary-auto-delete-lambda.js.snapshot/manifest.json @@ -17,7 +17,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/390cc486e7edf4ce57097673672fa972bcc5d2f92dfb2e1508a3729b0036a2c6.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3c6e88baee690b993945de9375496551c64d56151df990a74acdb5c20c8ad662.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary-auto-delete-lambda.js.snapshot/tree.json b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary-auto-delete-lambda.js.snapshot/tree.json index 26badae3b9080..ae60bcc54f213 100644 --- a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary-auto-delete-lambda.js.snapshot/tree.json +++ b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary-auto-delete-lambda.js.snapshot/tree.json @@ -806,7 +806,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" + "s3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" }, "handler": "index.handler", "role": { diff --git a/packages/@aws-cdk/custom-resource-handlers/lib/custom-resources/aws-custom-resource-handler/aws-sdk-v3-handler.ts b/packages/@aws-cdk/custom-resource-handlers/lib/custom-resources/aws-custom-resource-handler/aws-sdk-v3-handler.ts index 6c4b8ec5c6d96..acda209064fff 100644 --- a/packages/@aws-cdk/custom-resource-handlers/lib/custom-resources/aws-custom-resource-handler/aws-sdk-v3-handler.ts +++ b/packages/@aws-cdk/custom-resource-handlers/lib/custom-resources/aws-custom-resource-handler/aws-sdk-v3-handler.ts @@ -2,7 +2,7 @@ /* eslint-disable no-console */ import { execSync } from 'child_process'; // eslint-disable-next-line import/no-extraneous-dependencies -import { findV3ClientConstructor, getV3ClientPackageName } from '@aws-cdk/sdk-v2-to-v3-adapter'; +import { coerceApiParametersToUint8Array, findV3ClientConstructor, getV3ClientPackageName } from '@aws-cdk/sdk-v2-to-v3-adapter'; // import the AWSLambda package explicitly, // which is globally available in the Lambda runtime, // as otherwise linking this repository with link-all.sh @@ -91,6 +91,8 @@ export async function handler(event: AWSLambda.CloudFormationCustomResourceEvent if (call) { // when provide v2 service name, transform it v3 package name. const packageName = call.service.startsWith('@aws-sdk/') ? call.service : getV3ClientPackageName(call.service); + const serviceShortName = packageName.split('/client-')[1]; // '@aws-sdk/client-s3' -> 's3' + let awsSdk: AwsSdk | Promise = loadAwsSdk( packageName, event.ResourceProperties.InstallLatestAwsSdk, @@ -123,6 +125,7 @@ export async function handler(event: AWSLambda.CloudFormationCustomResourceEvent region: call.region, }); const commandName = call.action.endsWith('Command') ? call.action : `${call.action}Command`; + const shortCommandName = commandName.replace(/Command$/, ''); // 'PutObjectCommand' -> 'PutObject' const Command = Object.entries(awsSdk).find( ([name]) => name.toLowerCase() === commandName.toLowerCase(), )?.[1] as { new (input: any): any }; @@ -131,9 +134,9 @@ export async function handler(event: AWSLambda.CloudFormationCustomResourceEvent try { // Command must pass input value https://github.com/aws/aws-sdk-js-v3/issues/424 const response = await client.send( - new Command( - (call.parameters && - decodeSpecialValues(call.parameters, physicalResourceId)) ?? {}, + new Command(call.parameters + ? coerceApiParametersToUint8Array(serviceShortName, shortCommandName, decodeSpecialValues(call.parameters, physicalResourceId)) + : {}, ), ); flatData = { diff --git a/packages/@aws-cdk/custom-resource-handlers/test/custom-resources/aws-custom-resource/aws-sdk-v3-handler.test.ts b/packages/@aws-cdk/custom-resource-handlers/test/custom-resources/aws-custom-resource/aws-sdk-v3-handler.test.ts index eeece14c6e94a..66099430c12e6 100644 --- a/packages/@aws-cdk/custom-resource-handlers/test/custom-resources/aws-custom-resource/aws-sdk-v3-handler.test.ts +++ b/packages/@aws-cdk/custom-resource-handlers/test/custom-resources/aws-custom-resource/aws-sdk-v3-handler.test.ts @@ -1,6 +1,7 @@ /* eslint-disable import/no-extraneous-dependencies */ process.env.AWS_REGION = 'us-east-1'; +import { EncryptCommand, KMSClient } from '@aws-sdk/client-kms'; import * as S3 from '@aws-sdk/client-s3'; import { mockClient } from 'aws-sdk-client-mock'; import * as fs from 'fs-extra'; @@ -8,6 +9,7 @@ import * as nock from 'nock'; import { v3handler as handler } from '../../../lib/custom-resources/aws-custom-resource-handler'; import { forceSdkInstallation } from '../../../lib/custom-resources/aws-custom-resource-handler/aws-sdk-v3-handler'; import { AwsSdkCall } from '../../../lib/custom-resources/aws-custom-resource-handler/construct-types'; +import 'aws-sdk-client-mock-jest' ; // This test performs an 'npm install' which may take longer than the default // 5s timeout @@ -709,3 +711,37 @@ test('invalid v2 service name throws explicit error', async () => { expect(request.isDone()).toBeTruthy(); }); + +test('automatic Uint8Array conversion when necessary', async () => { + const kmsMock = mockClient(KMSClient); + kmsMock.on(EncryptCommand).resolves({ + CiphertextBlob: new TextEncoder().encode('dummy-data'), + KeyId: 'key-id', + EncryptionAlgorithm: 'SYMMETRIC_DEFAULT', + }); + + await handler({ + ...eventCommon, + RequestType: 'Create', + ResourceProperties: { + ServiceToken: 'token', + Create: JSON.stringify({ + service: 'KMS', + action: 'encrypt', + parameters: { + KeyId: 'key-id', + Plaintext: 'dummy-data', + }, + } satisfies AwsSdkCall), + }, + }, {} as AWSLambda.Context); + + expect(kmsMock).toHaveReceivedCommandWith(EncryptCommand, { + KeyId: 'key-id', + Plaintext: new Uint8Array([ + 100, 117, 109, 109, + 121, 45, 100, 97, + 116, 97, + ]), + }); +}); \ No newline at end of file