diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js new file mode 100644 index 0000000000000..e24d6abb5e19b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js @@ -0,0 +1 @@ +"use strict";var ue=Object.create;var k=Object.defineProperty;var pe=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 ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S=(e,t)=>{for(var a in t)k(e,a,{get:t[a],enumerable:!0})},W=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&k(e,i,{get:()=>t[i],enumerable:!(r=pe(t,i))||r.enumerable});return e};var M=(e,t,a)=>(a=e!=null?ue(me(e)):{},W(t||!e||!e.__esModule?k(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>W(k({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?Se.decode(e.buffer):e}function B(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 V(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case P:return t;default:return r}})}function I(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function b(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,p)=>{try{let c=require("https").request(s,u);c.on("error",p),c.write(o),c.end()}catch(c){p(c)}})}function y(e){if(e)return JSON.parse(e)}function E(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var P,Se,D=d(()=>{"use strict";P="PHYSICAL:RESOURCEID:",Se=new TextDecoder});var _={};S(_,{forceSdkInstallation:()=>be,handler:()=>Re});function be(){v=!1}function Ce(){console.log("Installing latest AWS SDK v2"),(0,q.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function he(e){let t=e.apiLoader;return Ae.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(w.readFileSync((0,L.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(w.readFileSync((0,L.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{Ce(),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=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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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 p=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${p}-${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 p=await u[n.action](n.parameters&&V(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...B(p)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=I(i,E(c)):o=i}catch(p){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(p.code))throw p}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var q,w,L,v,Ae,N=d(()=>{"use strict";q=require("child_process"),w=M(require("fs")),L=require("path");D();v=!1;Ae=[]});var j,G=d(()=>{"use strict";j={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"]},clouddirectory:{addfacettoobject:["ObjectAttributeList.*.Value.BinaryValue"],attachtypedlink:["Attributes.*.Value.BinaryValue"],batchread:["Operations.*.GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.EndValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.StartValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue"],batchwrite:["Operations.*.AddFacetToObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.AttachTypedLink.Attributes.*.Value.BinaryValue","Operations.*.CreateObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.DetachTypedLink.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateLinkAttributes.AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","Operations.*.UpdateLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateObjectAttributes.AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],createfacet:["Attributes.*.AttributeDefinition.DefaultValue.BinaryValue"],createobject:["ObjectAttributeList.*.Value.BinaryValue"],createtypedlinkfacet:["Facet.Attributes.*.DefaultValue.BinaryValue"],detachtypedlink:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],getlinkattributes:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],listincomingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],listindex:["RangesOnIndexedValues.*.Range.EndValue.BinaryValue","RangesOnIndexedValues.*.Range.StartValue.BinaryValue"],listoutgoingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],updatefacet:["AttributeUpdates.*.Attribute.AttributeDefinition.DefaultValue.BinaryValue"],updatelinkattributes:["AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],updateobjectattributes:["AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],updatetypedlinkfacet:["AttributeUpdates.*.Attribute.DefaultValue.BinaryValue"]},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"]},dynamodb:{batchexecutestatement:["Statements.*.Parameters.*.B","Statements.*.Parameters.*.BS.*"],batchgetitem:["RequestItems.*.Keys.*.*.B","RequestItems.*.Keys.*.*.BS.*"],batchwriteitem:["RequestItems.*.*.DeleteRequest.Key.*.B","RequestItems.*.*.DeleteRequest.Key.*.BS.*","RequestItems.*.*.PutRequest.Item.*.B","RequestItems.*.*.PutRequest.Item.*.BS.*"],deleteitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"],executestatement:["Parameters.*.B","Parameters.*.BS.*"],executetransaction:["TransactStatements.*.Parameters.*.B","TransactStatements.*.Parameters.*.BS.*"],getitem:["Key.*.B","Key.*.BS.*"],putitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Item.*.B","Item.*.BS.*"],query:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","KeyConditions.*.AttributeValueList.*.B","KeyConditions.*.AttributeValueList.*.BS.*","QueryFilter.*.AttributeValueList.*.B","QueryFilter.*.AttributeValueList.*.BS.*"],scan:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","ScanFilter.*.AttributeValueList.*.B","ScanFilter.*.AttributeValueList.*.BS.*"],transactgetitems:["TransactItems.*.Get.Key.*.B","TransactItems.*.Get.Key.*.BS.*"],transactwriteitems:["TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.B","TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.BS.*","TransactItems.*.ConditionCheck.Key.*.B","TransactItems.*.ConditionCheck.Key.*.BS.*","TransactItems.*.Delete.ExpressionAttributeValues.*.B","TransactItems.*.Delete.ExpressionAttributeValues.*.BS.*","TransactItems.*.Delete.Key.*.B","TransactItems.*.Delete.Key.*.BS.*","TransactItems.*.Put.ExpressionAttributeValues.*.B","TransactItems.*.Put.ExpressionAttributeValues.*.BS.*","TransactItems.*.Put.Item.*.B","TransactItems.*.Put.Item.*.BS.*","TransactItems.*.Update.ExpressionAttributeValues.*.B","TransactItems.*.Update.ExpressionAttributeValues.*.BS.*","TransactItems.*.Update.Key.*.B","TransactItems.*.Update.Key.*.BS.*"],updateitem:["AttributeUpdates.*.Value.B","AttributeUpdates.*.Value.BS.*","Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"]},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"]},frauddetector:{geteventprediction:["externalModelEndpointDataBlobs.*.byteBuffer"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.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","ImportToken"],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"],startconversation:["requestEventStream.AudioInputEvent.audioChunk"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},"medical-imaging":{updateimagesetmetadata:["updateImageSetMetadataUpdates.DICOMUpdates.removableAttributes","updateImageSetMetadataUpdates.DICOMUpdates.updatableAttributes"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},"rds-data":{batchexecutestatement:["parameterSets.*.*.value.blobValue"],executestatement:["parameters.*.value.blobValue"]},rekognition:{comparefaces:["SourceImage.Bytes","TargetImage.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"],startfacelivenesssession:["LivenessRequestStream.VideoEvent.VideoChunk"]},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"]},sns:{publish:["MessageAttributes.*.BinaryValue"],publishbatch:["PublishBatchRequestEntries.*.MessageAttributes.*.BinaryValue"]},sqs:{sendmessage:["MessageAttributes.*.BinaryListValues.*","MessageAttributes.*.BinaryValue","MessageSystemAttributes.*.BinaryListValues.*","MessageSystemAttributes.*.BinaryValue"],sendmessagebatch:["Entries.*.MessageAttributes.*.BinaryListValues.*","Entries.*.MessageAttributes.*.BinaryValue","Entries.*.MessageSystemAttributes.*.BinaryListValues.*","Entries.*.MessageSystemAttributes.*.BinaryValue"]},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"]},transcribe:{startcallanalyticsstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startmedicalstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startstreamtranscription:["AudioStream.AudioEvent.AudioChunk"]},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","DeviceTypeLinux.Logo","DeviceTypeOsx.Logo","DeviceTypeWeb.Logo","DeviceTypeWindows.Logo"]}}});var $={};S($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>A});function ke(e,t,a={}){let r=j?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)A(a,i.split("."));return a}function A(e,t){return t.length===0?Be(e):t[0]==="*"?Array.isArray(e)?e.map(a=>A(a,t.slice(1))):e&&typeof e=="object"?Object.fromEntries(Object.entries(e).map(([a,r])=>[a,A(r,t.slice(1))])):e:(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=A(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 H=d(()=>{"use strict";G()});var z={};S(z,{findV3ClientConstructor:()=>T});function T(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Q,Z=d(()=>{"use strict";Q=["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 O,J=d(()=>{"use strict";Z();O={...Q.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={};S(Y,{getV3ClientPackageName:()=>F});var F,U=d(()=>{"use strict";J();F=e=>{if(e in O)return`@aws-sdk/${O[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={};S(X,{getV3Client:()=>Ie,getV3Command:()=>Ee,loadV3ClientPackage:()=>Ve});function Ve(e){let t=e.startsWith("@aws-sdk/")?e:F(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 Ie(e,t={}){try{let a=T(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Ee(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();U()});var te=ye(l=>{"use strict";var De=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]}),ve=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Me=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Me.coerceApiParametersToUint8Array}});var Pe=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Pe.findV3ClientConstructor}});var we=(U(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return we.getV3ClientPackageName}});ve((ee(),f(X)),l)});var ie={};S(ie,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Te(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`),h={...h,[e]:!0}}async function xe(e,t){let a;try{if(!h[e]&&t==="true")try{Te(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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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,C.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let u;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");u=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let p=(0,C.findV3ClientConstructor)(s),c=new p({apiVersion:i.apiVersion,credentials:u,region:i.region}),K=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=K.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===K.toLowerCase())?.[1],R={};try{let m=await c.send(new ce(i.parameters?(0,C.coerceApiParametersToUint8Array)(n,se,V(i.parameters,r)):{}));R={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...B(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=I(R,E(g)):a=R}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,C,h,re=d(()=>{"use strict";ae=require("child_process"),C=M(te());D();h={}});var Ue={};S(Ue,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>P,handler:()=>Fe,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(Ue);D();function ne(e,t){return(N(),f(_)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Fe(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/asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/asset.4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.bundle/index.js similarity index 99% rename from packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/asset.4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.bundle/index.js index 64c53ea7b530a..7168b5c96421a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle/index.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/asset.4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.bundle/index.js @@ -30945,6 +30945,72 @@ var init_parameter_types = __esm({ "InlineChunk" ] }, + "clouddirectory": { + "addfacettoobject": [ + "ObjectAttributeList.*.Value.BinaryValue" + ], + "attachtypedlink": [ + "Attributes.*.Value.BinaryValue" + ], + "batchread": [ + "Operations.*.GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue", + "Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue", + "Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue", + "Operations.*.ListIndex.RangesOnIndexedValues.*.Range.EndValue.BinaryValue", + "Operations.*.ListIndex.RangesOnIndexedValues.*.Range.StartValue.BinaryValue", + "Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue", + "Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue" + ], + "batchwrite": [ + "Operations.*.AddFacetToObject.ObjectAttributeList.*.Value.BinaryValue", + "Operations.*.AttachTypedLink.Attributes.*.Value.BinaryValue", + "Operations.*.CreateObject.ObjectAttributeList.*.Value.BinaryValue", + "Operations.*.DetachTypedLink.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue", + "Operations.*.UpdateLinkAttributes.AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue", + "Operations.*.UpdateLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue", + "Operations.*.UpdateObjectAttributes.AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue" + ], + "createfacet": [ + "Attributes.*.AttributeDefinition.DefaultValue.BinaryValue" + ], + "createobject": [ + "ObjectAttributeList.*.Value.BinaryValue" + ], + "createtypedlinkfacet": [ + "Facet.Attributes.*.DefaultValue.BinaryValue" + ], + "detachtypedlink": [ + "TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue" + ], + "getlinkattributes": [ + "TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue" + ], + "listincomingtypedlinks": [ + "FilterAttributeRanges.*.Range.EndValue.BinaryValue", + "FilterAttributeRanges.*.Range.StartValue.BinaryValue" + ], + "listindex": [ + "RangesOnIndexedValues.*.Range.EndValue.BinaryValue", + "RangesOnIndexedValues.*.Range.StartValue.BinaryValue" + ], + "listoutgoingtypedlinks": [ + "FilterAttributeRanges.*.Range.EndValue.BinaryValue", + "FilterAttributeRanges.*.Range.StartValue.BinaryValue" + ], + "updatefacet": [ + "AttributeUpdates.*.Attribute.AttributeDefinition.DefaultValue.BinaryValue" + ], + "updatelinkattributes": [ + "AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue", + "TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue" + ], + "updateobjectattributes": [ + "AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue" + ], + "updatetypedlinkfacet": [ + "AttributeUpdates.*.Attribute.DefaultValue.BinaryValue" + ] + }, "cloudfront": { "createfunction": [ "FunctionCode" @@ -31023,6 +31089,106 @@ var init_parameter_types = __esm({ "CertificateWallet" ] }, + "dynamodb": { + "batchexecutestatement": [ + "Statements.*.Parameters.*.B", + "Statements.*.Parameters.*.BS.*" + ], + "batchgetitem": [ + "RequestItems.*.Keys.*.*.B", + "RequestItems.*.Keys.*.*.BS.*" + ], + "batchwriteitem": [ + "RequestItems.*.*.DeleteRequest.Key.*.B", + "RequestItems.*.*.DeleteRequest.Key.*.BS.*", + "RequestItems.*.*.PutRequest.Item.*.B", + "RequestItems.*.*.PutRequest.Item.*.BS.*" + ], + "deleteitem": [ + "Expected.*.AttributeValueList.*.B", + "Expected.*.AttributeValueList.*.BS.*", + "Expected.*.Value.B", + "Expected.*.Value.BS.*", + "ExpressionAttributeValues.*.B", + "ExpressionAttributeValues.*.BS.*", + "Key.*.B", + "Key.*.BS.*" + ], + "executestatement": [ + "Parameters.*.B", + "Parameters.*.BS.*" + ], + "executetransaction": [ + "TransactStatements.*.Parameters.*.B", + "TransactStatements.*.Parameters.*.BS.*" + ], + "getitem": [ + "Key.*.B", + "Key.*.BS.*" + ], + "putitem": [ + "Expected.*.AttributeValueList.*.B", + "Expected.*.AttributeValueList.*.BS.*", + "Expected.*.Value.B", + "Expected.*.Value.BS.*", + "ExpressionAttributeValues.*.B", + "ExpressionAttributeValues.*.BS.*", + "Item.*.B", + "Item.*.BS.*" + ], + "query": [ + "ExclusiveStartKey.*.B", + "ExclusiveStartKey.*.BS.*", + "ExpressionAttributeValues.*.B", + "ExpressionAttributeValues.*.BS.*", + "KeyConditions.*.AttributeValueList.*.B", + "KeyConditions.*.AttributeValueList.*.BS.*", + "QueryFilter.*.AttributeValueList.*.B", + "QueryFilter.*.AttributeValueList.*.BS.*" + ], + "scan": [ + "ExclusiveStartKey.*.B", + "ExclusiveStartKey.*.BS.*", + "ExpressionAttributeValues.*.B", + "ExpressionAttributeValues.*.BS.*", + "ScanFilter.*.AttributeValueList.*.B", + "ScanFilter.*.AttributeValueList.*.BS.*" + ], + "transactgetitems": [ + "TransactItems.*.Get.Key.*.B", + "TransactItems.*.Get.Key.*.BS.*" + ], + "transactwriteitems": [ + "TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.B", + "TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.BS.*", + "TransactItems.*.ConditionCheck.Key.*.B", + "TransactItems.*.ConditionCheck.Key.*.BS.*", + "TransactItems.*.Delete.ExpressionAttributeValues.*.B", + "TransactItems.*.Delete.ExpressionAttributeValues.*.BS.*", + "TransactItems.*.Delete.Key.*.B", + "TransactItems.*.Delete.Key.*.BS.*", + "TransactItems.*.Put.ExpressionAttributeValues.*.B", + "TransactItems.*.Put.ExpressionAttributeValues.*.BS.*", + "TransactItems.*.Put.Item.*.B", + "TransactItems.*.Put.Item.*.BS.*", + "TransactItems.*.Update.ExpressionAttributeValues.*.B", + "TransactItems.*.Update.ExpressionAttributeValues.*.BS.*", + "TransactItems.*.Update.Key.*.B", + "TransactItems.*.Update.Key.*.BS.*" + ], + "updateitem": [ + "AttributeUpdates.*.Value.B", + "AttributeUpdates.*.Value.BS.*", + "Expected.*.AttributeValueList.*.B", + "Expected.*.AttributeValueList.*.BS.*", + "Expected.*.Value.B", + "Expected.*.Value.BS.*", + "ExpressionAttributeValues.*.B", + "ExpressionAttributeValues.*.BS.*", + "Key.*.B", + "Key.*.BS.*" + ] + }, "ebs": { "putsnapshotblock": [ "BlockData" @@ -31063,6 +31229,11 @@ var init_parameter_types = __esm({ "Records.*.Data" ] }, + "frauddetector": { + "geteventprediction": [ + "externalModelEndpointDataBlobs.*.byteBuffer" + ] + }, "gamelift": { "createscript": [ "ZipFile" @@ -31086,10 +31257,12 @@ var init_parameter_types = __esm({ }, "glue": { "updatecolumnstatisticsforpartition": [ - "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue" + "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue", + "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue" ], "updatecolumnstatisticsfortable": [ - "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue" + "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue", + "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue" ] }, "greengrass": { @@ -31189,7 +31362,8 @@ var init_parameter_types = __esm({ "Recipient.AttestationDocument" ], "importkeymaterial": [ - "EncryptedKeyMaterial" + "EncryptedKeyMaterial", + "ImportToken" ], "reencrypt": [ "CiphertextBlob" @@ -31235,6 +31409,9 @@ var init_parameter_types = __esm({ ], "recognizeutterance": [ "inputStream" + ], + "startconversation": [ + "requestEventStream.AudioInputEvent.audioChunk" ] }, "lookoutvision": { @@ -31250,6 +31427,12 @@ var init_parameter_types = __esm({ "Body" ] }, + "medical-imaging": { + "updateimagesetmetadata": [ + "updateImageSetMetadataUpdates.DICOMUpdates.removableAttributes", + "updateImageSetMetadataUpdates.DICOMUpdates.updatableAttributes" + ] + }, "mobiletargeting": { "sendmessages": [ "MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data" @@ -31269,9 +31452,18 @@ var init_parameter_types = __esm({ "AssetBundleImportSource.Body" ] }, + "rds-data": { + "batchexecutestatement": [ + "parameterSets.*.*.value.blobValue" + ], + "executestatement": [ + "parameters.*.value.blobValue" + ] + }, "rekognition": { "comparefaces": [ - "SourceImage.Bytes" + "SourceImage.Bytes", + "TargetImage.Bytes" ], "detectcustomlabels": [ "Image.Bytes" @@ -31305,6 +31497,9 @@ var init_parameter_types = __esm({ ], "updatedatasetentries": [ "Changes.GroundTruth" + ], + "startfacelivenesssession": [ + "LivenessRequestStream.VideoEvent.VideoChunk" ] }, "s3": { @@ -31355,6 +31550,28 @@ var init_parameter_types = __esm({ "payload" ] }, + "sns": { + "publish": [ + "MessageAttributes.*.BinaryValue" + ], + "publishbatch": [ + "PublishBatchRequestEntries.*.MessageAttributes.*.BinaryValue" + ] + }, + "sqs": { + "sendmessage": [ + "MessageAttributes.*.BinaryListValues.*", + "MessageAttributes.*.BinaryValue", + "MessageSystemAttributes.*.BinaryListValues.*", + "MessageSystemAttributes.*.BinaryValue" + ], + "sendmessagebatch": [ + "Entries.*.MessageAttributes.*.BinaryListValues.*", + "Entries.*.MessageAttributes.*.BinaryValue", + "Entries.*.MessageSystemAttributes.*.BinaryListValues.*", + "Entries.*.MessageSystemAttributes.*.BinaryValue" + ] + }, "ssm": { "registertaskwithmaintenancewindow": [ "TaskInvocationParameters.Lambda.Payload" @@ -31390,6 +31607,17 @@ var init_parameter_types = __esm({ "Document.Bytes" ] }, + "transcribe": { + "startcallanalyticsstreamtranscription": [ + "AudioStream.AudioEvent.AudioChunk" + ], + "startmedicalstreamtranscription": [ + "AudioStream.AudioEvent.AudioChunk" + ], + "startstreamtranscription": [ + "AudioStream.AudioEvent.AudioChunk" + ] + }, "translate": { "importterminology": [ "TerminologyData.File" @@ -31430,7 +31658,11 @@ var init_parameter_types = __esm({ "DeviceTypeAndroid.Logo", "DeviceTypeIos.Logo", "DeviceTypeIos.Logo2x", - "DeviceTypeIos.Logo3x" + "DeviceTypeIos.Logo3x", + "DeviceTypeLinux.Logo", + "DeviceTypeOsx.Logo", + "DeviceTypeWeb.Logo", + "DeviceTypeWindows.Logo" ] } }; @@ -31454,8 +31686,14 @@ function coerceToUint8Array(obj, path) { if (path.length === 0) { return coerceValueToUint8Array(obj); } - if (path[0] === "*" && Array.isArray(obj)) { - return obj.map((e) => coerceToUint8Array(e, path.slice(1))); + if (path[0] === "*") { + if (Array.isArray(obj)) { + return obj.map((e) => coerceToUint8Array(e, path.slice(1))); + } + if (obj && typeof obj === "object") { + return Object.fromEntries(Object.entries(obj).map(([key, value]) => [key, coerceToUint8Array(value, path.slice(1))])); + } + return obj; } if (obj && typeof obj === "object") { if (path[0] in obj) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js deleted file mode 100644 index c58c31d67d083..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js +++ /dev/null @@ -1 +0,0 @@ -"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 2bc30d8fd1845..959945339a238 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": { - "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { + "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff": { "source": { - "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", + "path": "asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", + "objectKey": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } @@ -27,7 +27,7 @@ } } }, - "138ef46e68c06b10d1d1954083ce1b05447a02cb1291c497797a82ec3d370019": { + "7dc51ef6fb06ebca692ba6e0b9e87a0de8695ceb5ad943c71586731ee9de45dd": { "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": "138ef46e68c06b10d1d1954083ce1b05447a02cb1291c497797a82ec3d370019.json", + "objectKey": "7dc51ef6fb06ebca692ba6e0b9e87a0de8695ceb5ad943c71586731ee9de45dd.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 42a9ea764674b..6a9c1bd70263c 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "S3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 1a439771cb0c1..942362206d66e 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 @@ -1,20 +1,20 @@ { "version": "34.0.0", "files": { - "607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a": { + "4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e": { "source": { - "path": "asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle", + "path": "asset.4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.bundle", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.zip", + "objectKey": "4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "504170b68c2138b2272e8dbf831c9ada39b375e8de4d4311494e65fa6a8c6aad": { + "8f9eab273e00b11484ebd9252b3e2923724868e7de8e8b50171168b00e295402": { "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": "504170b68c2138b2272e8dbf831c9ada39b375e8de4d4311494e65fa6a8c6aad.json", + "objectKey": "8f9eab273e00b11484ebd9252b3e2923724868e7de8e8b50171168b00e295402.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 a02adda552624..bd2b11cf69214 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": "1694180759409" + "salt": "1694346264317" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -127,7 +127,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.zip" + "S3Key": "4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.zip" }, "Timeout": 120, "Handler": "index.handler", 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 59f2a447f61d8..3c93f7b2b3732 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}/138ef46e68c06b10d1d1954083ce1b05447a02cb1291c497797a82ec3d370019.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/7dc51ef6fb06ebca692ba6e0b9e87a0de8695ceb5ad943c71586731ee9de45dd.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}/504170b68c2138b2272e8dbf831c9ada39b375e8de4d4311494e65fa6a8c6aad.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/8f9eab273e00b11484ebd9252b3e2923724868e7de8e8b50171168b00e295402.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 e2e9e011bd676..d99cbb99ca9f7 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "s3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 8435656910020..11de15ff3cedf 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 @@ } } }, - "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { + "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff": { "source": { - "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", + "path": "asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", + "objectKey": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } @@ -40,7 +40,7 @@ } } }, - "091fe950bd584de4a1808864a3e9e4ed96da0ec658ecc23ad243c71c846ca9ae": { + "abc9d0e8585f14c7a3533817c1b69cb1b383794449ff3a40ec45e5a9e6732afb": { "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": "091fe950bd584de4a1808864a3e9e4ed96da0ec658ecc23ad243c71c846ca9ae.json", + "objectKey": "abc9d0e8585f14c7a3533817c1b69cb1b383794449ff3a40ec45e5a9e6732afb.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 5f3abf10532be..baffeeba574a4 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "S3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 ee89ad95ef22a..eee561deb8eca 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 @@ -1,20 +1,20 @@ { "version": "34.0.0", "files": { - "607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a": { + "4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e": { "source": { - "path": "asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle", + "path": "asset.4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.bundle", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.zip", + "objectKey": "4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "277b1c50e6ed841627166094c91d865aac621afb72f6fe6abffacf6788a4bb4b": { + "a9388610d1d62124d163ad59e5a8867cc3bc005ae969e120cde73276405077aa": { "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": "277b1c50e6ed841627166094c91d865aac621afb72f6fe6abffacf6788a4bb4b.json", + "objectKey": "a9388610d1d62124d163ad59e5a8867cc3bc005ae969e120cde73276405077aa.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 604b65547a165..7d327c9957671 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": "1694180759459" + "salt": "1694346264355" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -127,7 +127,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.zip" + "S3Key": "4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.zip" }, "Timeout": 120, "Handler": "index.handler", diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js new file mode 100644 index 0000000000000..e24d6abb5e19b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js @@ -0,0 +1 @@ +"use strict";var ue=Object.create;var k=Object.defineProperty;var pe=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 ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S=(e,t)=>{for(var a in t)k(e,a,{get:t[a],enumerable:!0})},W=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&k(e,i,{get:()=>t[i],enumerable:!(r=pe(t,i))||r.enumerable});return e};var M=(e,t,a)=>(a=e!=null?ue(me(e)):{},W(t||!e||!e.__esModule?k(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>W(k({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?Se.decode(e.buffer):e}function B(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 V(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case P:return t;default:return r}})}function I(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function b(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,p)=>{try{let c=require("https").request(s,u);c.on("error",p),c.write(o),c.end()}catch(c){p(c)}})}function y(e){if(e)return JSON.parse(e)}function E(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var P,Se,D=d(()=>{"use strict";P="PHYSICAL:RESOURCEID:",Se=new TextDecoder});var _={};S(_,{forceSdkInstallation:()=>be,handler:()=>Re});function be(){v=!1}function Ce(){console.log("Installing latest AWS SDK v2"),(0,q.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function he(e){let t=e.apiLoader;return Ae.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(w.readFileSync((0,L.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(w.readFileSync((0,L.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{Ce(),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=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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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 p=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${p}-${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 p=await u[n.action](n.parameters&&V(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...B(p)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=I(i,E(c)):o=i}catch(p){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(p.code))throw p}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var q,w,L,v,Ae,N=d(()=>{"use strict";q=require("child_process"),w=M(require("fs")),L=require("path");D();v=!1;Ae=[]});var j,G=d(()=>{"use strict";j={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"]},clouddirectory:{addfacettoobject:["ObjectAttributeList.*.Value.BinaryValue"],attachtypedlink:["Attributes.*.Value.BinaryValue"],batchread:["Operations.*.GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.EndValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.StartValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue"],batchwrite:["Operations.*.AddFacetToObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.AttachTypedLink.Attributes.*.Value.BinaryValue","Operations.*.CreateObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.DetachTypedLink.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateLinkAttributes.AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","Operations.*.UpdateLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateObjectAttributes.AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],createfacet:["Attributes.*.AttributeDefinition.DefaultValue.BinaryValue"],createobject:["ObjectAttributeList.*.Value.BinaryValue"],createtypedlinkfacet:["Facet.Attributes.*.DefaultValue.BinaryValue"],detachtypedlink:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],getlinkattributes:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],listincomingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],listindex:["RangesOnIndexedValues.*.Range.EndValue.BinaryValue","RangesOnIndexedValues.*.Range.StartValue.BinaryValue"],listoutgoingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],updatefacet:["AttributeUpdates.*.Attribute.AttributeDefinition.DefaultValue.BinaryValue"],updatelinkattributes:["AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],updateobjectattributes:["AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],updatetypedlinkfacet:["AttributeUpdates.*.Attribute.DefaultValue.BinaryValue"]},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"]},dynamodb:{batchexecutestatement:["Statements.*.Parameters.*.B","Statements.*.Parameters.*.BS.*"],batchgetitem:["RequestItems.*.Keys.*.*.B","RequestItems.*.Keys.*.*.BS.*"],batchwriteitem:["RequestItems.*.*.DeleteRequest.Key.*.B","RequestItems.*.*.DeleteRequest.Key.*.BS.*","RequestItems.*.*.PutRequest.Item.*.B","RequestItems.*.*.PutRequest.Item.*.BS.*"],deleteitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"],executestatement:["Parameters.*.B","Parameters.*.BS.*"],executetransaction:["TransactStatements.*.Parameters.*.B","TransactStatements.*.Parameters.*.BS.*"],getitem:["Key.*.B","Key.*.BS.*"],putitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Item.*.B","Item.*.BS.*"],query:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","KeyConditions.*.AttributeValueList.*.B","KeyConditions.*.AttributeValueList.*.BS.*","QueryFilter.*.AttributeValueList.*.B","QueryFilter.*.AttributeValueList.*.BS.*"],scan:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","ScanFilter.*.AttributeValueList.*.B","ScanFilter.*.AttributeValueList.*.BS.*"],transactgetitems:["TransactItems.*.Get.Key.*.B","TransactItems.*.Get.Key.*.BS.*"],transactwriteitems:["TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.B","TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.BS.*","TransactItems.*.ConditionCheck.Key.*.B","TransactItems.*.ConditionCheck.Key.*.BS.*","TransactItems.*.Delete.ExpressionAttributeValues.*.B","TransactItems.*.Delete.ExpressionAttributeValues.*.BS.*","TransactItems.*.Delete.Key.*.B","TransactItems.*.Delete.Key.*.BS.*","TransactItems.*.Put.ExpressionAttributeValues.*.B","TransactItems.*.Put.ExpressionAttributeValues.*.BS.*","TransactItems.*.Put.Item.*.B","TransactItems.*.Put.Item.*.BS.*","TransactItems.*.Update.ExpressionAttributeValues.*.B","TransactItems.*.Update.ExpressionAttributeValues.*.BS.*","TransactItems.*.Update.Key.*.B","TransactItems.*.Update.Key.*.BS.*"],updateitem:["AttributeUpdates.*.Value.B","AttributeUpdates.*.Value.BS.*","Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"]},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"]},frauddetector:{geteventprediction:["externalModelEndpointDataBlobs.*.byteBuffer"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.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","ImportToken"],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"],startconversation:["requestEventStream.AudioInputEvent.audioChunk"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},"medical-imaging":{updateimagesetmetadata:["updateImageSetMetadataUpdates.DICOMUpdates.removableAttributes","updateImageSetMetadataUpdates.DICOMUpdates.updatableAttributes"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},"rds-data":{batchexecutestatement:["parameterSets.*.*.value.blobValue"],executestatement:["parameters.*.value.blobValue"]},rekognition:{comparefaces:["SourceImage.Bytes","TargetImage.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"],startfacelivenesssession:["LivenessRequestStream.VideoEvent.VideoChunk"]},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"]},sns:{publish:["MessageAttributes.*.BinaryValue"],publishbatch:["PublishBatchRequestEntries.*.MessageAttributes.*.BinaryValue"]},sqs:{sendmessage:["MessageAttributes.*.BinaryListValues.*","MessageAttributes.*.BinaryValue","MessageSystemAttributes.*.BinaryListValues.*","MessageSystemAttributes.*.BinaryValue"],sendmessagebatch:["Entries.*.MessageAttributes.*.BinaryListValues.*","Entries.*.MessageAttributes.*.BinaryValue","Entries.*.MessageSystemAttributes.*.BinaryListValues.*","Entries.*.MessageSystemAttributes.*.BinaryValue"]},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"]},transcribe:{startcallanalyticsstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startmedicalstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startstreamtranscription:["AudioStream.AudioEvent.AudioChunk"]},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","DeviceTypeLinux.Logo","DeviceTypeOsx.Logo","DeviceTypeWeb.Logo","DeviceTypeWindows.Logo"]}}});var $={};S($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>A});function ke(e,t,a={}){let r=j?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)A(a,i.split("."));return a}function A(e,t){return t.length===0?Be(e):t[0]==="*"?Array.isArray(e)?e.map(a=>A(a,t.slice(1))):e&&typeof e=="object"?Object.fromEntries(Object.entries(e).map(([a,r])=>[a,A(r,t.slice(1))])):e:(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=A(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 H=d(()=>{"use strict";G()});var z={};S(z,{findV3ClientConstructor:()=>T});function T(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Q,Z=d(()=>{"use strict";Q=["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 O,J=d(()=>{"use strict";Z();O={...Q.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={};S(Y,{getV3ClientPackageName:()=>F});var F,U=d(()=>{"use strict";J();F=e=>{if(e in O)return`@aws-sdk/${O[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={};S(X,{getV3Client:()=>Ie,getV3Command:()=>Ee,loadV3ClientPackage:()=>Ve});function Ve(e){let t=e.startsWith("@aws-sdk/")?e:F(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 Ie(e,t={}){try{let a=T(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Ee(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();U()});var te=ye(l=>{"use strict";var De=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]}),ve=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Me=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Me.coerceApiParametersToUint8Array}});var Pe=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Pe.findV3ClientConstructor}});var we=(U(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return we.getV3ClientPackageName}});ve((ee(),f(X)),l)});var ie={};S(ie,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Te(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`),h={...h,[e]:!0}}async function xe(e,t){let a;try{if(!h[e]&&t==="true")try{Te(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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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,C.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let u;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");u=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let p=(0,C.findV3ClientConstructor)(s),c=new p({apiVersion:i.apiVersion,credentials:u,region:i.region}),K=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=K.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===K.toLowerCase())?.[1],R={};try{let m=await c.send(new ce(i.parameters?(0,C.coerceApiParametersToUint8Array)(n,se,V(i.parameters,r)):{}));R={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...B(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=I(R,E(g)):a=R}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,C,h,re=d(()=>{"use strict";ae=require("child_process"),C=M(te());D();h={}});var Ue={};S(Ue,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>P,handler:()=>Fe,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(Ue);D();function ne(e,t){return(N(),f(_)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Fe(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/asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/asset.4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.bundle/index.js similarity index 99% rename from packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/asset.4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.bundle/index.js index 64c53ea7b530a..7168b5c96421a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle/index.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/asset.4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.bundle/index.js @@ -30945,6 +30945,72 @@ var init_parameter_types = __esm({ "InlineChunk" ] }, + "clouddirectory": { + "addfacettoobject": [ + "ObjectAttributeList.*.Value.BinaryValue" + ], + "attachtypedlink": [ + "Attributes.*.Value.BinaryValue" + ], + "batchread": [ + "Operations.*.GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue", + "Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue", + "Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue", + "Operations.*.ListIndex.RangesOnIndexedValues.*.Range.EndValue.BinaryValue", + "Operations.*.ListIndex.RangesOnIndexedValues.*.Range.StartValue.BinaryValue", + "Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue", + "Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue" + ], + "batchwrite": [ + "Operations.*.AddFacetToObject.ObjectAttributeList.*.Value.BinaryValue", + "Operations.*.AttachTypedLink.Attributes.*.Value.BinaryValue", + "Operations.*.CreateObject.ObjectAttributeList.*.Value.BinaryValue", + "Operations.*.DetachTypedLink.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue", + "Operations.*.UpdateLinkAttributes.AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue", + "Operations.*.UpdateLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue", + "Operations.*.UpdateObjectAttributes.AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue" + ], + "createfacet": [ + "Attributes.*.AttributeDefinition.DefaultValue.BinaryValue" + ], + "createobject": [ + "ObjectAttributeList.*.Value.BinaryValue" + ], + "createtypedlinkfacet": [ + "Facet.Attributes.*.DefaultValue.BinaryValue" + ], + "detachtypedlink": [ + "TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue" + ], + "getlinkattributes": [ + "TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue" + ], + "listincomingtypedlinks": [ + "FilterAttributeRanges.*.Range.EndValue.BinaryValue", + "FilterAttributeRanges.*.Range.StartValue.BinaryValue" + ], + "listindex": [ + "RangesOnIndexedValues.*.Range.EndValue.BinaryValue", + "RangesOnIndexedValues.*.Range.StartValue.BinaryValue" + ], + "listoutgoingtypedlinks": [ + "FilterAttributeRanges.*.Range.EndValue.BinaryValue", + "FilterAttributeRanges.*.Range.StartValue.BinaryValue" + ], + "updatefacet": [ + "AttributeUpdates.*.Attribute.AttributeDefinition.DefaultValue.BinaryValue" + ], + "updatelinkattributes": [ + "AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue", + "TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue" + ], + "updateobjectattributes": [ + "AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue" + ], + "updatetypedlinkfacet": [ + "AttributeUpdates.*.Attribute.DefaultValue.BinaryValue" + ] + }, "cloudfront": { "createfunction": [ "FunctionCode" @@ -31023,6 +31089,106 @@ var init_parameter_types = __esm({ "CertificateWallet" ] }, + "dynamodb": { + "batchexecutestatement": [ + "Statements.*.Parameters.*.B", + "Statements.*.Parameters.*.BS.*" + ], + "batchgetitem": [ + "RequestItems.*.Keys.*.*.B", + "RequestItems.*.Keys.*.*.BS.*" + ], + "batchwriteitem": [ + "RequestItems.*.*.DeleteRequest.Key.*.B", + "RequestItems.*.*.DeleteRequest.Key.*.BS.*", + "RequestItems.*.*.PutRequest.Item.*.B", + "RequestItems.*.*.PutRequest.Item.*.BS.*" + ], + "deleteitem": [ + "Expected.*.AttributeValueList.*.B", + "Expected.*.AttributeValueList.*.BS.*", + "Expected.*.Value.B", + "Expected.*.Value.BS.*", + "ExpressionAttributeValues.*.B", + "ExpressionAttributeValues.*.BS.*", + "Key.*.B", + "Key.*.BS.*" + ], + "executestatement": [ + "Parameters.*.B", + "Parameters.*.BS.*" + ], + "executetransaction": [ + "TransactStatements.*.Parameters.*.B", + "TransactStatements.*.Parameters.*.BS.*" + ], + "getitem": [ + "Key.*.B", + "Key.*.BS.*" + ], + "putitem": [ + "Expected.*.AttributeValueList.*.B", + "Expected.*.AttributeValueList.*.BS.*", + "Expected.*.Value.B", + "Expected.*.Value.BS.*", + "ExpressionAttributeValues.*.B", + "ExpressionAttributeValues.*.BS.*", + "Item.*.B", + "Item.*.BS.*" + ], + "query": [ + "ExclusiveStartKey.*.B", + "ExclusiveStartKey.*.BS.*", + "ExpressionAttributeValues.*.B", + "ExpressionAttributeValues.*.BS.*", + "KeyConditions.*.AttributeValueList.*.B", + "KeyConditions.*.AttributeValueList.*.BS.*", + "QueryFilter.*.AttributeValueList.*.B", + "QueryFilter.*.AttributeValueList.*.BS.*" + ], + "scan": [ + "ExclusiveStartKey.*.B", + "ExclusiveStartKey.*.BS.*", + "ExpressionAttributeValues.*.B", + "ExpressionAttributeValues.*.BS.*", + "ScanFilter.*.AttributeValueList.*.B", + "ScanFilter.*.AttributeValueList.*.BS.*" + ], + "transactgetitems": [ + "TransactItems.*.Get.Key.*.B", + "TransactItems.*.Get.Key.*.BS.*" + ], + "transactwriteitems": [ + "TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.B", + "TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.BS.*", + "TransactItems.*.ConditionCheck.Key.*.B", + "TransactItems.*.ConditionCheck.Key.*.BS.*", + "TransactItems.*.Delete.ExpressionAttributeValues.*.B", + "TransactItems.*.Delete.ExpressionAttributeValues.*.BS.*", + "TransactItems.*.Delete.Key.*.B", + "TransactItems.*.Delete.Key.*.BS.*", + "TransactItems.*.Put.ExpressionAttributeValues.*.B", + "TransactItems.*.Put.ExpressionAttributeValues.*.BS.*", + "TransactItems.*.Put.Item.*.B", + "TransactItems.*.Put.Item.*.BS.*", + "TransactItems.*.Update.ExpressionAttributeValues.*.B", + "TransactItems.*.Update.ExpressionAttributeValues.*.BS.*", + "TransactItems.*.Update.Key.*.B", + "TransactItems.*.Update.Key.*.BS.*" + ], + "updateitem": [ + "AttributeUpdates.*.Value.B", + "AttributeUpdates.*.Value.BS.*", + "Expected.*.AttributeValueList.*.B", + "Expected.*.AttributeValueList.*.BS.*", + "Expected.*.Value.B", + "Expected.*.Value.BS.*", + "ExpressionAttributeValues.*.B", + "ExpressionAttributeValues.*.BS.*", + "Key.*.B", + "Key.*.BS.*" + ] + }, "ebs": { "putsnapshotblock": [ "BlockData" @@ -31063,6 +31229,11 @@ var init_parameter_types = __esm({ "Records.*.Data" ] }, + "frauddetector": { + "geteventprediction": [ + "externalModelEndpointDataBlobs.*.byteBuffer" + ] + }, "gamelift": { "createscript": [ "ZipFile" @@ -31086,10 +31257,12 @@ var init_parameter_types = __esm({ }, "glue": { "updatecolumnstatisticsforpartition": [ - "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue" + "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue", + "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue" ], "updatecolumnstatisticsfortable": [ - "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue" + "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue", + "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue" ] }, "greengrass": { @@ -31189,7 +31362,8 @@ var init_parameter_types = __esm({ "Recipient.AttestationDocument" ], "importkeymaterial": [ - "EncryptedKeyMaterial" + "EncryptedKeyMaterial", + "ImportToken" ], "reencrypt": [ "CiphertextBlob" @@ -31235,6 +31409,9 @@ var init_parameter_types = __esm({ ], "recognizeutterance": [ "inputStream" + ], + "startconversation": [ + "requestEventStream.AudioInputEvent.audioChunk" ] }, "lookoutvision": { @@ -31250,6 +31427,12 @@ var init_parameter_types = __esm({ "Body" ] }, + "medical-imaging": { + "updateimagesetmetadata": [ + "updateImageSetMetadataUpdates.DICOMUpdates.removableAttributes", + "updateImageSetMetadataUpdates.DICOMUpdates.updatableAttributes" + ] + }, "mobiletargeting": { "sendmessages": [ "MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data" @@ -31269,9 +31452,18 @@ var init_parameter_types = __esm({ "AssetBundleImportSource.Body" ] }, + "rds-data": { + "batchexecutestatement": [ + "parameterSets.*.*.value.blobValue" + ], + "executestatement": [ + "parameters.*.value.blobValue" + ] + }, "rekognition": { "comparefaces": [ - "SourceImage.Bytes" + "SourceImage.Bytes", + "TargetImage.Bytes" ], "detectcustomlabels": [ "Image.Bytes" @@ -31305,6 +31497,9 @@ var init_parameter_types = __esm({ ], "updatedatasetentries": [ "Changes.GroundTruth" + ], + "startfacelivenesssession": [ + "LivenessRequestStream.VideoEvent.VideoChunk" ] }, "s3": { @@ -31355,6 +31550,28 @@ var init_parameter_types = __esm({ "payload" ] }, + "sns": { + "publish": [ + "MessageAttributes.*.BinaryValue" + ], + "publishbatch": [ + "PublishBatchRequestEntries.*.MessageAttributes.*.BinaryValue" + ] + }, + "sqs": { + "sendmessage": [ + "MessageAttributes.*.BinaryListValues.*", + "MessageAttributes.*.BinaryValue", + "MessageSystemAttributes.*.BinaryListValues.*", + "MessageSystemAttributes.*.BinaryValue" + ], + "sendmessagebatch": [ + "Entries.*.MessageAttributes.*.BinaryListValues.*", + "Entries.*.MessageAttributes.*.BinaryValue", + "Entries.*.MessageSystemAttributes.*.BinaryListValues.*", + "Entries.*.MessageSystemAttributes.*.BinaryValue" + ] + }, "ssm": { "registertaskwithmaintenancewindow": [ "TaskInvocationParameters.Lambda.Payload" @@ -31390,6 +31607,17 @@ var init_parameter_types = __esm({ "Document.Bytes" ] }, + "transcribe": { + "startcallanalyticsstreamtranscription": [ + "AudioStream.AudioEvent.AudioChunk" + ], + "startmedicalstreamtranscription": [ + "AudioStream.AudioEvent.AudioChunk" + ], + "startstreamtranscription": [ + "AudioStream.AudioEvent.AudioChunk" + ] + }, "translate": { "importterminology": [ "TerminologyData.File" @@ -31430,7 +31658,11 @@ var init_parameter_types = __esm({ "DeviceTypeAndroid.Logo", "DeviceTypeIos.Logo", "DeviceTypeIos.Logo2x", - "DeviceTypeIos.Logo3x" + "DeviceTypeIos.Logo3x", + "DeviceTypeLinux.Logo", + "DeviceTypeOsx.Logo", + "DeviceTypeWeb.Logo", + "DeviceTypeWindows.Logo" ] } }; @@ -31454,8 +31686,14 @@ function coerceToUint8Array(obj, path) { if (path.length === 0) { return coerceValueToUint8Array(obj); } - if (path[0] === "*" && Array.isArray(obj)) { - return obj.map((e) => coerceToUint8Array(e, path.slice(1))); + if (path[0] === "*") { + if (Array.isArray(obj)) { + return obj.map((e) => coerceToUint8Array(e, path.slice(1))); + } + if (obj && typeof obj === "object") { + return Object.fromEntries(Object.entries(obj).map(([key, value]) => [key, coerceToUint8Array(value, path.slice(1))])); + } + return obj; } if (obj && typeof obj === "object") { if (path[0] in obj) { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js deleted file mode 100644 index c58c31d67d083..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js +++ /dev/null @@ -1 +0,0 @@ -"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 6029a84280040..7b2a996077f74 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}/091fe950bd584de4a1808864a3e9e4ed96da0ec658ecc23ad243c71c846ca9ae.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/abc9d0e8585f14c7a3533817c1b69cb1b383794449ff3a40ec45e5a9e6732afb.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}/277b1c50e6ed841627166094c91d865aac621afb72f6fe6abffacf6788a4bb4b.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a9388610d1d62124d163ad59e5a8867cc3bc005ae969e120cde73276405077aa.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 feb25f99b05da..36afa4b08d4b3 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "s3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js new file mode 100644 index 0000000000000..e24d6abb5e19b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js @@ -0,0 +1 @@ +"use strict";var ue=Object.create;var k=Object.defineProperty;var pe=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 ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S=(e,t)=>{for(var a in t)k(e,a,{get:t[a],enumerable:!0})},W=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&k(e,i,{get:()=>t[i],enumerable:!(r=pe(t,i))||r.enumerable});return e};var M=(e,t,a)=>(a=e!=null?ue(me(e)):{},W(t||!e||!e.__esModule?k(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>W(k({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?Se.decode(e.buffer):e}function B(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 V(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case P:return t;default:return r}})}function I(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function b(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,p)=>{try{let c=require("https").request(s,u);c.on("error",p),c.write(o),c.end()}catch(c){p(c)}})}function y(e){if(e)return JSON.parse(e)}function E(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var P,Se,D=d(()=>{"use strict";P="PHYSICAL:RESOURCEID:",Se=new TextDecoder});var _={};S(_,{forceSdkInstallation:()=>be,handler:()=>Re});function be(){v=!1}function Ce(){console.log("Installing latest AWS SDK v2"),(0,q.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function he(e){let t=e.apiLoader;return Ae.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(w.readFileSync((0,L.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(w.readFileSync((0,L.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{Ce(),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=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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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 p=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${p}-${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 p=await u[n.action](n.parameters&&V(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...B(p)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=I(i,E(c)):o=i}catch(p){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(p.code))throw p}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var q,w,L,v,Ae,N=d(()=>{"use strict";q=require("child_process"),w=M(require("fs")),L=require("path");D();v=!1;Ae=[]});var j,G=d(()=>{"use strict";j={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"]},clouddirectory:{addfacettoobject:["ObjectAttributeList.*.Value.BinaryValue"],attachtypedlink:["Attributes.*.Value.BinaryValue"],batchread:["Operations.*.GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.EndValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.StartValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue"],batchwrite:["Operations.*.AddFacetToObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.AttachTypedLink.Attributes.*.Value.BinaryValue","Operations.*.CreateObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.DetachTypedLink.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateLinkAttributes.AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","Operations.*.UpdateLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateObjectAttributes.AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],createfacet:["Attributes.*.AttributeDefinition.DefaultValue.BinaryValue"],createobject:["ObjectAttributeList.*.Value.BinaryValue"],createtypedlinkfacet:["Facet.Attributes.*.DefaultValue.BinaryValue"],detachtypedlink:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],getlinkattributes:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],listincomingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],listindex:["RangesOnIndexedValues.*.Range.EndValue.BinaryValue","RangesOnIndexedValues.*.Range.StartValue.BinaryValue"],listoutgoingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],updatefacet:["AttributeUpdates.*.Attribute.AttributeDefinition.DefaultValue.BinaryValue"],updatelinkattributes:["AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],updateobjectattributes:["AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],updatetypedlinkfacet:["AttributeUpdates.*.Attribute.DefaultValue.BinaryValue"]},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"]},dynamodb:{batchexecutestatement:["Statements.*.Parameters.*.B","Statements.*.Parameters.*.BS.*"],batchgetitem:["RequestItems.*.Keys.*.*.B","RequestItems.*.Keys.*.*.BS.*"],batchwriteitem:["RequestItems.*.*.DeleteRequest.Key.*.B","RequestItems.*.*.DeleteRequest.Key.*.BS.*","RequestItems.*.*.PutRequest.Item.*.B","RequestItems.*.*.PutRequest.Item.*.BS.*"],deleteitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"],executestatement:["Parameters.*.B","Parameters.*.BS.*"],executetransaction:["TransactStatements.*.Parameters.*.B","TransactStatements.*.Parameters.*.BS.*"],getitem:["Key.*.B","Key.*.BS.*"],putitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Item.*.B","Item.*.BS.*"],query:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","KeyConditions.*.AttributeValueList.*.B","KeyConditions.*.AttributeValueList.*.BS.*","QueryFilter.*.AttributeValueList.*.B","QueryFilter.*.AttributeValueList.*.BS.*"],scan:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","ScanFilter.*.AttributeValueList.*.B","ScanFilter.*.AttributeValueList.*.BS.*"],transactgetitems:["TransactItems.*.Get.Key.*.B","TransactItems.*.Get.Key.*.BS.*"],transactwriteitems:["TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.B","TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.BS.*","TransactItems.*.ConditionCheck.Key.*.B","TransactItems.*.ConditionCheck.Key.*.BS.*","TransactItems.*.Delete.ExpressionAttributeValues.*.B","TransactItems.*.Delete.ExpressionAttributeValues.*.BS.*","TransactItems.*.Delete.Key.*.B","TransactItems.*.Delete.Key.*.BS.*","TransactItems.*.Put.ExpressionAttributeValues.*.B","TransactItems.*.Put.ExpressionAttributeValues.*.BS.*","TransactItems.*.Put.Item.*.B","TransactItems.*.Put.Item.*.BS.*","TransactItems.*.Update.ExpressionAttributeValues.*.B","TransactItems.*.Update.ExpressionAttributeValues.*.BS.*","TransactItems.*.Update.Key.*.B","TransactItems.*.Update.Key.*.BS.*"],updateitem:["AttributeUpdates.*.Value.B","AttributeUpdates.*.Value.BS.*","Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"]},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"]},frauddetector:{geteventprediction:["externalModelEndpointDataBlobs.*.byteBuffer"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.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","ImportToken"],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"],startconversation:["requestEventStream.AudioInputEvent.audioChunk"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},"medical-imaging":{updateimagesetmetadata:["updateImageSetMetadataUpdates.DICOMUpdates.removableAttributes","updateImageSetMetadataUpdates.DICOMUpdates.updatableAttributes"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},"rds-data":{batchexecutestatement:["parameterSets.*.*.value.blobValue"],executestatement:["parameters.*.value.blobValue"]},rekognition:{comparefaces:["SourceImage.Bytes","TargetImage.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"],startfacelivenesssession:["LivenessRequestStream.VideoEvent.VideoChunk"]},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"]},sns:{publish:["MessageAttributes.*.BinaryValue"],publishbatch:["PublishBatchRequestEntries.*.MessageAttributes.*.BinaryValue"]},sqs:{sendmessage:["MessageAttributes.*.BinaryListValues.*","MessageAttributes.*.BinaryValue","MessageSystemAttributes.*.BinaryListValues.*","MessageSystemAttributes.*.BinaryValue"],sendmessagebatch:["Entries.*.MessageAttributes.*.BinaryListValues.*","Entries.*.MessageAttributes.*.BinaryValue","Entries.*.MessageSystemAttributes.*.BinaryListValues.*","Entries.*.MessageSystemAttributes.*.BinaryValue"]},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"]},transcribe:{startcallanalyticsstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startmedicalstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startstreamtranscription:["AudioStream.AudioEvent.AudioChunk"]},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","DeviceTypeLinux.Logo","DeviceTypeOsx.Logo","DeviceTypeWeb.Logo","DeviceTypeWindows.Logo"]}}});var $={};S($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>A});function ke(e,t,a={}){let r=j?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)A(a,i.split("."));return a}function A(e,t){return t.length===0?Be(e):t[0]==="*"?Array.isArray(e)?e.map(a=>A(a,t.slice(1))):e&&typeof e=="object"?Object.fromEntries(Object.entries(e).map(([a,r])=>[a,A(r,t.slice(1))])):e:(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=A(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 H=d(()=>{"use strict";G()});var z={};S(z,{findV3ClientConstructor:()=>T});function T(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Q,Z=d(()=>{"use strict";Q=["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 O,J=d(()=>{"use strict";Z();O={...Q.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={};S(Y,{getV3ClientPackageName:()=>F});var F,U=d(()=>{"use strict";J();F=e=>{if(e in O)return`@aws-sdk/${O[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={};S(X,{getV3Client:()=>Ie,getV3Command:()=>Ee,loadV3ClientPackage:()=>Ve});function Ve(e){let t=e.startsWith("@aws-sdk/")?e:F(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 Ie(e,t={}){try{let a=T(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Ee(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();U()});var te=ye(l=>{"use strict";var De=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]}),ve=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Me=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Me.coerceApiParametersToUint8Array}});var Pe=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Pe.findV3ClientConstructor}});var we=(U(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return we.getV3ClientPackageName}});ve((ee(),f(X)),l)});var ie={};S(ie,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Te(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`),h={...h,[e]:!0}}async function xe(e,t){let a;try{if(!h[e]&&t==="true")try{Te(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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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,C.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let u;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");u=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let p=(0,C.findV3ClientConstructor)(s),c=new p({apiVersion:i.apiVersion,credentials:u,region:i.region}),K=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=K.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===K.toLowerCase())?.[1],R={};try{let m=await c.send(new ce(i.parameters?(0,C.coerceApiParametersToUint8Array)(n,se,V(i.parameters,r)):{}));R={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...B(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=I(R,E(g)):a=R}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,C,h,re=d(()=>{"use strict";ae=require("child_process"),C=M(te());D();h={}});var Ue={};S(Ue,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>P,handler:()=>Fe,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(Ue);D();function ne(e,t){return(N(),f(_)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Fe(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/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js deleted file mode 100644 index c58c31d67d083..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js +++ /dev/null @@ -1 +0,0 @@ -"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 6f5e0a607e155..4cf8c84685c3c 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": { - "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { + "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff": { "source": { - "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", + "path": "asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", + "objectKey": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "8d9fa817e4aa4463eb17ae2621b0d23d3343a823b5631c0b13fe7226726ca738": { + "0e5d82d9abc03f6a98a3bee09b478e3b7da5c04b21f9a115b048da7e4215be77": { "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": "8d9fa817e4aa4463eb17ae2621b0d23d3343a823b5631c0b13fe7226726ca738.json", + "objectKey": "0e5d82d9abc03f6a98a3bee09b478e3b7da5c04b21f9a115b048da7e4215be77.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 bb0001ab7ebb9..b7e70f26db87e 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "S3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 bba4b9444299d..ccf05b4ec627d 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}/8d9fa817e4aa4463eb17ae2621b0d23d3343a823b5631c0b13fe7226726ca738.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0e5d82d9abc03f6a98a3bee09b478e3b7da5c04b21f9a115b048da7e4215be77.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 560eae43cab9c..3791b853ede6f 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "s3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip" }, "handler": "index.handler", "role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js new file mode 100644 index 0000000000000..e24d6abb5e19b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js @@ -0,0 +1 @@ +"use strict";var ue=Object.create;var k=Object.defineProperty;var pe=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 ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S=(e,t)=>{for(var a in t)k(e,a,{get:t[a],enumerable:!0})},W=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&k(e,i,{get:()=>t[i],enumerable:!(r=pe(t,i))||r.enumerable});return e};var M=(e,t,a)=>(a=e!=null?ue(me(e)):{},W(t||!e||!e.__esModule?k(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>W(k({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?Se.decode(e.buffer):e}function B(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 V(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case P:return t;default:return r}})}function I(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function b(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,p)=>{try{let c=require("https").request(s,u);c.on("error",p),c.write(o),c.end()}catch(c){p(c)}})}function y(e){if(e)return JSON.parse(e)}function E(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var P,Se,D=d(()=>{"use strict";P="PHYSICAL:RESOURCEID:",Se=new TextDecoder});var _={};S(_,{forceSdkInstallation:()=>be,handler:()=>Re});function be(){v=!1}function Ce(){console.log("Installing latest AWS SDK v2"),(0,q.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function he(e){let t=e.apiLoader;return Ae.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(w.readFileSync((0,L.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(w.readFileSync((0,L.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{Ce(),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=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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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 p=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${p}-${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 p=await u[n.action](n.parameters&&V(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...B(p)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=I(i,E(c)):o=i}catch(p){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(p.code))throw p}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var q,w,L,v,Ae,N=d(()=>{"use strict";q=require("child_process"),w=M(require("fs")),L=require("path");D();v=!1;Ae=[]});var j,G=d(()=>{"use strict";j={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"]},clouddirectory:{addfacettoobject:["ObjectAttributeList.*.Value.BinaryValue"],attachtypedlink:["Attributes.*.Value.BinaryValue"],batchread:["Operations.*.GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.EndValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.StartValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue"],batchwrite:["Operations.*.AddFacetToObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.AttachTypedLink.Attributes.*.Value.BinaryValue","Operations.*.CreateObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.DetachTypedLink.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateLinkAttributes.AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","Operations.*.UpdateLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateObjectAttributes.AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],createfacet:["Attributes.*.AttributeDefinition.DefaultValue.BinaryValue"],createobject:["ObjectAttributeList.*.Value.BinaryValue"],createtypedlinkfacet:["Facet.Attributes.*.DefaultValue.BinaryValue"],detachtypedlink:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],getlinkattributes:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],listincomingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],listindex:["RangesOnIndexedValues.*.Range.EndValue.BinaryValue","RangesOnIndexedValues.*.Range.StartValue.BinaryValue"],listoutgoingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],updatefacet:["AttributeUpdates.*.Attribute.AttributeDefinition.DefaultValue.BinaryValue"],updatelinkattributes:["AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],updateobjectattributes:["AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],updatetypedlinkfacet:["AttributeUpdates.*.Attribute.DefaultValue.BinaryValue"]},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"]},dynamodb:{batchexecutestatement:["Statements.*.Parameters.*.B","Statements.*.Parameters.*.BS.*"],batchgetitem:["RequestItems.*.Keys.*.*.B","RequestItems.*.Keys.*.*.BS.*"],batchwriteitem:["RequestItems.*.*.DeleteRequest.Key.*.B","RequestItems.*.*.DeleteRequest.Key.*.BS.*","RequestItems.*.*.PutRequest.Item.*.B","RequestItems.*.*.PutRequest.Item.*.BS.*"],deleteitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"],executestatement:["Parameters.*.B","Parameters.*.BS.*"],executetransaction:["TransactStatements.*.Parameters.*.B","TransactStatements.*.Parameters.*.BS.*"],getitem:["Key.*.B","Key.*.BS.*"],putitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Item.*.B","Item.*.BS.*"],query:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","KeyConditions.*.AttributeValueList.*.B","KeyConditions.*.AttributeValueList.*.BS.*","QueryFilter.*.AttributeValueList.*.B","QueryFilter.*.AttributeValueList.*.BS.*"],scan:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","ScanFilter.*.AttributeValueList.*.B","ScanFilter.*.AttributeValueList.*.BS.*"],transactgetitems:["TransactItems.*.Get.Key.*.B","TransactItems.*.Get.Key.*.BS.*"],transactwriteitems:["TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.B","TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.BS.*","TransactItems.*.ConditionCheck.Key.*.B","TransactItems.*.ConditionCheck.Key.*.BS.*","TransactItems.*.Delete.ExpressionAttributeValues.*.B","TransactItems.*.Delete.ExpressionAttributeValues.*.BS.*","TransactItems.*.Delete.Key.*.B","TransactItems.*.Delete.Key.*.BS.*","TransactItems.*.Put.ExpressionAttributeValues.*.B","TransactItems.*.Put.ExpressionAttributeValues.*.BS.*","TransactItems.*.Put.Item.*.B","TransactItems.*.Put.Item.*.BS.*","TransactItems.*.Update.ExpressionAttributeValues.*.B","TransactItems.*.Update.ExpressionAttributeValues.*.BS.*","TransactItems.*.Update.Key.*.B","TransactItems.*.Update.Key.*.BS.*"],updateitem:["AttributeUpdates.*.Value.B","AttributeUpdates.*.Value.BS.*","Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"]},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"]},frauddetector:{geteventprediction:["externalModelEndpointDataBlobs.*.byteBuffer"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.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","ImportToken"],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"],startconversation:["requestEventStream.AudioInputEvent.audioChunk"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},"medical-imaging":{updateimagesetmetadata:["updateImageSetMetadataUpdates.DICOMUpdates.removableAttributes","updateImageSetMetadataUpdates.DICOMUpdates.updatableAttributes"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},"rds-data":{batchexecutestatement:["parameterSets.*.*.value.blobValue"],executestatement:["parameters.*.value.blobValue"]},rekognition:{comparefaces:["SourceImage.Bytes","TargetImage.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"],startfacelivenesssession:["LivenessRequestStream.VideoEvent.VideoChunk"]},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"]},sns:{publish:["MessageAttributes.*.BinaryValue"],publishbatch:["PublishBatchRequestEntries.*.MessageAttributes.*.BinaryValue"]},sqs:{sendmessage:["MessageAttributes.*.BinaryListValues.*","MessageAttributes.*.BinaryValue","MessageSystemAttributes.*.BinaryListValues.*","MessageSystemAttributes.*.BinaryValue"],sendmessagebatch:["Entries.*.MessageAttributes.*.BinaryListValues.*","Entries.*.MessageAttributes.*.BinaryValue","Entries.*.MessageSystemAttributes.*.BinaryListValues.*","Entries.*.MessageSystemAttributes.*.BinaryValue"]},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"]},transcribe:{startcallanalyticsstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startmedicalstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startstreamtranscription:["AudioStream.AudioEvent.AudioChunk"]},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","DeviceTypeLinux.Logo","DeviceTypeOsx.Logo","DeviceTypeWeb.Logo","DeviceTypeWindows.Logo"]}}});var $={};S($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>A});function ke(e,t,a={}){let r=j?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)A(a,i.split("."));return a}function A(e,t){return t.length===0?Be(e):t[0]==="*"?Array.isArray(e)?e.map(a=>A(a,t.slice(1))):e&&typeof e=="object"?Object.fromEntries(Object.entries(e).map(([a,r])=>[a,A(r,t.slice(1))])):e:(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=A(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 H=d(()=>{"use strict";G()});var z={};S(z,{findV3ClientConstructor:()=>T});function T(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Q,Z=d(()=>{"use strict";Q=["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 O,J=d(()=>{"use strict";Z();O={...Q.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={};S(Y,{getV3ClientPackageName:()=>F});var F,U=d(()=>{"use strict";J();F=e=>{if(e in O)return`@aws-sdk/${O[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={};S(X,{getV3Client:()=>Ie,getV3Command:()=>Ee,loadV3ClientPackage:()=>Ve});function Ve(e){let t=e.startsWith("@aws-sdk/")?e:F(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 Ie(e,t={}){try{let a=T(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Ee(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();U()});var te=ye(l=>{"use strict";var De=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]}),ve=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Me=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Me.coerceApiParametersToUint8Array}});var Pe=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Pe.findV3ClientConstructor}});var we=(U(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return we.getV3ClientPackageName}});ve((ee(),f(X)),l)});var ie={};S(ie,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Te(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`),h={...h,[e]:!0}}async function xe(e,t){let a;try{if(!h[e]&&t==="true")try{Te(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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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,C.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let u;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");u=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let p=(0,C.findV3ClientConstructor)(s),c=new p({apiVersion:i.apiVersion,credentials:u,region:i.region}),K=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=K.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===K.toLowerCase())?.[1],R={};try{let m=await c.send(new ce(i.parameters?(0,C.coerceApiParametersToUint8Array)(n,se,V(i.parameters,r)):{}));R={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...B(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=I(R,E(g)):a=R}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,C,h,re=d(()=>{"use strict";ae=require("child_process"),C=M(te());D();h={}});var Ue={};S(Ue,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>P,handler:()=>Fe,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(Ue);D();function ne(e,t){return(N(),f(_)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Fe(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/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js deleted file mode 100644 index c58c31d67d083..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js +++ /dev/null @@ -1 +0,0 @@ -"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 691ff715d1a77..020a8ff84cc22 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": { - "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { + "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff": { "source": { - "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", + "path": "asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", + "objectKey": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "13d9ec7e3dc6e7da6620e8e945a56d9b4b92100227765899e2ef30d89eedb763": { + "fcccd2604310861d0819304ccf9c30fd839aeb3884001151f80e21a815e25459": { "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": "13d9ec7e3dc6e7da6620e8e945a56d9b4b92100227765899e2ef30d89eedb763.json", + "objectKey": "fcccd2604310861d0819304ccf9c30fd839aeb3884001151f80e21a815e25459.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 616aa52c58a25..507938db14469 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "S3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 e5568e8669525..6f03c30ae6de0 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}/13d9ec7e3dc6e7da6620e8e945a56d9b4b92100227765899e2ef30d89eedb763.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fcccd2604310861d0819304ccf9c30fd839aeb3884001151f80e21a815e25459.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 81d462e323ae2..5113069401bfe 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "s3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 64e6534d5ab5f..da6182b595848 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 @@ -1,20 +1,20 @@ { "version": "34.0.0", "files": { - "607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a": { + "4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e": { "source": { - "path": "asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle", + "path": "asset.4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.bundle", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.zip", + "objectKey": "4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "44a10d4849c24f0cb8e822eeb3f2ddac58921d09c721ec0c7bdb2a2fe17e76c1": { + "69e2e8d6ffc8cb214b9ef9e1a7cbc4b954f1df7f3fc6118b57bdaef53a98ad10": { "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": "44a10d4849c24f0cb8e822eeb3f2ddac58921d09c721ec0c7bdb2a2fe17e76c1.json", + "objectKey": "69e2e8d6ffc8cb214b9ef9e1a7cbc4b954f1df7f3fc6118b57bdaef53a98ad10.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 8c5b226197eb8..819f5788e727f 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": { - "AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba": { + "AwsApiCallEventBridgeputEvents7ef57674ce9c750ddc665a40769db8ba": { "Type": "Custom::DeployAssert@SdkCallEventBridgeputEvents", "Properties": { "ServiceToken": { @@ -12,10 +12,10 @@ "service": "EventBridge", "api": "putEvents", "parameters": { - "Entries": "[{\"Detail\":\"{\\\"date\\\":\\\"abc1694180757789\\\"}\",\"DetailType\":\"cdk-integ-custom-rule\",\"Source\":\"cdk-integ\"}]" + "Entries": "[{\"Detail\":\"{\\\"date\\\":\\\"abc1694346262717\\\"}\",\"DetailType\":\"cdk-integ-custom-rule\",\"Source\":\"cdk-integ\"}]" }, "flattenResponse": "false", - "salt": "1694180757804" + "salt": "1694346262732" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -87,7 +87,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.zip" + "S3Key": "4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.zip" }, "Timeout": 120, "Handler": "index.handler", @@ -99,7 +99,7 @@ } } }, - "AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939": { + "AwsApiCallCloudWatchLogsfilterLogEvents1cdca70f42ea434f1024c5676b866013": { "Type": "Custom::DeployAssert@SdkCallCloudWatchLogsfilterLogEvents", "Properties": { "ServiceToken": { @@ -110,7 +110,7 @@ }, "service": "CloudWatchLogs", "api": "filterLogEvents", - "expected": "{\"$StringLike\":\"abc1694180757789\"}", + "expected": "{\"$StringLike\":\"abc1694346262717\"}", "actualPath": "events.0.message", "parameters": { "logGroupName": { @@ -125,27 +125,27 @@ ] ] }, - "startTime": "1694180757789", + "startTime": "1694346262717", "limit": "1" }, "flattenResponse": "true", "outputPaths": [ "events.0.message" ], - "salt": "1694180757805" + "salt": "1694346262733" }, "DependsOn": [ - "AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba" + "AwsApiCallEventBridgeputEvents7ef57674ce9c750ddc665a40769db8ba" ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" } }, "Outputs": { - "AssertionResultsAwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939": { + "AssertionResultsAwsApiCallCloudWatchLogsfilterLogEvents1cdca70f42ea434f1024c5676b866013": { "Value": { "Fn::GetAtt": [ - "AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939", + "AwsApiCallCloudWatchLogsfilterLogEvents1cdca70f42ea434f1024c5676b866013", "assertion" ] } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js new file mode 100644 index 0000000000000..e24d6abb5e19b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js @@ -0,0 +1 @@ +"use strict";var ue=Object.create;var k=Object.defineProperty;var pe=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 ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S=(e,t)=>{for(var a in t)k(e,a,{get:t[a],enumerable:!0})},W=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&k(e,i,{get:()=>t[i],enumerable:!(r=pe(t,i))||r.enumerable});return e};var M=(e,t,a)=>(a=e!=null?ue(me(e)):{},W(t||!e||!e.__esModule?k(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>W(k({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?Se.decode(e.buffer):e}function B(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 V(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case P:return t;default:return r}})}function I(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function b(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,p)=>{try{let c=require("https").request(s,u);c.on("error",p),c.write(o),c.end()}catch(c){p(c)}})}function y(e){if(e)return JSON.parse(e)}function E(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var P,Se,D=d(()=>{"use strict";P="PHYSICAL:RESOURCEID:",Se=new TextDecoder});var _={};S(_,{forceSdkInstallation:()=>be,handler:()=>Re});function be(){v=!1}function Ce(){console.log("Installing latest AWS SDK v2"),(0,q.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function he(e){let t=e.apiLoader;return Ae.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(w.readFileSync((0,L.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(w.readFileSync((0,L.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{Ce(),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=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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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 p=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${p}-${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 p=await u[n.action](n.parameters&&V(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...B(p)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=I(i,E(c)):o=i}catch(p){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(p.code))throw p}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var q,w,L,v,Ae,N=d(()=>{"use strict";q=require("child_process"),w=M(require("fs")),L=require("path");D();v=!1;Ae=[]});var j,G=d(()=>{"use strict";j={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"]},clouddirectory:{addfacettoobject:["ObjectAttributeList.*.Value.BinaryValue"],attachtypedlink:["Attributes.*.Value.BinaryValue"],batchread:["Operations.*.GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.EndValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.StartValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue"],batchwrite:["Operations.*.AddFacetToObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.AttachTypedLink.Attributes.*.Value.BinaryValue","Operations.*.CreateObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.DetachTypedLink.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateLinkAttributes.AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","Operations.*.UpdateLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateObjectAttributes.AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],createfacet:["Attributes.*.AttributeDefinition.DefaultValue.BinaryValue"],createobject:["ObjectAttributeList.*.Value.BinaryValue"],createtypedlinkfacet:["Facet.Attributes.*.DefaultValue.BinaryValue"],detachtypedlink:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],getlinkattributes:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],listincomingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],listindex:["RangesOnIndexedValues.*.Range.EndValue.BinaryValue","RangesOnIndexedValues.*.Range.StartValue.BinaryValue"],listoutgoingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],updatefacet:["AttributeUpdates.*.Attribute.AttributeDefinition.DefaultValue.BinaryValue"],updatelinkattributes:["AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],updateobjectattributes:["AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],updatetypedlinkfacet:["AttributeUpdates.*.Attribute.DefaultValue.BinaryValue"]},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"]},dynamodb:{batchexecutestatement:["Statements.*.Parameters.*.B","Statements.*.Parameters.*.BS.*"],batchgetitem:["RequestItems.*.Keys.*.*.B","RequestItems.*.Keys.*.*.BS.*"],batchwriteitem:["RequestItems.*.*.DeleteRequest.Key.*.B","RequestItems.*.*.DeleteRequest.Key.*.BS.*","RequestItems.*.*.PutRequest.Item.*.B","RequestItems.*.*.PutRequest.Item.*.BS.*"],deleteitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"],executestatement:["Parameters.*.B","Parameters.*.BS.*"],executetransaction:["TransactStatements.*.Parameters.*.B","TransactStatements.*.Parameters.*.BS.*"],getitem:["Key.*.B","Key.*.BS.*"],putitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Item.*.B","Item.*.BS.*"],query:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","KeyConditions.*.AttributeValueList.*.B","KeyConditions.*.AttributeValueList.*.BS.*","QueryFilter.*.AttributeValueList.*.B","QueryFilter.*.AttributeValueList.*.BS.*"],scan:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","ScanFilter.*.AttributeValueList.*.B","ScanFilter.*.AttributeValueList.*.BS.*"],transactgetitems:["TransactItems.*.Get.Key.*.B","TransactItems.*.Get.Key.*.BS.*"],transactwriteitems:["TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.B","TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.BS.*","TransactItems.*.ConditionCheck.Key.*.B","TransactItems.*.ConditionCheck.Key.*.BS.*","TransactItems.*.Delete.ExpressionAttributeValues.*.B","TransactItems.*.Delete.ExpressionAttributeValues.*.BS.*","TransactItems.*.Delete.Key.*.B","TransactItems.*.Delete.Key.*.BS.*","TransactItems.*.Put.ExpressionAttributeValues.*.B","TransactItems.*.Put.ExpressionAttributeValues.*.BS.*","TransactItems.*.Put.Item.*.B","TransactItems.*.Put.Item.*.BS.*","TransactItems.*.Update.ExpressionAttributeValues.*.B","TransactItems.*.Update.ExpressionAttributeValues.*.BS.*","TransactItems.*.Update.Key.*.B","TransactItems.*.Update.Key.*.BS.*"],updateitem:["AttributeUpdates.*.Value.B","AttributeUpdates.*.Value.BS.*","Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"]},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"]},frauddetector:{geteventprediction:["externalModelEndpointDataBlobs.*.byteBuffer"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.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","ImportToken"],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"],startconversation:["requestEventStream.AudioInputEvent.audioChunk"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},"medical-imaging":{updateimagesetmetadata:["updateImageSetMetadataUpdates.DICOMUpdates.removableAttributes","updateImageSetMetadataUpdates.DICOMUpdates.updatableAttributes"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},"rds-data":{batchexecutestatement:["parameterSets.*.*.value.blobValue"],executestatement:["parameters.*.value.blobValue"]},rekognition:{comparefaces:["SourceImage.Bytes","TargetImage.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"],startfacelivenesssession:["LivenessRequestStream.VideoEvent.VideoChunk"]},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"]},sns:{publish:["MessageAttributes.*.BinaryValue"],publishbatch:["PublishBatchRequestEntries.*.MessageAttributes.*.BinaryValue"]},sqs:{sendmessage:["MessageAttributes.*.BinaryListValues.*","MessageAttributes.*.BinaryValue","MessageSystemAttributes.*.BinaryListValues.*","MessageSystemAttributes.*.BinaryValue"],sendmessagebatch:["Entries.*.MessageAttributes.*.BinaryListValues.*","Entries.*.MessageAttributes.*.BinaryValue","Entries.*.MessageSystemAttributes.*.BinaryListValues.*","Entries.*.MessageSystemAttributes.*.BinaryValue"]},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"]},transcribe:{startcallanalyticsstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startmedicalstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startstreamtranscription:["AudioStream.AudioEvent.AudioChunk"]},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","DeviceTypeLinux.Logo","DeviceTypeOsx.Logo","DeviceTypeWeb.Logo","DeviceTypeWindows.Logo"]}}});var $={};S($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>A});function ke(e,t,a={}){let r=j?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)A(a,i.split("."));return a}function A(e,t){return t.length===0?Be(e):t[0]==="*"?Array.isArray(e)?e.map(a=>A(a,t.slice(1))):e&&typeof e=="object"?Object.fromEntries(Object.entries(e).map(([a,r])=>[a,A(r,t.slice(1))])):e:(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=A(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 H=d(()=>{"use strict";G()});var z={};S(z,{findV3ClientConstructor:()=>T});function T(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Q,Z=d(()=>{"use strict";Q=["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 O,J=d(()=>{"use strict";Z();O={...Q.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={};S(Y,{getV3ClientPackageName:()=>F});var F,U=d(()=>{"use strict";J();F=e=>{if(e in O)return`@aws-sdk/${O[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={};S(X,{getV3Client:()=>Ie,getV3Command:()=>Ee,loadV3ClientPackage:()=>Ve});function Ve(e){let t=e.startsWith("@aws-sdk/")?e:F(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 Ie(e,t={}){try{let a=T(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Ee(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();U()});var te=ye(l=>{"use strict";var De=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]}),ve=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Me=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Me.coerceApiParametersToUint8Array}});var Pe=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Pe.findV3ClientConstructor}});var we=(U(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return we.getV3ClientPackageName}});ve((ee(),f(X)),l)});var ie={};S(ie,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Te(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`),h={...h,[e]:!0}}async function xe(e,t){let a;try{if(!h[e]&&t==="true")try{Te(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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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,C.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let u;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");u=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let p=(0,C.findV3ClientConstructor)(s),c=new p({apiVersion:i.apiVersion,credentials:u,region:i.region}),K=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=K.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===K.toLowerCase())?.[1],R={};try{let m=await c.send(new ce(i.parameters?(0,C.coerceApiParametersToUint8Array)(n,se,V(i.parameters,r)):{}));R={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...B(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=I(R,E(g)):a=R}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,C,h,re=d(()=>{"use strict";ae=require("child_process"),C=M(te());D();h={}});var Ue={};S(Ue,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>P,handler:()=>Fe,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(Ue);D();function ne(e,t){return(N(),f(_)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Fe(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/asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/asset.4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.bundle/index.js similarity index 99% rename from packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/asset.4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.bundle/index.js index 64c53ea7b530a..7168b5c96421a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot/asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle/index.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/asset.4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.bundle/index.js @@ -30945,6 +30945,72 @@ var init_parameter_types = __esm({ "InlineChunk" ] }, + "clouddirectory": { + "addfacettoobject": [ + "ObjectAttributeList.*.Value.BinaryValue" + ], + "attachtypedlink": [ + "Attributes.*.Value.BinaryValue" + ], + "batchread": [ + "Operations.*.GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue", + "Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue", + "Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue", + "Operations.*.ListIndex.RangesOnIndexedValues.*.Range.EndValue.BinaryValue", + "Operations.*.ListIndex.RangesOnIndexedValues.*.Range.StartValue.BinaryValue", + "Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue", + "Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue" + ], + "batchwrite": [ + "Operations.*.AddFacetToObject.ObjectAttributeList.*.Value.BinaryValue", + "Operations.*.AttachTypedLink.Attributes.*.Value.BinaryValue", + "Operations.*.CreateObject.ObjectAttributeList.*.Value.BinaryValue", + "Operations.*.DetachTypedLink.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue", + "Operations.*.UpdateLinkAttributes.AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue", + "Operations.*.UpdateLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue", + "Operations.*.UpdateObjectAttributes.AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue" + ], + "createfacet": [ + "Attributes.*.AttributeDefinition.DefaultValue.BinaryValue" + ], + "createobject": [ + "ObjectAttributeList.*.Value.BinaryValue" + ], + "createtypedlinkfacet": [ + "Facet.Attributes.*.DefaultValue.BinaryValue" + ], + "detachtypedlink": [ + "TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue" + ], + "getlinkattributes": [ + "TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue" + ], + "listincomingtypedlinks": [ + "FilterAttributeRanges.*.Range.EndValue.BinaryValue", + "FilterAttributeRanges.*.Range.StartValue.BinaryValue" + ], + "listindex": [ + "RangesOnIndexedValues.*.Range.EndValue.BinaryValue", + "RangesOnIndexedValues.*.Range.StartValue.BinaryValue" + ], + "listoutgoingtypedlinks": [ + "FilterAttributeRanges.*.Range.EndValue.BinaryValue", + "FilterAttributeRanges.*.Range.StartValue.BinaryValue" + ], + "updatefacet": [ + "AttributeUpdates.*.Attribute.AttributeDefinition.DefaultValue.BinaryValue" + ], + "updatelinkattributes": [ + "AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue", + "TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue" + ], + "updateobjectattributes": [ + "AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue" + ], + "updatetypedlinkfacet": [ + "AttributeUpdates.*.Attribute.DefaultValue.BinaryValue" + ] + }, "cloudfront": { "createfunction": [ "FunctionCode" @@ -31023,6 +31089,106 @@ var init_parameter_types = __esm({ "CertificateWallet" ] }, + "dynamodb": { + "batchexecutestatement": [ + "Statements.*.Parameters.*.B", + "Statements.*.Parameters.*.BS.*" + ], + "batchgetitem": [ + "RequestItems.*.Keys.*.*.B", + "RequestItems.*.Keys.*.*.BS.*" + ], + "batchwriteitem": [ + "RequestItems.*.*.DeleteRequest.Key.*.B", + "RequestItems.*.*.DeleteRequest.Key.*.BS.*", + "RequestItems.*.*.PutRequest.Item.*.B", + "RequestItems.*.*.PutRequest.Item.*.BS.*" + ], + "deleteitem": [ + "Expected.*.AttributeValueList.*.B", + "Expected.*.AttributeValueList.*.BS.*", + "Expected.*.Value.B", + "Expected.*.Value.BS.*", + "ExpressionAttributeValues.*.B", + "ExpressionAttributeValues.*.BS.*", + "Key.*.B", + "Key.*.BS.*" + ], + "executestatement": [ + "Parameters.*.B", + "Parameters.*.BS.*" + ], + "executetransaction": [ + "TransactStatements.*.Parameters.*.B", + "TransactStatements.*.Parameters.*.BS.*" + ], + "getitem": [ + "Key.*.B", + "Key.*.BS.*" + ], + "putitem": [ + "Expected.*.AttributeValueList.*.B", + "Expected.*.AttributeValueList.*.BS.*", + "Expected.*.Value.B", + "Expected.*.Value.BS.*", + "ExpressionAttributeValues.*.B", + "ExpressionAttributeValues.*.BS.*", + "Item.*.B", + "Item.*.BS.*" + ], + "query": [ + "ExclusiveStartKey.*.B", + "ExclusiveStartKey.*.BS.*", + "ExpressionAttributeValues.*.B", + "ExpressionAttributeValues.*.BS.*", + "KeyConditions.*.AttributeValueList.*.B", + "KeyConditions.*.AttributeValueList.*.BS.*", + "QueryFilter.*.AttributeValueList.*.B", + "QueryFilter.*.AttributeValueList.*.BS.*" + ], + "scan": [ + "ExclusiveStartKey.*.B", + "ExclusiveStartKey.*.BS.*", + "ExpressionAttributeValues.*.B", + "ExpressionAttributeValues.*.BS.*", + "ScanFilter.*.AttributeValueList.*.B", + "ScanFilter.*.AttributeValueList.*.BS.*" + ], + "transactgetitems": [ + "TransactItems.*.Get.Key.*.B", + "TransactItems.*.Get.Key.*.BS.*" + ], + "transactwriteitems": [ + "TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.B", + "TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.BS.*", + "TransactItems.*.ConditionCheck.Key.*.B", + "TransactItems.*.ConditionCheck.Key.*.BS.*", + "TransactItems.*.Delete.ExpressionAttributeValues.*.B", + "TransactItems.*.Delete.ExpressionAttributeValues.*.BS.*", + "TransactItems.*.Delete.Key.*.B", + "TransactItems.*.Delete.Key.*.BS.*", + "TransactItems.*.Put.ExpressionAttributeValues.*.B", + "TransactItems.*.Put.ExpressionAttributeValues.*.BS.*", + "TransactItems.*.Put.Item.*.B", + "TransactItems.*.Put.Item.*.BS.*", + "TransactItems.*.Update.ExpressionAttributeValues.*.B", + "TransactItems.*.Update.ExpressionAttributeValues.*.BS.*", + "TransactItems.*.Update.Key.*.B", + "TransactItems.*.Update.Key.*.BS.*" + ], + "updateitem": [ + "AttributeUpdates.*.Value.B", + "AttributeUpdates.*.Value.BS.*", + "Expected.*.AttributeValueList.*.B", + "Expected.*.AttributeValueList.*.BS.*", + "Expected.*.Value.B", + "Expected.*.Value.BS.*", + "ExpressionAttributeValues.*.B", + "ExpressionAttributeValues.*.BS.*", + "Key.*.B", + "Key.*.BS.*" + ] + }, "ebs": { "putsnapshotblock": [ "BlockData" @@ -31063,6 +31229,11 @@ var init_parameter_types = __esm({ "Records.*.Data" ] }, + "frauddetector": { + "geteventprediction": [ + "externalModelEndpointDataBlobs.*.byteBuffer" + ] + }, "gamelift": { "createscript": [ "ZipFile" @@ -31086,10 +31257,12 @@ var init_parameter_types = __esm({ }, "glue": { "updatecolumnstatisticsforpartition": [ - "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue" + "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue", + "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue" ], "updatecolumnstatisticsfortable": [ - "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue" + "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue", + "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue" ] }, "greengrass": { @@ -31189,7 +31362,8 @@ var init_parameter_types = __esm({ "Recipient.AttestationDocument" ], "importkeymaterial": [ - "EncryptedKeyMaterial" + "EncryptedKeyMaterial", + "ImportToken" ], "reencrypt": [ "CiphertextBlob" @@ -31235,6 +31409,9 @@ var init_parameter_types = __esm({ ], "recognizeutterance": [ "inputStream" + ], + "startconversation": [ + "requestEventStream.AudioInputEvent.audioChunk" ] }, "lookoutvision": { @@ -31250,6 +31427,12 @@ var init_parameter_types = __esm({ "Body" ] }, + "medical-imaging": { + "updateimagesetmetadata": [ + "updateImageSetMetadataUpdates.DICOMUpdates.removableAttributes", + "updateImageSetMetadataUpdates.DICOMUpdates.updatableAttributes" + ] + }, "mobiletargeting": { "sendmessages": [ "MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data" @@ -31269,9 +31452,18 @@ var init_parameter_types = __esm({ "AssetBundleImportSource.Body" ] }, + "rds-data": { + "batchexecutestatement": [ + "parameterSets.*.*.value.blobValue" + ], + "executestatement": [ + "parameters.*.value.blobValue" + ] + }, "rekognition": { "comparefaces": [ - "SourceImage.Bytes" + "SourceImage.Bytes", + "TargetImage.Bytes" ], "detectcustomlabels": [ "Image.Bytes" @@ -31305,6 +31497,9 @@ var init_parameter_types = __esm({ ], "updatedatasetentries": [ "Changes.GroundTruth" + ], + "startfacelivenesssession": [ + "LivenessRequestStream.VideoEvent.VideoChunk" ] }, "s3": { @@ -31355,6 +31550,28 @@ var init_parameter_types = __esm({ "payload" ] }, + "sns": { + "publish": [ + "MessageAttributes.*.BinaryValue" + ], + "publishbatch": [ + "PublishBatchRequestEntries.*.MessageAttributes.*.BinaryValue" + ] + }, + "sqs": { + "sendmessage": [ + "MessageAttributes.*.BinaryListValues.*", + "MessageAttributes.*.BinaryValue", + "MessageSystemAttributes.*.BinaryListValues.*", + "MessageSystemAttributes.*.BinaryValue" + ], + "sendmessagebatch": [ + "Entries.*.MessageAttributes.*.BinaryListValues.*", + "Entries.*.MessageAttributes.*.BinaryValue", + "Entries.*.MessageSystemAttributes.*.BinaryListValues.*", + "Entries.*.MessageSystemAttributes.*.BinaryValue" + ] + }, "ssm": { "registertaskwithmaintenancewindow": [ "TaskInvocationParameters.Lambda.Payload" @@ -31390,6 +31607,17 @@ var init_parameter_types = __esm({ "Document.Bytes" ] }, + "transcribe": { + "startcallanalyticsstreamtranscription": [ + "AudioStream.AudioEvent.AudioChunk" + ], + "startmedicalstreamtranscription": [ + "AudioStream.AudioEvent.AudioChunk" + ], + "startstreamtranscription": [ + "AudioStream.AudioEvent.AudioChunk" + ] + }, "translate": { "importterminology": [ "TerminologyData.File" @@ -31430,7 +31658,11 @@ var init_parameter_types = __esm({ "DeviceTypeAndroid.Logo", "DeviceTypeIos.Logo", "DeviceTypeIos.Logo2x", - "DeviceTypeIos.Logo3x" + "DeviceTypeIos.Logo3x", + "DeviceTypeLinux.Logo", + "DeviceTypeOsx.Logo", + "DeviceTypeWeb.Logo", + "DeviceTypeWindows.Logo" ] } }; @@ -31454,8 +31686,14 @@ function coerceToUint8Array(obj, path) { if (path.length === 0) { return coerceValueToUint8Array(obj); } - if (path[0] === "*" && Array.isArray(obj)) { - return obj.map((e) => coerceToUint8Array(e, path.slice(1))); + if (path[0] === "*") { + if (Array.isArray(obj)) { + return obj.map((e) => coerceToUint8Array(e, path.slice(1))); + } + if (obj && typeof obj === "object") { + return Object.fromEntries(Object.entries(obj).map(([key, value]) => [key, coerceToUint8Array(value, path.slice(1))])); + } + return obj; } if (obj && typeof obj === "object") { if (path[0] in obj) { 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 deleted file mode 100644 index c58c31d67d083..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js +++ /dev/null @@ -1 +0,0 @@ -"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 c007a7facf3c0..0342ccff53aef 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": { - "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { + "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff": { "source": { - "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", + "path": "asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", + "objectKey": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "2f6831011d0933523cf63707f93eeb7cc986e97ad7ef9d7bd60ef5d92e9ab452": { + "6e739edc66122eb68ce6de8374f1b0ed49cb891508b509f3e9dae52ca2ed4d82": { "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": "2f6831011d0933523cf63707f93eeb7cc986e97ad7ef9d7bd60ef5d92e9ab452.json", + "objectKey": "6e739edc66122eb68ce6de8374f1b0ed49cb891508b509f3e9dae52ca2ed4d82.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 878a16c139b55..94a8f26ef0919 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "S3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 517a7e0c63bd9..f625a4a27d635 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}/2f6831011d0933523cf63707f93eeb7cc986e97ad7ef9d7bd60ef5d92e9ab452.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6e739edc66122eb68ce6de8374f1b0ed49cb891508b509f3e9dae52ca2ed4d82.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}/44a10d4849c24f0cb8e822eeb3f2ddac58921d09c721ec0c7bdb2a2fe17e76c1.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/69e2e8d6ffc8cb214b9ef9e1a7cbc4b954f1df7f3fc6118b57bdaef53a98ad10.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -177,10 +177,10 @@ "LogGroupDefaultTestDeployAssert353EE07A.assets" ], "metadata": { - "/LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba/Default/Default": [ + "/LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents7ef57674ce9c750ddc665a40769db8ba/Default/Default": [ { "type": "aws:cdk:logicalId", - "data": "AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba" + "data": "AwsApiCallEventBridgeputEvents7ef57674ce9c750ddc665a40769db8ba" } ], "/LogGroup/DefaultTest/DeployAssert/SingletonFunction1488541a7b23466481b69b4408076b81/Role": [ @@ -195,16 +195,16 @@ "data": "SingletonFunction1488541a7b23466481b69b4408076b81HandlerCD40AE9F" } ], - "/LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939/Default/Default": [ + "/LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEvents1cdca70f42ea434f1024c5676b866013/Default/Default": [ { "type": "aws:cdk:logicalId", - "data": "AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939" + "data": "AwsApiCallCloudWatchLogsfilterLogEvents1cdca70f42ea434f1024c5676b866013" } ], - "/LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939/AssertionResults": [ + "/LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEvents1cdca70f42ea434f1024c5676b866013/AssertionResults": [ { "type": "aws:cdk:logicalId", - "data": "AssertionResultsAwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939" + "data": "AssertionResultsAwsApiCallCloudWatchLogsfilterLogEvents1cdca70f42ea434f1024c5676b866013" } ], "/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 333298274e422..0c0388bdea966 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "s3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip" }, "handler": "index.handler", "role": { @@ -708,17 +708,17 @@ "id": "DeployAssert", "path": "LogGroup/DefaultTest/DeployAssert", "children": { - "AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba": { - "id": "AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba", + "AwsApiCallEventBridgeputEvents7ef57674ce9c750ddc665a40769db8ba": { + "id": "AwsApiCallEventBridgeputEvents7ef57674ce9c750ddc665a40769db8ba", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents7ef57674ce9c750ddc665a40769db8ba", "children": { "SdkProvider": { "id": "SdkProvider", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba/SdkProvider", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents7ef57674ce9c750ddc665a40769db8ba/SdkProvider", "children": { "AssertionsProvider": { "id": "AssertionsProvider", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba/SdkProvider/AssertionsProvider", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents7ef57674ce9c750ddc665a40769db8ba/SdkProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", "version": "10.2.70" @@ -732,11 +732,11 @@ }, "Default": { "id": "Default", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba/Default", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents7ef57674ce9c750ddc665a40769db8ba/Default", "children": { "Default": { "id": "Default", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents193b6dfa50cf43844147261900a3deba/Default/Default", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallEventBridgeputEvents7ef57674ce9c750ddc665a40769db8ba/Default/Default", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -788,17 +788,17 @@ "version": "10.2.70" } }, - "AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939": { - "id": "AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939", + "AwsApiCallCloudWatchLogsfilterLogEvents1cdca70f42ea434f1024c5676b866013": { + "id": "AwsApiCallCloudWatchLogsfilterLogEvents1cdca70f42ea434f1024c5676b866013", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEvents1cdca70f42ea434f1024c5676b866013", "children": { "SdkProvider": { "id": "SdkProvider", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939/SdkProvider", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEvents1cdca70f42ea434f1024c5676b866013/SdkProvider", "children": { "AssertionsProvider": { "id": "AssertionsProvider", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939/SdkProvider/AssertionsProvider", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEvents1cdca70f42ea434f1024c5676b866013/SdkProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", "version": "10.2.70" @@ -812,11 +812,11 @@ }, "Default": { "id": "Default", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939/Default", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEvents1cdca70f42ea434f1024c5676b866013/Default", "children": { "Default": { "id": "Default", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939/Default/Default", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEvents1cdca70f42ea434f1024c5676b866013/Default/Default", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -830,7 +830,7 @@ }, "AssertionResults": { "id": "AssertionResults", - "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEventse19564146b9bbe084fa4f2460aa68939/AssertionResults", + "path": "LogGroup/DefaultTest/DeployAssert/AwsApiCallCloudWatchLogsfilterLogEvents1cdca70f42ea434f1024c5676b866013/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.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js new file mode 100644 index 0000000000000..e24d6abb5e19b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js @@ -0,0 +1 @@ +"use strict";var ue=Object.create;var k=Object.defineProperty;var pe=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 ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S=(e,t)=>{for(var a in t)k(e,a,{get:t[a],enumerable:!0})},W=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&k(e,i,{get:()=>t[i],enumerable:!(r=pe(t,i))||r.enumerable});return e};var M=(e,t,a)=>(a=e!=null?ue(me(e)):{},W(t||!e||!e.__esModule?k(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>W(k({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?Se.decode(e.buffer):e}function B(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 V(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case P:return t;default:return r}})}function I(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function b(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,p)=>{try{let c=require("https").request(s,u);c.on("error",p),c.write(o),c.end()}catch(c){p(c)}})}function y(e){if(e)return JSON.parse(e)}function E(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var P,Se,D=d(()=>{"use strict";P="PHYSICAL:RESOURCEID:",Se=new TextDecoder});var _={};S(_,{forceSdkInstallation:()=>be,handler:()=>Re});function be(){v=!1}function Ce(){console.log("Installing latest AWS SDK v2"),(0,q.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function he(e){let t=e.apiLoader;return Ae.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(w.readFileSync((0,L.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(w.readFileSync((0,L.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{Ce(),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=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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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 p=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${p}-${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 p=await u[n.action](n.parameters&&V(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...B(p)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=I(i,E(c)):o=i}catch(p){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(p.code))throw p}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var q,w,L,v,Ae,N=d(()=>{"use strict";q=require("child_process"),w=M(require("fs")),L=require("path");D();v=!1;Ae=[]});var j,G=d(()=>{"use strict";j={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"]},clouddirectory:{addfacettoobject:["ObjectAttributeList.*.Value.BinaryValue"],attachtypedlink:["Attributes.*.Value.BinaryValue"],batchread:["Operations.*.GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.EndValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.StartValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue"],batchwrite:["Operations.*.AddFacetToObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.AttachTypedLink.Attributes.*.Value.BinaryValue","Operations.*.CreateObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.DetachTypedLink.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateLinkAttributes.AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","Operations.*.UpdateLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateObjectAttributes.AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],createfacet:["Attributes.*.AttributeDefinition.DefaultValue.BinaryValue"],createobject:["ObjectAttributeList.*.Value.BinaryValue"],createtypedlinkfacet:["Facet.Attributes.*.DefaultValue.BinaryValue"],detachtypedlink:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],getlinkattributes:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],listincomingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],listindex:["RangesOnIndexedValues.*.Range.EndValue.BinaryValue","RangesOnIndexedValues.*.Range.StartValue.BinaryValue"],listoutgoingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],updatefacet:["AttributeUpdates.*.Attribute.AttributeDefinition.DefaultValue.BinaryValue"],updatelinkattributes:["AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],updateobjectattributes:["AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],updatetypedlinkfacet:["AttributeUpdates.*.Attribute.DefaultValue.BinaryValue"]},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"]},dynamodb:{batchexecutestatement:["Statements.*.Parameters.*.B","Statements.*.Parameters.*.BS.*"],batchgetitem:["RequestItems.*.Keys.*.*.B","RequestItems.*.Keys.*.*.BS.*"],batchwriteitem:["RequestItems.*.*.DeleteRequest.Key.*.B","RequestItems.*.*.DeleteRequest.Key.*.BS.*","RequestItems.*.*.PutRequest.Item.*.B","RequestItems.*.*.PutRequest.Item.*.BS.*"],deleteitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"],executestatement:["Parameters.*.B","Parameters.*.BS.*"],executetransaction:["TransactStatements.*.Parameters.*.B","TransactStatements.*.Parameters.*.BS.*"],getitem:["Key.*.B","Key.*.BS.*"],putitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Item.*.B","Item.*.BS.*"],query:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","KeyConditions.*.AttributeValueList.*.B","KeyConditions.*.AttributeValueList.*.BS.*","QueryFilter.*.AttributeValueList.*.B","QueryFilter.*.AttributeValueList.*.BS.*"],scan:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","ScanFilter.*.AttributeValueList.*.B","ScanFilter.*.AttributeValueList.*.BS.*"],transactgetitems:["TransactItems.*.Get.Key.*.B","TransactItems.*.Get.Key.*.BS.*"],transactwriteitems:["TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.B","TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.BS.*","TransactItems.*.ConditionCheck.Key.*.B","TransactItems.*.ConditionCheck.Key.*.BS.*","TransactItems.*.Delete.ExpressionAttributeValues.*.B","TransactItems.*.Delete.ExpressionAttributeValues.*.BS.*","TransactItems.*.Delete.Key.*.B","TransactItems.*.Delete.Key.*.BS.*","TransactItems.*.Put.ExpressionAttributeValues.*.B","TransactItems.*.Put.ExpressionAttributeValues.*.BS.*","TransactItems.*.Put.Item.*.B","TransactItems.*.Put.Item.*.BS.*","TransactItems.*.Update.ExpressionAttributeValues.*.B","TransactItems.*.Update.ExpressionAttributeValues.*.BS.*","TransactItems.*.Update.Key.*.B","TransactItems.*.Update.Key.*.BS.*"],updateitem:["AttributeUpdates.*.Value.B","AttributeUpdates.*.Value.BS.*","Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"]},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"]},frauddetector:{geteventprediction:["externalModelEndpointDataBlobs.*.byteBuffer"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.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","ImportToken"],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"],startconversation:["requestEventStream.AudioInputEvent.audioChunk"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},"medical-imaging":{updateimagesetmetadata:["updateImageSetMetadataUpdates.DICOMUpdates.removableAttributes","updateImageSetMetadataUpdates.DICOMUpdates.updatableAttributes"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},"rds-data":{batchexecutestatement:["parameterSets.*.*.value.blobValue"],executestatement:["parameters.*.value.blobValue"]},rekognition:{comparefaces:["SourceImage.Bytes","TargetImage.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"],startfacelivenesssession:["LivenessRequestStream.VideoEvent.VideoChunk"]},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"]},sns:{publish:["MessageAttributes.*.BinaryValue"],publishbatch:["PublishBatchRequestEntries.*.MessageAttributes.*.BinaryValue"]},sqs:{sendmessage:["MessageAttributes.*.BinaryListValues.*","MessageAttributes.*.BinaryValue","MessageSystemAttributes.*.BinaryListValues.*","MessageSystemAttributes.*.BinaryValue"],sendmessagebatch:["Entries.*.MessageAttributes.*.BinaryListValues.*","Entries.*.MessageAttributes.*.BinaryValue","Entries.*.MessageSystemAttributes.*.BinaryListValues.*","Entries.*.MessageSystemAttributes.*.BinaryValue"]},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"]},transcribe:{startcallanalyticsstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startmedicalstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startstreamtranscription:["AudioStream.AudioEvent.AudioChunk"]},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","DeviceTypeLinux.Logo","DeviceTypeOsx.Logo","DeviceTypeWeb.Logo","DeviceTypeWindows.Logo"]}}});var $={};S($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>A});function ke(e,t,a={}){let r=j?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)A(a,i.split("."));return a}function A(e,t){return t.length===0?Be(e):t[0]==="*"?Array.isArray(e)?e.map(a=>A(a,t.slice(1))):e&&typeof e=="object"?Object.fromEntries(Object.entries(e).map(([a,r])=>[a,A(r,t.slice(1))])):e:(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=A(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 H=d(()=>{"use strict";G()});var z={};S(z,{findV3ClientConstructor:()=>T});function T(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Q,Z=d(()=>{"use strict";Q=["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 O,J=d(()=>{"use strict";Z();O={...Q.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={};S(Y,{getV3ClientPackageName:()=>F});var F,U=d(()=>{"use strict";J();F=e=>{if(e in O)return`@aws-sdk/${O[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={};S(X,{getV3Client:()=>Ie,getV3Command:()=>Ee,loadV3ClientPackage:()=>Ve});function Ve(e){let t=e.startsWith("@aws-sdk/")?e:F(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 Ie(e,t={}){try{let a=T(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Ee(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();U()});var te=ye(l=>{"use strict";var De=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]}),ve=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Me=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Me.coerceApiParametersToUint8Array}});var Pe=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Pe.findV3ClientConstructor}});var we=(U(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return we.getV3ClientPackageName}});ve((ee(),f(X)),l)});var ie={};S(ie,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Te(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`),h={...h,[e]:!0}}async function xe(e,t){let a;try{if(!h[e]&&t==="true")try{Te(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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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,C.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let u;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");u=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let p=(0,C.findV3ClientConstructor)(s),c=new p({apiVersion:i.apiVersion,credentials:u,region:i.region}),K=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=K.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===K.toLowerCase())?.[1],R={};try{let m=await c.send(new ce(i.parameters?(0,C.coerceApiParametersToUint8Array)(n,se,V(i.parameters,r)):{}));R={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...B(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=I(R,E(g)):a=R}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,C,h,re=d(()=>{"use strict";ae=require("child_process"),C=M(te());D();h={}});var Ue={};S(Ue,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>P,handler:()=>Fe,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(Ue);D();function ne(e,t){return(N(),f(_)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Fe(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/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js deleted file mode 100644 index c58c31d67d083..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js +++ /dev/null @@ -1 +0,0 @@ -"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 ec7b6f55b25c4..85fca09ea8868 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": { - "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { + "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff": { "source": { - "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", + "path": "asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", + "objectKey": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "12834f9674e6eb6a21d493a2bf59ca2163e173d070447dcb5e51baf42c063248": { + "a120643ea22c73c81d7c1921ccff45c5ec2ff0a328b2e742a7114d4158bbd777": { "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": "12834f9674e6eb6a21d493a2bf59ca2163e173d070447dcb5e51baf42c063248.json", + "objectKey": "a120643ea22c73c81d7c1921ccff45c5ec2ff0a328b2e742a7114d4158bbd777.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 3975339c10584..dd1a82b17d3b6 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "S3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 e6c9c9296acea..baba8aaa1e80a 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}/12834f9674e6eb6a21d493a2bf59ca2163e173d070447dcb5e51baf42c063248.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a120643ea22c73c81d7c1921ccff45c5ec2ff0a328b2e742a7114d4158bbd777.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 5959275e2565d..cacc86fde0205 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "s3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 651cf697ee07a..6fcdd80bfd76e 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 @@ -1,20 +1,20 @@ { "version": "34.0.0", "files": { - "607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a": { + "4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e": { "source": { - "path": "asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle", + "path": "asset.4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.bundle", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.zip", + "objectKey": "4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "8a7861b5bb664efd900ad03feed27cebdb21fa1859e8a06778d56eb478dcc673": { + "de14931043af4247574fc294ad5da3d7e0043e7db314ef83a1f7c88dd58b66ed": { "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": "8a7861b5bb664efd900ad03feed27cebdb21fa1859e8a06778d56eb478dcc673.json", + "objectKey": "de14931043af4247574fc294ad5da3d7e0043e7db314ef83a1f7c88dd58b66ed.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 33bad42262c78..d6d85f62ded4c 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": "1694180756469" + "salt": "1694346261360" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -87,7 +87,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.zip" + "S3Key": "4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.zip" }, "Timeout": 120, "Handler": "index.handler", @@ -127,7 +127,7 @@ "WaitTimeSeconds": "20" }, "flattenResponse": "false", - "salt": "1694180756470" + "salt": "1694346261361" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js new file mode 100644 index 0000000000000..e24d6abb5e19b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js @@ -0,0 +1 @@ +"use strict";var ue=Object.create;var k=Object.defineProperty;var pe=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 ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S=(e,t)=>{for(var a in t)k(e,a,{get:t[a],enumerable:!0})},W=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&k(e,i,{get:()=>t[i],enumerable:!(r=pe(t,i))||r.enumerable});return e};var M=(e,t,a)=>(a=e!=null?ue(me(e)):{},W(t||!e||!e.__esModule?k(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>W(k({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?Se.decode(e.buffer):e}function B(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 V(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case P:return t;default:return r}})}function I(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function b(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,p)=>{try{let c=require("https").request(s,u);c.on("error",p),c.write(o),c.end()}catch(c){p(c)}})}function y(e){if(e)return JSON.parse(e)}function E(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var P,Se,D=d(()=>{"use strict";P="PHYSICAL:RESOURCEID:",Se=new TextDecoder});var _={};S(_,{forceSdkInstallation:()=>be,handler:()=>Re});function be(){v=!1}function Ce(){console.log("Installing latest AWS SDK v2"),(0,q.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function he(e){let t=e.apiLoader;return Ae.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(w.readFileSync((0,L.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(w.readFileSync((0,L.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{Ce(),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=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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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 p=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${p}-${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 p=await u[n.action](n.parameters&&V(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...B(p)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=I(i,E(c)):o=i}catch(p){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(p.code))throw p}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var q,w,L,v,Ae,N=d(()=>{"use strict";q=require("child_process"),w=M(require("fs")),L=require("path");D();v=!1;Ae=[]});var j,G=d(()=>{"use strict";j={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"]},clouddirectory:{addfacettoobject:["ObjectAttributeList.*.Value.BinaryValue"],attachtypedlink:["Attributes.*.Value.BinaryValue"],batchread:["Operations.*.GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.EndValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.StartValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue"],batchwrite:["Operations.*.AddFacetToObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.AttachTypedLink.Attributes.*.Value.BinaryValue","Operations.*.CreateObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.DetachTypedLink.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateLinkAttributes.AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","Operations.*.UpdateLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateObjectAttributes.AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],createfacet:["Attributes.*.AttributeDefinition.DefaultValue.BinaryValue"],createobject:["ObjectAttributeList.*.Value.BinaryValue"],createtypedlinkfacet:["Facet.Attributes.*.DefaultValue.BinaryValue"],detachtypedlink:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],getlinkattributes:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],listincomingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],listindex:["RangesOnIndexedValues.*.Range.EndValue.BinaryValue","RangesOnIndexedValues.*.Range.StartValue.BinaryValue"],listoutgoingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],updatefacet:["AttributeUpdates.*.Attribute.AttributeDefinition.DefaultValue.BinaryValue"],updatelinkattributes:["AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],updateobjectattributes:["AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],updatetypedlinkfacet:["AttributeUpdates.*.Attribute.DefaultValue.BinaryValue"]},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"]},dynamodb:{batchexecutestatement:["Statements.*.Parameters.*.B","Statements.*.Parameters.*.BS.*"],batchgetitem:["RequestItems.*.Keys.*.*.B","RequestItems.*.Keys.*.*.BS.*"],batchwriteitem:["RequestItems.*.*.DeleteRequest.Key.*.B","RequestItems.*.*.DeleteRequest.Key.*.BS.*","RequestItems.*.*.PutRequest.Item.*.B","RequestItems.*.*.PutRequest.Item.*.BS.*"],deleteitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"],executestatement:["Parameters.*.B","Parameters.*.BS.*"],executetransaction:["TransactStatements.*.Parameters.*.B","TransactStatements.*.Parameters.*.BS.*"],getitem:["Key.*.B","Key.*.BS.*"],putitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Item.*.B","Item.*.BS.*"],query:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","KeyConditions.*.AttributeValueList.*.B","KeyConditions.*.AttributeValueList.*.BS.*","QueryFilter.*.AttributeValueList.*.B","QueryFilter.*.AttributeValueList.*.BS.*"],scan:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","ScanFilter.*.AttributeValueList.*.B","ScanFilter.*.AttributeValueList.*.BS.*"],transactgetitems:["TransactItems.*.Get.Key.*.B","TransactItems.*.Get.Key.*.BS.*"],transactwriteitems:["TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.B","TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.BS.*","TransactItems.*.ConditionCheck.Key.*.B","TransactItems.*.ConditionCheck.Key.*.BS.*","TransactItems.*.Delete.ExpressionAttributeValues.*.B","TransactItems.*.Delete.ExpressionAttributeValues.*.BS.*","TransactItems.*.Delete.Key.*.B","TransactItems.*.Delete.Key.*.BS.*","TransactItems.*.Put.ExpressionAttributeValues.*.B","TransactItems.*.Put.ExpressionAttributeValues.*.BS.*","TransactItems.*.Put.Item.*.B","TransactItems.*.Put.Item.*.BS.*","TransactItems.*.Update.ExpressionAttributeValues.*.B","TransactItems.*.Update.ExpressionAttributeValues.*.BS.*","TransactItems.*.Update.Key.*.B","TransactItems.*.Update.Key.*.BS.*"],updateitem:["AttributeUpdates.*.Value.B","AttributeUpdates.*.Value.BS.*","Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"]},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"]},frauddetector:{geteventprediction:["externalModelEndpointDataBlobs.*.byteBuffer"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.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","ImportToken"],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"],startconversation:["requestEventStream.AudioInputEvent.audioChunk"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},"medical-imaging":{updateimagesetmetadata:["updateImageSetMetadataUpdates.DICOMUpdates.removableAttributes","updateImageSetMetadataUpdates.DICOMUpdates.updatableAttributes"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},"rds-data":{batchexecutestatement:["parameterSets.*.*.value.blobValue"],executestatement:["parameters.*.value.blobValue"]},rekognition:{comparefaces:["SourceImage.Bytes","TargetImage.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"],startfacelivenesssession:["LivenessRequestStream.VideoEvent.VideoChunk"]},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"]},sns:{publish:["MessageAttributes.*.BinaryValue"],publishbatch:["PublishBatchRequestEntries.*.MessageAttributes.*.BinaryValue"]},sqs:{sendmessage:["MessageAttributes.*.BinaryListValues.*","MessageAttributes.*.BinaryValue","MessageSystemAttributes.*.BinaryListValues.*","MessageSystemAttributes.*.BinaryValue"],sendmessagebatch:["Entries.*.MessageAttributes.*.BinaryListValues.*","Entries.*.MessageAttributes.*.BinaryValue","Entries.*.MessageSystemAttributes.*.BinaryListValues.*","Entries.*.MessageSystemAttributes.*.BinaryValue"]},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"]},transcribe:{startcallanalyticsstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startmedicalstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startstreamtranscription:["AudioStream.AudioEvent.AudioChunk"]},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","DeviceTypeLinux.Logo","DeviceTypeOsx.Logo","DeviceTypeWeb.Logo","DeviceTypeWindows.Logo"]}}});var $={};S($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>A});function ke(e,t,a={}){let r=j?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)A(a,i.split("."));return a}function A(e,t){return t.length===0?Be(e):t[0]==="*"?Array.isArray(e)?e.map(a=>A(a,t.slice(1))):e&&typeof e=="object"?Object.fromEntries(Object.entries(e).map(([a,r])=>[a,A(r,t.slice(1))])):e:(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=A(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 H=d(()=>{"use strict";G()});var z={};S(z,{findV3ClientConstructor:()=>T});function T(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Q,Z=d(()=>{"use strict";Q=["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 O,J=d(()=>{"use strict";Z();O={...Q.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={};S(Y,{getV3ClientPackageName:()=>F});var F,U=d(()=>{"use strict";J();F=e=>{if(e in O)return`@aws-sdk/${O[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={};S(X,{getV3Client:()=>Ie,getV3Command:()=>Ee,loadV3ClientPackage:()=>Ve});function Ve(e){let t=e.startsWith("@aws-sdk/")?e:F(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 Ie(e,t={}){try{let a=T(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Ee(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();U()});var te=ye(l=>{"use strict";var De=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]}),ve=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Me=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Me.coerceApiParametersToUint8Array}});var Pe=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Pe.findV3ClientConstructor}});var we=(U(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return we.getV3ClientPackageName}});ve((ee(),f(X)),l)});var ie={};S(ie,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Te(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`),h={...h,[e]:!0}}async function xe(e,t){let a;try{if(!h[e]&&t==="true")try{Te(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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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,C.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let u;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");u=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let p=(0,C.findV3ClientConstructor)(s),c=new p({apiVersion:i.apiVersion,credentials:u,region:i.region}),K=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=K.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===K.toLowerCase())?.[1],R={};try{let m=await c.send(new ce(i.parameters?(0,C.coerceApiParametersToUint8Array)(n,se,V(i.parameters,r)):{}));R={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...B(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=I(R,E(g)):a=R}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,C,h,re=d(()=>{"use strict";ae=require("child_process"),C=M(te());D();h={}});var Ue={};S(Ue,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>P,handler:()=>Fe,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(Ue);D();function ne(e,t){return(N(),f(_)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Fe(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/asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/asset.4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.bundle/index.js similarity index 99% rename from packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/asset.4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.bundle/index.js index 64c53ea7b530a..7168b5c96421a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle/index.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/asset.4920d7f270a7150e7305b6c28fff3d8c553189aa146d2243f544143ce994939e.bundle/index.js @@ -30945,6 +30945,72 @@ var init_parameter_types = __esm({ "InlineChunk" ] }, + "clouddirectory": { + "addfacettoobject": [ + "ObjectAttributeList.*.Value.BinaryValue" + ], + "attachtypedlink": [ + "Attributes.*.Value.BinaryValue" + ], + "batchread": [ + "Operations.*.GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue", + "Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue", + "Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue", + "Operations.*.ListIndex.RangesOnIndexedValues.*.Range.EndValue.BinaryValue", + "Operations.*.ListIndex.RangesOnIndexedValues.*.Range.StartValue.BinaryValue", + "Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue", + "Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue" + ], + "batchwrite": [ + "Operations.*.AddFacetToObject.ObjectAttributeList.*.Value.BinaryValue", + "Operations.*.AttachTypedLink.Attributes.*.Value.BinaryValue", + "Operations.*.CreateObject.ObjectAttributeList.*.Value.BinaryValue", + "Operations.*.DetachTypedLink.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue", + "Operations.*.UpdateLinkAttributes.AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue", + "Operations.*.UpdateLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue", + "Operations.*.UpdateObjectAttributes.AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue" + ], + "createfacet": [ + "Attributes.*.AttributeDefinition.DefaultValue.BinaryValue" + ], + "createobject": [ + "ObjectAttributeList.*.Value.BinaryValue" + ], + "createtypedlinkfacet": [ + "Facet.Attributes.*.DefaultValue.BinaryValue" + ], + "detachtypedlink": [ + "TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue" + ], + "getlinkattributes": [ + "TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue" + ], + "listincomingtypedlinks": [ + "FilterAttributeRanges.*.Range.EndValue.BinaryValue", + "FilterAttributeRanges.*.Range.StartValue.BinaryValue" + ], + "listindex": [ + "RangesOnIndexedValues.*.Range.EndValue.BinaryValue", + "RangesOnIndexedValues.*.Range.StartValue.BinaryValue" + ], + "listoutgoingtypedlinks": [ + "FilterAttributeRanges.*.Range.EndValue.BinaryValue", + "FilterAttributeRanges.*.Range.StartValue.BinaryValue" + ], + "updatefacet": [ + "AttributeUpdates.*.Attribute.AttributeDefinition.DefaultValue.BinaryValue" + ], + "updatelinkattributes": [ + "AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue", + "TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue" + ], + "updateobjectattributes": [ + "AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue" + ], + "updatetypedlinkfacet": [ + "AttributeUpdates.*.Attribute.DefaultValue.BinaryValue" + ] + }, "cloudfront": { "createfunction": [ "FunctionCode" @@ -31023,6 +31089,106 @@ var init_parameter_types = __esm({ "CertificateWallet" ] }, + "dynamodb": { + "batchexecutestatement": [ + "Statements.*.Parameters.*.B", + "Statements.*.Parameters.*.BS.*" + ], + "batchgetitem": [ + "RequestItems.*.Keys.*.*.B", + "RequestItems.*.Keys.*.*.BS.*" + ], + "batchwriteitem": [ + "RequestItems.*.*.DeleteRequest.Key.*.B", + "RequestItems.*.*.DeleteRequest.Key.*.BS.*", + "RequestItems.*.*.PutRequest.Item.*.B", + "RequestItems.*.*.PutRequest.Item.*.BS.*" + ], + "deleteitem": [ + "Expected.*.AttributeValueList.*.B", + "Expected.*.AttributeValueList.*.BS.*", + "Expected.*.Value.B", + "Expected.*.Value.BS.*", + "ExpressionAttributeValues.*.B", + "ExpressionAttributeValues.*.BS.*", + "Key.*.B", + "Key.*.BS.*" + ], + "executestatement": [ + "Parameters.*.B", + "Parameters.*.BS.*" + ], + "executetransaction": [ + "TransactStatements.*.Parameters.*.B", + "TransactStatements.*.Parameters.*.BS.*" + ], + "getitem": [ + "Key.*.B", + "Key.*.BS.*" + ], + "putitem": [ + "Expected.*.AttributeValueList.*.B", + "Expected.*.AttributeValueList.*.BS.*", + "Expected.*.Value.B", + "Expected.*.Value.BS.*", + "ExpressionAttributeValues.*.B", + "ExpressionAttributeValues.*.BS.*", + "Item.*.B", + "Item.*.BS.*" + ], + "query": [ + "ExclusiveStartKey.*.B", + "ExclusiveStartKey.*.BS.*", + "ExpressionAttributeValues.*.B", + "ExpressionAttributeValues.*.BS.*", + "KeyConditions.*.AttributeValueList.*.B", + "KeyConditions.*.AttributeValueList.*.BS.*", + "QueryFilter.*.AttributeValueList.*.B", + "QueryFilter.*.AttributeValueList.*.BS.*" + ], + "scan": [ + "ExclusiveStartKey.*.B", + "ExclusiveStartKey.*.BS.*", + "ExpressionAttributeValues.*.B", + "ExpressionAttributeValues.*.BS.*", + "ScanFilter.*.AttributeValueList.*.B", + "ScanFilter.*.AttributeValueList.*.BS.*" + ], + "transactgetitems": [ + "TransactItems.*.Get.Key.*.B", + "TransactItems.*.Get.Key.*.BS.*" + ], + "transactwriteitems": [ + "TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.B", + "TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.BS.*", + "TransactItems.*.ConditionCheck.Key.*.B", + "TransactItems.*.ConditionCheck.Key.*.BS.*", + "TransactItems.*.Delete.ExpressionAttributeValues.*.B", + "TransactItems.*.Delete.ExpressionAttributeValues.*.BS.*", + "TransactItems.*.Delete.Key.*.B", + "TransactItems.*.Delete.Key.*.BS.*", + "TransactItems.*.Put.ExpressionAttributeValues.*.B", + "TransactItems.*.Put.ExpressionAttributeValues.*.BS.*", + "TransactItems.*.Put.Item.*.B", + "TransactItems.*.Put.Item.*.BS.*", + "TransactItems.*.Update.ExpressionAttributeValues.*.B", + "TransactItems.*.Update.ExpressionAttributeValues.*.BS.*", + "TransactItems.*.Update.Key.*.B", + "TransactItems.*.Update.Key.*.BS.*" + ], + "updateitem": [ + "AttributeUpdates.*.Value.B", + "AttributeUpdates.*.Value.BS.*", + "Expected.*.AttributeValueList.*.B", + "Expected.*.AttributeValueList.*.BS.*", + "Expected.*.Value.B", + "Expected.*.Value.BS.*", + "ExpressionAttributeValues.*.B", + "ExpressionAttributeValues.*.BS.*", + "Key.*.B", + "Key.*.BS.*" + ] + }, "ebs": { "putsnapshotblock": [ "BlockData" @@ -31063,6 +31229,11 @@ var init_parameter_types = __esm({ "Records.*.Data" ] }, + "frauddetector": { + "geteventprediction": [ + "externalModelEndpointDataBlobs.*.byteBuffer" + ] + }, "gamelift": { "createscript": [ "ZipFile" @@ -31086,10 +31257,12 @@ var init_parameter_types = __esm({ }, "glue": { "updatecolumnstatisticsforpartition": [ - "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue" + "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue", + "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue" ], "updatecolumnstatisticsfortable": [ - "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue" + "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue", + "ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue" ] }, "greengrass": { @@ -31189,7 +31362,8 @@ var init_parameter_types = __esm({ "Recipient.AttestationDocument" ], "importkeymaterial": [ - "EncryptedKeyMaterial" + "EncryptedKeyMaterial", + "ImportToken" ], "reencrypt": [ "CiphertextBlob" @@ -31235,6 +31409,9 @@ var init_parameter_types = __esm({ ], "recognizeutterance": [ "inputStream" + ], + "startconversation": [ + "requestEventStream.AudioInputEvent.audioChunk" ] }, "lookoutvision": { @@ -31250,6 +31427,12 @@ var init_parameter_types = __esm({ "Body" ] }, + "medical-imaging": { + "updateimagesetmetadata": [ + "updateImageSetMetadataUpdates.DICOMUpdates.removableAttributes", + "updateImageSetMetadataUpdates.DICOMUpdates.updatableAttributes" + ] + }, "mobiletargeting": { "sendmessages": [ "MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data" @@ -31269,9 +31452,18 @@ var init_parameter_types = __esm({ "AssetBundleImportSource.Body" ] }, + "rds-data": { + "batchexecutestatement": [ + "parameterSets.*.*.value.blobValue" + ], + "executestatement": [ + "parameters.*.value.blobValue" + ] + }, "rekognition": { "comparefaces": [ - "SourceImage.Bytes" + "SourceImage.Bytes", + "TargetImage.Bytes" ], "detectcustomlabels": [ "Image.Bytes" @@ -31305,6 +31497,9 @@ var init_parameter_types = __esm({ ], "updatedatasetentries": [ "Changes.GroundTruth" + ], + "startfacelivenesssession": [ + "LivenessRequestStream.VideoEvent.VideoChunk" ] }, "s3": { @@ -31355,6 +31550,28 @@ var init_parameter_types = __esm({ "payload" ] }, + "sns": { + "publish": [ + "MessageAttributes.*.BinaryValue" + ], + "publishbatch": [ + "PublishBatchRequestEntries.*.MessageAttributes.*.BinaryValue" + ] + }, + "sqs": { + "sendmessage": [ + "MessageAttributes.*.BinaryListValues.*", + "MessageAttributes.*.BinaryValue", + "MessageSystemAttributes.*.BinaryListValues.*", + "MessageSystemAttributes.*.BinaryValue" + ], + "sendmessagebatch": [ + "Entries.*.MessageAttributes.*.BinaryListValues.*", + "Entries.*.MessageAttributes.*.BinaryValue", + "Entries.*.MessageSystemAttributes.*.BinaryListValues.*", + "Entries.*.MessageSystemAttributes.*.BinaryValue" + ] + }, "ssm": { "registertaskwithmaintenancewindow": [ "TaskInvocationParameters.Lambda.Payload" @@ -31390,6 +31607,17 @@ var init_parameter_types = __esm({ "Document.Bytes" ] }, + "transcribe": { + "startcallanalyticsstreamtranscription": [ + "AudioStream.AudioEvent.AudioChunk" + ], + "startmedicalstreamtranscription": [ + "AudioStream.AudioEvent.AudioChunk" + ], + "startstreamtranscription": [ + "AudioStream.AudioEvent.AudioChunk" + ] + }, "translate": { "importterminology": [ "TerminologyData.File" @@ -31430,7 +31658,11 @@ var init_parameter_types = __esm({ "DeviceTypeAndroid.Logo", "DeviceTypeIos.Logo", "DeviceTypeIos.Logo2x", - "DeviceTypeIos.Logo3x" + "DeviceTypeIos.Logo3x", + "DeviceTypeLinux.Logo", + "DeviceTypeOsx.Logo", + "DeviceTypeWeb.Logo", + "DeviceTypeWindows.Logo" ] } }; @@ -31454,8 +31686,14 @@ function coerceToUint8Array(obj, path) { if (path.length === 0) { return coerceValueToUint8Array(obj); } - if (path[0] === "*" && Array.isArray(obj)) { - return obj.map((e) => coerceToUint8Array(e, path.slice(1))); + if (path[0] === "*") { + if (Array.isArray(obj)) { + return obj.map((e) => coerceToUint8Array(e, path.slice(1))); + } + if (obj && typeof obj === "object") { + return Object.fromEntries(Object.entries(obj).map(([key, value]) => [key, coerceToUint8Array(value, path.slice(1))])); + } + return obj; } if (obj && typeof obj === "object") { if (path[0] in obj) { 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 deleted file mode 100644 index c58c31d67d083..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js +++ /dev/null @@ -1 +0,0 @@ -"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 f050421f4c6c6..282427cc48ecc 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": { - "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { + "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff": { "source": { - "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", + "path": "asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", + "objectKey": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "55526b0b8f05403660c8987e0033c13275cd95a5b5b8615789245e9c76cb6836": { + "a69f1c7c88992348ab7e9feb3fa62e8a5c8fc803cca89191334bf7e72e1c67d3": { "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": "55526b0b8f05403660c8987e0033c13275cd95a5b5b8615789245e9c76cb6836.json", + "objectKey": "a69f1c7c88992348ab7e9feb3fa62e8a5c8fc803cca89191334bf7e72e1c67d3.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 724603976d7f9..0f351ec127ed9 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "S3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 746a974418d2a..abc9df4507a71 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}/55526b0b8f05403660c8987e0033c13275cd95a5b5b8615789245e9c76cb6836.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a69f1c7c88992348ab7e9feb3fa62e8a5c8fc803cca89191334bf7e72e1c67d3.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}/8a7861b5bb664efd900ad03feed27cebdb21fa1859e8a06778d56eb478dcc673.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/de14931043af4247574fc294ad5da3d7e0043e7db314ef83a1f7c88dd58b66ed.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 51d21b694f445..bfff1ef0e0b0d 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "s3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js new file mode 100644 index 0000000000000..e24d6abb5e19b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js @@ -0,0 +1 @@ +"use strict";var ue=Object.create;var k=Object.defineProperty;var pe=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 ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S=(e,t)=>{for(var a in t)k(e,a,{get:t[a],enumerable:!0})},W=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&k(e,i,{get:()=>t[i],enumerable:!(r=pe(t,i))||r.enumerable});return e};var M=(e,t,a)=>(a=e!=null?ue(me(e)):{},W(t||!e||!e.__esModule?k(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>W(k({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?Se.decode(e.buffer):e}function B(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 V(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case P:return t;default:return r}})}function I(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function b(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,p)=>{try{let c=require("https").request(s,u);c.on("error",p),c.write(o),c.end()}catch(c){p(c)}})}function y(e){if(e)return JSON.parse(e)}function E(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var P,Se,D=d(()=>{"use strict";P="PHYSICAL:RESOURCEID:",Se=new TextDecoder});var _={};S(_,{forceSdkInstallation:()=>be,handler:()=>Re});function be(){v=!1}function Ce(){console.log("Installing latest AWS SDK v2"),(0,q.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function he(e){let t=e.apiLoader;return Ae.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(w.readFileSync((0,L.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(w.readFileSync((0,L.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{Ce(),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=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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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 p=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${p}-${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 p=await u[n.action](n.parameters&&V(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...B(p)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=I(i,E(c)):o=i}catch(p){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(p.code))throw p}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var q,w,L,v,Ae,N=d(()=>{"use strict";q=require("child_process"),w=M(require("fs")),L=require("path");D();v=!1;Ae=[]});var j,G=d(()=>{"use strict";j={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"]},clouddirectory:{addfacettoobject:["ObjectAttributeList.*.Value.BinaryValue"],attachtypedlink:["Attributes.*.Value.BinaryValue"],batchread:["Operations.*.GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.EndValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.StartValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue"],batchwrite:["Operations.*.AddFacetToObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.AttachTypedLink.Attributes.*.Value.BinaryValue","Operations.*.CreateObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.DetachTypedLink.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateLinkAttributes.AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","Operations.*.UpdateLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateObjectAttributes.AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],createfacet:["Attributes.*.AttributeDefinition.DefaultValue.BinaryValue"],createobject:["ObjectAttributeList.*.Value.BinaryValue"],createtypedlinkfacet:["Facet.Attributes.*.DefaultValue.BinaryValue"],detachtypedlink:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],getlinkattributes:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],listincomingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],listindex:["RangesOnIndexedValues.*.Range.EndValue.BinaryValue","RangesOnIndexedValues.*.Range.StartValue.BinaryValue"],listoutgoingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],updatefacet:["AttributeUpdates.*.Attribute.AttributeDefinition.DefaultValue.BinaryValue"],updatelinkattributes:["AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],updateobjectattributes:["AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],updatetypedlinkfacet:["AttributeUpdates.*.Attribute.DefaultValue.BinaryValue"]},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"]},dynamodb:{batchexecutestatement:["Statements.*.Parameters.*.B","Statements.*.Parameters.*.BS.*"],batchgetitem:["RequestItems.*.Keys.*.*.B","RequestItems.*.Keys.*.*.BS.*"],batchwriteitem:["RequestItems.*.*.DeleteRequest.Key.*.B","RequestItems.*.*.DeleteRequest.Key.*.BS.*","RequestItems.*.*.PutRequest.Item.*.B","RequestItems.*.*.PutRequest.Item.*.BS.*"],deleteitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"],executestatement:["Parameters.*.B","Parameters.*.BS.*"],executetransaction:["TransactStatements.*.Parameters.*.B","TransactStatements.*.Parameters.*.BS.*"],getitem:["Key.*.B","Key.*.BS.*"],putitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Item.*.B","Item.*.BS.*"],query:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","KeyConditions.*.AttributeValueList.*.B","KeyConditions.*.AttributeValueList.*.BS.*","QueryFilter.*.AttributeValueList.*.B","QueryFilter.*.AttributeValueList.*.BS.*"],scan:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","ScanFilter.*.AttributeValueList.*.B","ScanFilter.*.AttributeValueList.*.BS.*"],transactgetitems:["TransactItems.*.Get.Key.*.B","TransactItems.*.Get.Key.*.BS.*"],transactwriteitems:["TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.B","TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.BS.*","TransactItems.*.ConditionCheck.Key.*.B","TransactItems.*.ConditionCheck.Key.*.BS.*","TransactItems.*.Delete.ExpressionAttributeValues.*.B","TransactItems.*.Delete.ExpressionAttributeValues.*.BS.*","TransactItems.*.Delete.Key.*.B","TransactItems.*.Delete.Key.*.BS.*","TransactItems.*.Put.ExpressionAttributeValues.*.B","TransactItems.*.Put.ExpressionAttributeValues.*.BS.*","TransactItems.*.Put.Item.*.B","TransactItems.*.Put.Item.*.BS.*","TransactItems.*.Update.ExpressionAttributeValues.*.B","TransactItems.*.Update.ExpressionAttributeValues.*.BS.*","TransactItems.*.Update.Key.*.B","TransactItems.*.Update.Key.*.BS.*"],updateitem:["AttributeUpdates.*.Value.B","AttributeUpdates.*.Value.BS.*","Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"]},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"]},frauddetector:{geteventprediction:["externalModelEndpointDataBlobs.*.byteBuffer"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.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","ImportToken"],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"],startconversation:["requestEventStream.AudioInputEvent.audioChunk"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},"medical-imaging":{updateimagesetmetadata:["updateImageSetMetadataUpdates.DICOMUpdates.removableAttributes","updateImageSetMetadataUpdates.DICOMUpdates.updatableAttributes"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},"rds-data":{batchexecutestatement:["parameterSets.*.*.value.blobValue"],executestatement:["parameters.*.value.blobValue"]},rekognition:{comparefaces:["SourceImage.Bytes","TargetImage.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"],startfacelivenesssession:["LivenessRequestStream.VideoEvent.VideoChunk"]},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"]},sns:{publish:["MessageAttributes.*.BinaryValue"],publishbatch:["PublishBatchRequestEntries.*.MessageAttributes.*.BinaryValue"]},sqs:{sendmessage:["MessageAttributes.*.BinaryListValues.*","MessageAttributes.*.BinaryValue","MessageSystemAttributes.*.BinaryListValues.*","MessageSystemAttributes.*.BinaryValue"],sendmessagebatch:["Entries.*.MessageAttributes.*.BinaryListValues.*","Entries.*.MessageAttributes.*.BinaryValue","Entries.*.MessageSystemAttributes.*.BinaryListValues.*","Entries.*.MessageSystemAttributes.*.BinaryValue"]},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"]},transcribe:{startcallanalyticsstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startmedicalstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startstreamtranscription:["AudioStream.AudioEvent.AudioChunk"]},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","DeviceTypeLinux.Logo","DeviceTypeOsx.Logo","DeviceTypeWeb.Logo","DeviceTypeWindows.Logo"]}}});var $={};S($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>A});function ke(e,t,a={}){let r=j?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)A(a,i.split("."));return a}function A(e,t){return t.length===0?Be(e):t[0]==="*"?Array.isArray(e)?e.map(a=>A(a,t.slice(1))):e&&typeof e=="object"?Object.fromEntries(Object.entries(e).map(([a,r])=>[a,A(r,t.slice(1))])):e:(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=A(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 H=d(()=>{"use strict";G()});var z={};S(z,{findV3ClientConstructor:()=>T});function T(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Q,Z=d(()=>{"use strict";Q=["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 O,J=d(()=>{"use strict";Z();O={...Q.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={};S(Y,{getV3ClientPackageName:()=>F});var F,U=d(()=>{"use strict";J();F=e=>{if(e in O)return`@aws-sdk/${O[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={};S(X,{getV3Client:()=>Ie,getV3Command:()=>Ee,loadV3ClientPackage:()=>Ve});function Ve(e){let t=e.startsWith("@aws-sdk/")?e:F(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 Ie(e,t={}){try{let a=T(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Ee(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();U()});var te=ye(l=>{"use strict";var De=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]}),ve=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Me=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Me.coerceApiParametersToUint8Array}});var Pe=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Pe.findV3ClientConstructor}});var we=(U(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return we.getV3ClientPackageName}});ve((ee(),f(X)),l)});var ie={};S(ie,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Te(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`),h={...h,[e]:!0}}async function xe(e,t){let a;try{if(!h[e]&&t==="true")try{Te(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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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,C.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let u;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");u=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let p=(0,C.findV3ClientConstructor)(s),c=new p({apiVersion:i.apiVersion,credentials:u,region:i.region}),K=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=K.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===K.toLowerCase())?.[1],R={};try{let m=await c.send(new ce(i.parameters?(0,C.coerceApiParametersToUint8Array)(n,se,V(i.parameters,r)):{}));R={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...B(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=I(R,E(g)):a=R}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,C,h,re=d(()=>{"use strict";ae=require("child_process"),C=M(te());D();h={}});var Ue={};S(Ue,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>P,handler:()=>Fe,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(Ue);D();function ne(e,t){return(N(),f(_)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Fe(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/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 deleted file mode 100644 index c58c31d67d083..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js +++ /dev/null @@ -1 +0,0 @@ -"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 acf732a1f56d6..3b940cd656e5f 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": { - "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { + "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff": { "source": { - "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", + "path": "asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", + "objectKey": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "951d0b1661534d9e99c72323ca20fe80125cc6aefce6f2b6f05f2046d8b85cee": { + "75bc7afb2f89b775af5439c60111b488caaee08955c17b2d3e706b5a40fd0a23": { "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": "951d0b1661534d9e99c72323ca20fe80125cc6aefce6f2b6f05f2046d8b85cee.json", + "objectKey": "75bc7afb2f89b775af5439c60111b488caaee08955c17b2d3e706b5a40fd0a23.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 f323ff2a7ea74..538a03b27bd45 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "S3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 1f35930106975..af21725228f54 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}/951d0b1661534d9e99c72323ca20fe80125cc6aefce6f2b6f05f2046d8b85cee.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/75bc7afb2f89b775af5439c60111b488caaee08955c17b2d3e706b5a40fd0a23.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 b036074cbdfb4..ad69a3909f70b 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "s3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip" }, "handler": "index.handler", "role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js new file mode 100644 index 0000000000000..e24d6abb5e19b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js @@ -0,0 +1 @@ +"use strict";var ue=Object.create;var k=Object.defineProperty;var pe=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 ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S=(e,t)=>{for(var a in t)k(e,a,{get:t[a],enumerable:!0})},W=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&k(e,i,{get:()=>t[i],enumerable:!(r=pe(t,i))||r.enumerable});return e};var M=(e,t,a)=>(a=e!=null?ue(me(e)):{},W(t||!e||!e.__esModule?k(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>W(k({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?Se.decode(e.buffer):e}function B(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 V(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case P:return t;default:return r}})}function I(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function b(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,p)=>{try{let c=require("https").request(s,u);c.on("error",p),c.write(o),c.end()}catch(c){p(c)}})}function y(e){if(e)return JSON.parse(e)}function E(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var P,Se,D=d(()=>{"use strict";P="PHYSICAL:RESOURCEID:",Se=new TextDecoder});var _={};S(_,{forceSdkInstallation:()=>be,handler:()=>Re});function be(){v=!1}function Ce(){console.log("Installing latest AWS SDK v2"),(0,q.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function he(e){let t=e.apiLoader;return Ae.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(w.readFileSync((0,L.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(w.readFileSync((0,L.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{Ce(),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=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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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 p=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${p}-${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 p=await u[n.action](n.parameters&&V(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...B(p)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=I(i,E(c)):o=i}catch(p){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(p.code))throw p}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var q,w,L,v,Ae,N=d(()=>{"use strict";q=require("child_process"),w=M(require("fs")),L=require("path");D();v=!1;Ae=[]});var j,G=d(()=>{"use strict";j={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"]},clouddirectory:{addfacettoobject:["ObjectAttributeList.*.Value.BinaryValue"],attachtypedlink:["Attributes.*.Value.BinaryValue"],batchread:["Operations.*.GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.EndValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.StartValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue"],batchwrite:["Operations.*.AddFacetToObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.AttachTypedLink.Attributes.*.Value.BinaryValue","Operations.*.CreateObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.DetachTypedLink.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateLinkAttributes.AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","Operations.*.UpdateLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateObjectAttributes.AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],createfacet:["Attributes.*.AttributeDefinition.DefaultValue.BinaryValue"],createobject:["ObjectAttributeList.*.Value.BinaryValue"],createtypedlinkfacet:["Facet.Attributes.*.DefaultValue.BinaryValue"],detachtypedlink:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],getlinkattributes:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],listincomingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],listindex:["RangesOnIndexedValues.*.Range.EndValue.BinaryValue","RangesOnIndexedValues.*.Range.StartValue.BinaryValue"],listoutgoingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],updatefacet:["AttributeUpdates.*.Attribute.AttributeDefinition.DefaultValue.BinaryValue"],updatelinkattributes:["AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],updateobjectattributes:["AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],updatetypedlinkfacet:["AttributeUpdates.*.Attribute.DefaultValue.BinaryValue"]},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"]},dynamodb:{batchexecutestatement:["Statements.*.Parameters.*.B","Statements.*.Parameters.*.BS.*"],batchgetitem:["RequestItems.*.Keys.*.*.B","RequestItems.*.Keys.*.*.BS.*"],batchwriteitem:["RequestItems.*.*.DeleteRequest.Key.*.B","RequestItems.*.*.DeleteRequest.Key.*.BS.*","RequestItems.*.*.PutRequest.Item.*.B","RequestItems.*.*.PutRequest.Item.*.BS.*"],deleteitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"],executestatement:["Parameters.*.B","Parameters.*.BS.*"],executetransaction:["TransactStatements.*.Parameters.*.B","TransactStatements.*.Parameters.*.BS.*"],getitem:["Key.*.B","Key.*.BS.*"],putitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Item.*.B","Item.*.BS.*"],query:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","KeyConditions.*.AttributeValueList.*.B","KeyConditions.*.AttributeValueList.*.BS.*","QueryFilter.*.AttributeValueList.*.B","QueryFilter.*.AttributeValueList.*.BS.*"],scan:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","ScanFilter.*.AttributeValueList.*.B","ScanFilter.*.AttributeValueList.*.BS.*"],transactgetitems:["TransactItems.*.Get.Key.*.B","TransactItems.*.Get.Key.*.BS.*"],transactwriteitems:["TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.B","TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.BS.*","TransactItems.*.ConditionCheck.Key.*.B","TransactItems.*.ConditionCheck.Key.*.BS.*","TransactItems.*.Delete.ExpressionAttributeValues.*.B","TransactItems.*.Delete.ExpressionAttributeValues.*.BS.*","TransactItems.*.Delete.Key.*.B","TransactItems.*.Delete.Key.*.BS.*","TransactItems.*.Put.ExpressionAttributeValues.*.B","TransactItems.*.Put.ExpressionAttributeValues.*.BS.*","TransactItems.*.Put.Item.*.B","TransactItems.*.Put.Item.*.BS.*","TransactItems.*.Update.ExpressionAttributeValues.*.B","TransactItems.*.Update.ExpressionAttributeValues.*.BS.*","TransactItems.*.Update.Key.*.B","TransactItems.*.Update.Key.*.BS.*"],updateitem:["AttributeUpdates.*.Value.B","AttributeUpdates.*.Value.BS.*","Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"]},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"]},frauddetector:{geteventprediction:["externalModelEndpointDataBlobs.*.byteBuffer"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.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","ImportToken"],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"],startconversation:["requestEventStream.AudioInputEvent.audioChunk"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},"medical-imaging":{updateimagesetmetadata:["updateImageSetMetadataUpdates.DICOMUpdates.removableAttributes","updateImageSetMetadataUpdates.DICOMUpdates.updatableAttributes"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},"rds-data":{batchexecutestatement:["parameterSets.*.*.value.blobValue"],executestatement:["parameters.*.value.blobValue"]},rekognition:{comparefaces:["SourceImage.Bytes","TargetImage.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"],startfacelivenesssession:["LivenessRequestStream.VideoEvent.VideoChunk"]},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"]},sns:{publish:["MessageAttributes.*.BinaryValue"],publishbatch:["PublishBatchRequestEntries.*.MessageAttributes.*.BinaryValue"]},sqs:{sendmessage:["MessageAttributes.*.BinaryListValues.*","MessageAttributes.*.BinaryValue","MessageSystemAttributes.*.BinaryListValues.*","MessageSystemAttributes.*.BinaryValue"],sendmessagebatch:["Entries.*.MessageAttributes.*.BinaryListValues.*","Entries.*.MessageAttributes.*.BinaryValue","Entries.*.MessageSystemAttributes.*.BinaryListValues.*","Entries.*.MessageSystemAttributes.*.BinaryValue"]},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"]},transcribe:{startcallanalyticsstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startmedicalstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startstreamtranscription:["AudioStream.AudioEvent.AudioChunk"]},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","DeviceTypeLinux.Logo","DeviceTypeOsx.Logo","DeviceTypeWeb.Logo","DeviceTypeWindows.Logo"]}}});var $={};S($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>A});function ke(e,t,a={}){let r=j?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)A(a,i.split("."));return a}function A(e,t){return t.length===0?Be(e):t[0]==="*"?Array.isArray(e)?e.map(a=>A(a,t.slice(1))):e&&typeof e=="object"?Object.fromEntries(Object.entries(e).map(([a,r])=>[a,A(r,t.slice(1))])):e:(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=A(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 H=d(()=>{"use strict";G()});var z={};S(z,{findV3ClientConstructor:()=>T});function T(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Q,Z=d(()=>{"use strict";Q=["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 O,J=d(()=>{"use strict";Z();O={...Q.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={};S(Y,{getV3ClientPackageName:()=>F});var F,U=d(()=>{"use strict";J();F=e=>{if(e in O)return`@aws-sdk/${O[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={};S(X,{getV3Client:()=>Ie,getV3Command:()=>Ee,loadV3ClientPackage:()=>Ve});function Ve(e){let t=e.startsWith("@aws-sdk/")?e:F(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 Ie(e,t={}){try{let a=T(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Ee(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();U()});var te=ye(l=>{"use strict";var De=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]}),ve=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Me=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Me.coerceApiParametersToUint8Array}});var Pe=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Pe.findV3ClientConstructor}});var we=(U(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return we.getV3ClientPackageName}});ve((ee(),f(X)),l)});var ie={};S(ie,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Te(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`),h={...h,[e]:!0}}async function xe(e,t){let a;try{if(!h[e]&&t==="true")try{Te(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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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,C.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let u;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");u=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let p=(0,C.findV3ClientConstructor)(s),c=new p({apiVersion:i.apiVersion,credentials:u,region:i.region}),K=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=K.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===K.toLowerCase())?.[1],R={};try{let m=await c.send(new ce(i.parameters?(0,C.coerceApiParametersToUint8Array)(n,se,V(i.parameters,r)):{}));R={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...B(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=I(R,E(g)):a=R}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,C,h,re=d(()=>{"use strict";ae=require("child_process"),C=M(te());D();h={}});var Ue={};S(Ue,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>P,handler:()=>Fe,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(Ue);D();function ne(e,t){return(N(),f(_)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Fe(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/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js deleted file mode 100644 index c58c31d67d083..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js +++ /dev/null @@ -1 +0,0 @@ -"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 54746f98e020e..da7ee5d8887d3 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": { - "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { + "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff": { "source": { - "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", + "path": "asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", + "objectKey": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "2f38f24bd6429081fabfde62783f4bcae89526a732234aaf27c22499fca0de70": { + "a6af6a67d30fb020c9be7556ea6c83915a00c3b4485043b57e844a57e62d2eb1": { "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": "2f38f24bd6429081fabfde62783f4bcae89526a732234aaf27c22499fca0de70.json", + "objectKey": "a6af6a67d30fb020c9be7556ea6c83915a00c3b4485043b57e844a57e62d2eb1.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 70764718c9b6c..1e83c8188b74f 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "S3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 b793015ce5d2b..ac1293b53f68b 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}/2f38f24bd6429081fabfde62783f4bcae89526a732234aaf27c22499fca0de70.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a6af6a67d30fb020c9be7556ea6c83915a00c3b4485043b57e844a57e62d2eb1.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 190f57e84dc71..d300b98aab967 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "s3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip" }, "handler": "index.handler", "role": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js new file mode 100644 index 0000000000000..e24d6abb5e19b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js @@ -0,0 +1 @@ +"use strict";var ue=Object.create;var k=Object.defineProperty;var pe=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 ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S=(e,t)=>{for(var a in t)k(e,a,{get:t[a],enumerable:!0})},W=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&k(e,i,{get:()=>t[i],enumerable:!(r=pe(t,i))||r.enumerable});return e};var M=(e,t,a)=>(a=e!=null?ue(me(e)):{},W(t||!e||!e.__esModule?k(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>W(k({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?Se.decode(e.buffer):e}function B(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 V(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case P:return t;default:return r}})}function I(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function b(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,p)=>{try{let c=require("https").request(s,u);c.on("error",p),c.write(o),c.end()}catch(c){p(c)}})}function y(e){if(e)return JSON.parse(e)}function E(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var P,Se,D=d(()=>{"use strict";P="PHYSICAL:RESOURCEID:",Se=new TextDecoder});var _={};S(_,{forceSdkInstallation:()=>be,handler:()=>Re});function be(){v=!1}function Ce(){console.log("Installing latest AWS SDK v2"),(0,q.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function he(e){let t=e.apiLoader;return Ae.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(w.readFileSync((0,L.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(w.readFileSync((0,L.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{Ce(),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=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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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 p=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${p}-${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 p=await u[n.action](n.parameters&&V(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...B(p)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=I(i,E(c)):o=i}catch(p){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(p.code))throw p}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var q,w,L,v,Ae,N=d(()=>{"use strict";q=require("child_process"),w=M(require("fs")),L=require("path");D();v=!1;Ae=[]});var j,G=d(()=>{"use strict";j={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"]},clouddirectory:{addfacettoobject:["ObjectAttributeList.*.Value.BinaryValue"],attachtypedlink:["Attributes.*.Value.BinaryValue"],batchread:["Operations.*.GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.EndValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.StartValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue"],batchwrite:["Operations.*.AddFacetToObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.AttachTypedLink.Attributes.*.Value.BinaryValue","Operations.*.CreateObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.DetachTypedLink.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateLinkAttributes.AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","Operations.*.UpdateLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateObjectAttributes.AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],createfacet:["Attributes.*.AttributeDefinition.DefaultValue.BinaryValue"],createobject:["ObjectAttributeList.*.Value.BinaryValue"],createtypedlinkfacet:["Facet.Attributes.*.DefaultValue.BinaryValue"],detachtypedlink:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],getlinkattributes:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],listincomingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],listindex:["RangesOnIndexedValues.*.Range.EndValue.BinaryValue","RangesOnIndexedValues.*.Range.StartValue.BinaryValue"],listoutgoingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],updatefacet:["AttributeUpdates.*.Attribute.AttributeDefinition.DefaultValue.BinaryValue"],updatelinkattributes:["AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],updateobjectattributes:["AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],updatetypedlinkfacet:["AttributeUpdates.*.Attribute.DefaultValue.BinaryValue"]},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"]},dynamodb:{batchexecutestatement:["Statements.*.Parameters.*.B","Statements.*.Parameters.*.BS.*"],batchgetitem:["RequestItems.*.Keys.*.*.B","RequestItems.*.Keys.*.*.BS.*"],batchwriteitem:["RequestItems.*.*.DeleteRequest.Key.*.B","RequestItems.*.*.DeleteRequest.Key.*.BS.*","RequestItems.*.*.PutRequest.Item.*.B","RequestItems.*.*.PutRequest.Item.*.BS.*"],deleteitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"],executestatement:["Parameters.*.B","Parameters.*.BS.*"],executetransaction:["TransactStatements.*.Parameters.*.B","TransactStatements.*.Parameters.*.BS.*"],getitem:["Key.*.B","Key.*.BS.*"],putitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Item.*.B","Item.*.BS.*"],query:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","KeyConditions.*.AttributeValueList.*.B","KeyConditions.*.AttributeValueList.*.BS.*","QueryFilter.*.AttributeValueList.*.B","QueryFilter.*.AttributeValueList.*.BS.*"],scan:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","ScanFilter.*.AttributeValueList.*.B","ScanFilter.*.AttributeValueList.*.BS.*"],transactgetitems:["TransactItems.*.Get.Key.*.B","TransactItems.*.Get.Key.*.BS.*"],transactwriteitems:["TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.B","TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.BS.*","TransactItems.*.ConditionCheck.Key.*.B","TransactItems.*.ConditionCheck.Key.*.BS.*","TransactItems.*.Delete.ExpressionAttributeValues.*.B","TransactItems.*.Delete.ExpressionAttributeValues.*.BS.*","TransactItems.*.Delete.Key.*.B","TransactItems.*.Delete.Key.*.BS.*","TransactItems.*.Put.ExpressionAttributeValues.*.B","TransactItems.*.Put.ExpressionAttributeValues.*.BS.*","TransactItems.*.Put.Item.*.B","TransactItems.*.Put.Item.*.BS.*","TransactItems.*.Update.ExpressionAttributeValues.*.B","TransactItems.*.Update.ExpressionAttributeValues.*.BS.*","TransactItems.*.Update.Key.*.B","TransactItems.*.Update.Key.*.BS.*"],updateitem:["AttributeUpdates.*.Value.B","AttributeUpdates.*.Value.BS.*","Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"]},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"]},frauddetector:{geteventprediction:["externalModelEndpointDataBlobs.*.byteBuffer"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.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","ImportToken"],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"],startconversation:["requestEventStream.AudioInputEvent.audioChunk"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},"medical-imaging":{updateimagesetmetadata:["updateImageSetMetadataUpdates.DICOMUpdates.removableAttributes","updateImageSetMetadataUpdates.DICOMUpdates.updatableAttributes"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},"rds-data":{batchexecutestatement:["parameterSets.*.*.value.blobValue"],executestatement:["parameters.*.value.blobValue"]},rekognition:{comparefaces:["SourceImage.Bytes","TargetImage.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"],startfacelivenesssession:["LivenessRequestStream.VideoEvent.VideoChunk"]},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"]},sns:{publish:["MessageAttributes.*.BinaryValue"],publishbatch:["PublishBatchRequestEntries.*.MessageAttributes.*.BinaryValue"]},sqs:{sendmessage:["MessageAttributes.*.BinaryListValues.*","MessageAttributes.*.BinaryValue","MessageSystemAttributes.*.BinaryListValues.*","MessageSystemAttributes.*.BinaryValue"],sendmessagebatch:["Entries.*.MessageAttributes.*.BinaryListValues.*","Entries.*.MessageAttributes.*.BinaryValue","Entries.*.MessageSystemAttributes.*.BinaryListValues.*","Entries.*.MessageSystemAttributes.*.BinaryValue"]},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"]},transcribe:{startcallanalyticsstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startmedicalstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startstreamtranscription:["AudioStream.AudioEvent.AudioChunk"]},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","DeviceTypeLinux.Logo","DeviceTypeOsx.Logo","DeviceTypeWeb.Logo","DeviceTypeWindows.Logo"]}}});var $={};S($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>A});function ke(e,t,a={}){let r=j?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)A(a,i.split("."));return a}function A(e,t){return t.length===0?Be(e):t[0]==="*"?Array.isArray(e)?e.map(a=>A(a,t.slice(1))):e&&typeof e=="object"?Object.fromEntries(Object.entries(e).map(([a,r])=>[a,A(r,t.slice(1))])):e:(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=A(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 H=d(()=>{"use strict";G()});var z={};S(z,{findV3ClientConstructor:()=>T});function T(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Q,Z=d(()=>{"use strict";Q=["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 O,J=d(()=>{"use strict";Z();O={...Q.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={};S(Y,{getV3ClientPackageName:()=>F});var F,U=d(()=>{"use strict";J();F=e=>{if(e in O)return`@aws-sdk/${O[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={};S(X,{getV3Client:()=>Ie,getV3Command:()=>Ee,loadV3ClientPackage:()=>Ve});function Ve(e){let t=e.startsWith("@aws-sdk/")?e:F(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 Ie(e,t={}){try{let a=T(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Ee(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();U()});var te=ye(l=>{"use strict";var De=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]}),ve=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Me=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Me.coerceApiParametersToUint8Array}});var Pe=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Pe.findV3ClientConstructor}});var we=(U(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return we.getV3ClientPackageName}});ve((ee(),f(X)),l)});var ie={};S(ie,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Te(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`),h={...h,[e]:!0}}async function xe(e,t){let a;try{if(!h[e]&&t==="true")try{Te(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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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,C.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let u;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");u=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let p=(0,C.findV3ClientConstructor)(s),c=new p({apiVersion:i.apiVersion,credentials:u,region:i.region}),K=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=K.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===K.toLowerCase())?.[1],R={};try{let m=await c.send(new ce(i.parameters?(0,C.coerceApiParametersToUint8Array)(n,se,V(i.parameters,r)):{}));R={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...B(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=I(R,E(g)):a=R}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,C,h,re=d(()=>{"use strict";ae=require("child_process"),C=M(te());D();h={}});var Ue={};S(Ue,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>P,handler:()=>Fe,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(Ue);D();function ne(e,t){return(N(),f(_)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Fe(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/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js deleted file mode 100644 index c58c31d67d083..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js +++ /dev/null @@ -1 +0,0 @@ -"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 bd8aec3e1bf68..bdccb1993af0b 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": { - "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { + "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff": { "source": { - "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", + "path": "asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", + "objectKey": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "50ea36df785dc53f86708b0a9f173a912e50b6d9b7ef625e43903316237d69e3": { + "6627d3323f15c7a3be27f3a299db4f9c301f03efe6b7c2fdbb7996a6e9130518": { "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": "50ea36df785dc53f86708b0a9f173a912e50b6d9b7ef625e43903316237d69e3.json", + "objectKey": "6627d3323f15c7a3be27f3a299db4f9c301f03efe6b7c2fdbb7996a6e9130518.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 9e3e67f0aacb2..a542026a0ddd3 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "S3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 b056f8722126a..283a6c378b7ff 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}/50ea36df785dc53f86708b0a9f173a912e50b6d9b7ef625e43903316237d69e3.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6627d3323f15c7a3be27f3a299db4f9c301f03efe6b7c2fdbb7996a6e9130518.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 61499346ab832..2ee778f3a7fff 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "s3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js new file mode 100644 index 0000000000000..e24d6abb5e19b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js @@ -0,0 +1 @@ +"use strict";var ue=Object.create;var k=Object.defineProperty;var pe=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 ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S=(e,t)=>{for(var a in t)k(e,a,{get:t[a],enumerable:!0})},W=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&k(e,i,{get:()=>t[i],enumerable:!(r=pe(t,i))||r.enumerable});return e};var M=(e,t,a)=>(a=e!=null?ue(me(e)):{},W(t||!e||!e.__esModule?k(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>W(k({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?Se.decode(e.buffer):e}function B(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 V(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case P:return t;default:return r}})}function I(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function b(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,p)=>{try{let c=require("https").request(s,u);c.on("error",p),c.write(o),c.end()}catch(c){p(c)}})}function y(e){if(e)return JSON.parse(e)}function E(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var P,Se,D=d(()=>{"use strict";P="PHYSICAL:RESOURCEID:",Se=new TextDecoder});var _={};S(_,{forceSdkInstallation:()=>be,handler:()=>Re});function be(){v=!1}function Ce(){console.log("Installing latest AWS SDK v2"),(0,q.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function he(e){let t=e.apiLoader;return Ae.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(w.readFileSync((0,L.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(w.readFileSync((0,L.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{Ce(),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=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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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 p=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${p}-${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 p=await u[n.action](n.parameters&&V(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...B(p)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=I(i,E(c)):o=i}catch(p){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(p.code))throw p}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var q,w,L,v,Ae,N=d(()=>{"use strict";q=require("child_process"),w=M(require("fs")),L=require("path");D();v=!1;Ae=[]});var j,G=d(()=>{"use strict";j={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"]},clouddirectory:{addfacettoobject:["ObjectAttributeList.*.Value.BinaryValue"],attachtypedlink:["Attributes.*.Value.BinaryValue"],batchread:["Operations.*.GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.EndValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.StartValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue"],batchwrite:["Operations.*.AddFacetToObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.AttachTypedLink.Attributes.*.Value.BinaryValue","Operations.*.CreateObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.DetachTypedLink.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateLinkAttributes.AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","Operations.*.UpdateLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateObjectAttributes.AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],createfacet:["Attributes.*.AttributeDefinition.DefaultValue.BinaryValue"],createobject:["ObjectAttributeList.*.Value.BinaryValue"],createtypedlinkfacet:["Facet.Attributes.*.DefaultValue.BinaryValue"],detachtypedlink:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],getlinkattributes:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],listincomingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],listindex:["RangesOnIndexedValues.*.Range.EndValue.BinaryValue","RangesOnIndexedValues.*.Range.StartValue.BinaryValue"],listoutgoingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],updatefacet:["AttributeUpdates.*.Attribute.AttributeDefinition.DefaultValue.BinaryValue"],updatelinkattributes:["AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],updateobjectattributes:["AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],updatetypedlinkfacet:["AttributeUpdates.*.Attribute.DefaultValue.BinaryValue"]},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"]},dynamodb:{batchexecutestatement:["Statements.*.Parameters.*.B","Statements.*.Parameters.*.BS.*"],batchgetitem:["RequestItems.*.Keys.*.*.B","RequestItems.*.Keys.*.*.BS.*"],batchwriteitem:["RequestItems.*.*.DeleteRequest.Key.*.B","RequestItems.*.*.DeleteRequest.Key.*.BS.*","RequestItems.*.*.PutRequest.Item.*.B","RequestItems.*.*.PutRequest.Item.*.BS.*"],deleteitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"],executestatement:["Parameters.*.B","Parameters.*.BS.*"],executetransaction:["TransactStatements.*.Parameters.*.B","TransactStatements.*.Parameters.*.BS.*"],getitem:["Key.*.B","Key.*.BS.*"],putitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Item.*.B","Item.*.BS.*"],query:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","KeyConditions.*.AttributeValueList.*.B","KeyConditions.*.AttributeValueList.*.BS.*","QueryFilter.*.AttributeValueList.*.B","QueryFilter.*.AttributeValueList.*.BS.*"],scan:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","ScanFilter.*.AttributeValueList.*.B","ScanFilter.*.AttributeValueList.*.BS.*"],transactgetitems:["TransactItems.*.Get.Key.*.B","TransactItems.*.Get.Key.*.BS.*"],transactwriteitems:["TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.B","TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.BS.*","TransactItems.*.ConditionCheck.Key.*.B","TransactItems.*.ConditionCheck.Key.*.BS.*","TransactItems.*.Delete.ExpressionAttributeValues.*.B","TransactItems.*.Delete.ExpressionAttributeValues.*.BS.*","TransactItems.*.Delete.Key.*.B","TransactItems.*.Delete.Key.*.BS.*","TransactItems.*.Put.ExpressionAttributeValues.*.B","TransactItems.*.Put.ExpressionAttributeValues.*.BS.*","TransactItems.*.Put.Item.*.B","TransactItems.*.Put.Item.*.BS.*","TransactItems.*.Update.ExpressionAttributeValues.*.B","TransactItems.*.Update.ExpressionAttributeValues.*.BS.*","TransactItems.*.Update.Key.*.B","TransactItems.*.Update.Key.*.BS.*"],updateitem:["AttributeUpdates.*.Value.B","AttributeUpdates.*.Value.BS.*","Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"]},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"]},frauddetector:{geteventprediction:["externalModelEndpointDataBlobs.*.byteBuffer"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.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","ImportToken"],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"],startconversation:["requestEventStream.AudioInputEvent.audioChunk"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},"medical-imaging":{updateimagesetmetadata:["updateImageSetMetadataUpdates.DICOMUpdates.removableAttributes","updateImageSetMetadataUpdates.DICOMUpdates.updatableAttributes"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},"rds-data":{batchexecutestatement:["parameterSets.*.*.value.blobValue"],executestatement:["parameters.*.value.blobValue"]},rekognition:{comparefaces:["SourceImage.Bytes","TargetImage.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"],startfacelivenesssession:["LivenessRequestStream.VideoEvent.VideoChunk"]},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"]},sns:{publish:["MessageAttributes.*.BinaryValue"],publishbatch:["PublishBatchRequestEntries.*.MessageAttributes.*.BinaryValue"]},sqs:{sendmessage:["MessageAttributes.*.BinaryListValues.*","MessageAttributes.*.BinaryValue","MessageSystemAttributes.*.BinaryListValues.*","MessageSystemAttributes.*.BinaryValue"],sendmessagebatch:["Entries.*.MessageAttributes.*.BinaryListValues.*","Entries.*.MessageAttributes.*.BinaryValue","Entries.*.MessageSystemAttributes.*.BinaryListValues.*","Entries.*.MessageSystemAttributes.*.BinaryValue"]},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"]},transcribe:{startcallanalyticsstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startmedicalstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startstreamtranscription:["AudioStream.AudioEvent.AudioChunk"]},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","DeviceTypeLinux.Logo","DeviceTypeOsx.Logo","DeviceTypeWeb.Logo","DeviceTypeWindows.Logo"]}}});var $={};S($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>A});function ke(e,t,a={}){let r=j?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)A(a,i.split("."));return a}function A(e,t){return t.length===0?Be(e):t[0]==="*"?Array.isArray(e)?e.map(a=>A(a,t.slice(1))):e&&typeof e=="object"?Object.fromEntries(Object.entries(e).map(([a,r])=>[a,A(r,t.slice(1))])):e:(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=A(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 H=d(()=>{"use strict";G()});var z={};S(z,{findV3ClientConstructor:()=>T});function T(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Q,Z=d(()=>{"use strict";Q=["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 O,J=d(()=>{"use strict";Z();O={...Q.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={};S(Y,{getV3ClientPackageName:()=>F});var F,U=d(()=>{"use strict";J();F=e=>{if(e in O)return`@aws-sdk/${O[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={};S(X,{getV3Client:()=>Ie,getV3Command:()=>Ee,loadV3ClientPackage:()=>Ve});function Ve(e){let t=e.startsWith("@aws-sdk/")?e:F(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 Ie(e,t={}){try{let a=T(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Ee(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();U()});var te=ye(l=>{"use strict";var De=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]}),ve=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Me=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Me.coerceApiParametersToUint8Array}});var Pe=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Pe.findV3ClientConstructor}});var we=(U(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return we.getV3ClientPackageName}});ve((ee(),f(X)),l)});var ie={};S(ie,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Te(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`),h={...h,[e]:!0}}async function xe(e,t){let a;try{if(!h[e]&&t==="true")try{Te(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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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,C.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let u;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");u=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let p=(0,C.findV3ClientConstructor)(s),c=new p({apiVersion:i.apiVersion,credentials:u,region:i.region}),K=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=K.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===K.toLowerCase())?.[1],R={};try{let m=await c.send(new ce(i.parameters?(0,C.coerceApiParametersToUint8Array)(n,se,V(i.parameters,r)):{}));R={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...B(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=I(R,E(g)):a=R}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,C,h,re=d(()=>{"use strict";ae=require("child_process"),C=M(te());D();h={}});var Ue={};S(Ue,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>P,handler:()=>Fe,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(Ue);D();function ne(e,t){return(N(),f(_)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Fe(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/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 deleted file mode 100644 index c58c31d67d083..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js +++ /dev/null @@ -1 +0,0 @@ -"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 a2e4fc4c3beb9..8456a2ac54afc 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": { - "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { + "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff": { "source": { - "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", + "path": "asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", + "objectKey": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "41621824685e33d45b7dcb8dedd05ed874dbdacba427ecc217520d007f8e058f": { + "7201b099ec4a68d36f79afd6f8d8e3c1f5f531cf3de84f60c27b6a8c09c30721": { "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": "41621824685e33d45b7dcb8dedd05ed874dbdacba427ecc217520d007f8e058f.json", + "objectKey": "7201b099ec4a68d36f79afd6f8d8e3c1f5f531cf3de84f60c27b6a8c09c30721.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 4435a7cb48802..13fdd45b8ecab 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "S3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 707038a22e114..771ad2cf9faab 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}/41621824685e33d45b7dcb8dedd05ed874dbdacba427ecc217520d007f8e058f.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/7201b099ec4a68d36f79afd6f8d8e3c1f5f531cf3de84f60c27b6a8c09c30721.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 48578668b2215..66d128dd05081 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "s3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js new file mode 100644 index 0000000000000..e24d6abb5e19b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js @@ -0,0 +1 @@ +"use strict";var ue=Object.create;var k=Object.defineProperty;var pe=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 ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S=(e,t)=>{for(var a in t)k(e,a,{get:t[a],enumerable:!0})},W=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&k(e,i,{get:()=>t[i],enumerable:!(r=pe(t,i))||r.enumerable});return e};var M=(e,t,a)=>(a=e!=null?ue(me(e)):{},W(t||!e||!e.__esModule?k(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>W(k({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?Se.decode(e.buffer):e}function B(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 V(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case P:return t;default:return r}})}function I(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function b(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,p)=>{try{let c=require("https").request(s,u);c.on("error",p),c.write(o),c.end()}catch(c){p(c)}})}function y(e){if(e)return JSON.parse(e)}function E(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var P,Se,D=d(()=>{"use strict";P="PHYSICAL:RESOURCEID:",Se=new TextDecoder});var _={};S(_,{forceSdkInstallation:()=>be,handler:()=>Re});function be(){v=!1}function Ce(){console.log("Installing latest AWS SDK v2"),(0,q.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function he(e){let t=e.apiLoader;return Ae.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(w.readFileSync((0,L.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(w.readFileSync((0,L.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{Ce(),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=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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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 p=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${p}-${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 p=await u[n.action](n.parameters&&V(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...B(p)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=I(i,E(c)):o=i}catch(p){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(p.code))throw p}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var q,w,L,v,Ae,N=d(()=>{"use strict";q=require("child_process"),w=M(require("fs")),L=require("path");D();v=!1;Ae=[]});var j,G=d(()=>{"use strict";j={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"]},clouddirectory:{addfacettoobject:["ObjectAttributeList.*.Value.BinaryValue"],attachtypedlink:["Attributes.*.Value.BinaryValue"],batchread:["Operations.*.GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.EndValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.StartValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue"],batchwrite:["Operations.*.AddFacetToObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.AttachTypedLink.Attributes.*.Value.BinaryValue","Operations.*.CreateObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.DetachTypedLink.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateLinkAttributes.AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","Operations.*.UpdateLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateObjectAttributes.AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],createfacet:["Attributes.*.AttributeDefinition.DefaultValue.BinaryValue"],createobject:["ObjectAttributeList.*.Value.BinaryValue"],createtypedlinkfacet:["Facet.Attributes.*.DefaultValue.BinaryValue"],detachtypedlink:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],getlinkattributes:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],listincomingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],listindex:["RangesOnIndexedValues.*.Range.EndValue.BinaryValue","RangesOnIndexedValues.*.Range.StartValue.BinaryValue"],listoutgoingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],updatefacet:["AttributeUpdates.*.Attribute.AttributeDefinition.DefaultValue.BinaryValue"],updatelinkattributes:["AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],updateobjectattributes:["AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],updatetypedlinkfacet:["AttributeUpdates.*.Attribute.DefaultValue.BinaryValue"]},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"]},dynamodb:{batchexecutestatement:["Statements.*.Parameters.*.B","Statements.*.Parameters.*.BS.*"],batchgetitem:["RequestItems.*.Keys.*.*.B","RequestItems.*.Keys.*.*.BS.*"],batchwriteitem:["RequestItems.*.*.DeleteRequest.Key.*.B","RequestItems.*.*.DeleteRequest.Key.*.BS.*","RequestItems.*.*.PutRequest.Item.*.B","RequestItems.*.*.PutRequest.Item.*.BS.*"],deleteitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"],executestatement:["Parameters.*.B","Parameters.*.BS.*"],executetransaction:["TransactStatements.*.Parameters.*.B","TransactStatements.*.Parameters.*.BS.*"],getitem:["Key.*.B","Key.*.BS.*"],putitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Item.*.B","Item.*.BS.*"],query:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","KeyConditions.*.AttributeValueList.*.B","KeyConditions.*.AttributeValueList.*.BS.*","QueryFilter.*.AttributeValueList.*.B","QueryFilter.*.AttributeValueList.*.BS.*"],scan:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","ScanFilter.*.AttributeValueList.*.B","ScanFilter.*.AttributeValueList.*.BS.*"],transactgetitems:["TransactItems.*.Get.Key.*.B","TransactItems.*.Get.Key.*.BS.*"],transactwriteitems:["TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.B","TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.BS.*","TransactItems.*.ConditionCheck.Key.*.B","TransactItems.*.ConditionCheck.Key.*.BS.*","TransactItems.*.Delete.ExpressionAttributeValues.*.B","TransactItems.*.Delete.ExpressionAttributeValues.*.BS.*","TransactItems.*.Delete.Key.*.B","TransactItems.*.Delete.Key.*.BS.*","TransactItems.*.Put.ExpressionAttributeValues.*.B","TransactItems.*.Put.ExpressionAttributeValues.*.BS.*","TransactItems.*.Put.Item.*.B","TransactItems.*.Put.Item.*.BS.*","TransactItems.*.Update.ExpressionAttributeValues.*.B","TransactItems.*.Update.ExpressionAttributeValues.*.BS.*","TransactItems.*.Update.Key.*.B","TransactItems.*.Update.Key.*.BS.*"],updateitem:["AttributeUpdates.*.Value.B","AttributeUpdates.*.Value.BS.*","Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"]},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"]},frauddetector:{geteventprediction:["externalModelEndpointDataBlobs.*.byteBuffer"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.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","ImportToken"],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"],startconversation:["requestEventStream.AudioInputEvent.audioChunk"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},"medical-imaging":{updateimagesetmetadata:["updateImageSetMetadataUpdates.DICOMUpdates.removableAttributes","updateImageSetMetadataUpdates.DICOMUpdates.updatableAttributes"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},"rds-data":{batchexecutestatement:["parameterSets.*.*.value.blobValue"],executestatement:["parameters.*.value.blobValue"]},rekognition:{comparefaces:["SourceImage.Bytes","TargetImage.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"],startfacelivenesssession:["LivenessRequestStream.VideoEvent.VideoChunk"]},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"]},sns:{publish:["MessageAttributes.*.BinaryValue"],publishbatch:["PublishBatchRequestEntries.*.MessageAttributes.*.BinaryValue"]},sqs:{sendmessage:["MessageAttributes.*.BinaryListValues.*","MessageAttributes.*.BinaryValue","MessageSystemAttributes.*.BinaryListValues.*","MessageSystemAttributes.*.BinaryValue"],sendmessagebatch:["Entries.*.MessageAttributes.*.BinaryListValues.*","Entries.*.MessageAttributes.*.BinaryValue","Entries.*.MessageSystemAttributes.*.BinaryListValues.*","Entries.*.MessageSystemAttributes.*.BinaryValue"]},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"]},transcribe:{startcallanalyticsstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startmedicalstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startstreamtranscription:["AudioStream.AudioEvent.AudioChunk"]},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","DeviceTypeLinux.Logo","DeviceTypeOsx.Logo","DeviceTypeWeb.Logo","DeviceTypeWindows.Logo"]}}});var $={};S($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>A});function ke(e,t,a={}){let r=j?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)A(a,i.split("."));return a}function A(e,t){return t.length===0?Be(e):t[0]==="*"?Array.isArray(e)?e.map(a=>A(a,t.slice(1))):e&&typeof e=="object"?Object.fromEntries(Object.entries(e).map(([a,r])=>[a,A(r,t.slice(1))])):e:(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=A(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 H=d(()=>{"use strict";G()});var z={};S(z,{findV3ClientConstructor:()=>T});function T(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Q,Z=d(()=>{"use strict";Q=["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 O,J=d(()=>{"use strict";Z();O={...Q.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={};S(Y,{getV3ClientPackageName:()=>F});var F,U=d(()=>{"use strict";J();F=e=>{if(e in O)return`@aws-sdk/${O[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={};S(X,{getV3Client:()=>Ie,getV3Command:()=>Ee,loadV3ClientPackage:()=>Ve});function Ve(e){let t=e.startsWith("@aws-sdk/")?e:F(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 Ie(e,t={}){try{let a=T(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Ee(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();U()});var te=ye(l=>{"use strict";var De=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]}),ve=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Me=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Me.coerceApiParametersToUint8Array}});var Pe=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Pe.findV3ClientConstructor}});var we=(U(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return we.getV3ClientPackageName}});ve((ee(),f(X)),l)});var ie={};S(ie,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Te(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`),h={...h,[e]:!0}}async function xe(e,t){let a;try{if(!h[e]&&t==="true")try{Te(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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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,C.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let u;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");u=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let p=(0,C.findV3ClientConstructor)(s),c=new p({apiVersion:i.apiVersion,credentials:u,region:i.region}),K=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=K.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===K.toLowerCase())?.[1],R={};try{let m=await c.send(new ce(i.parameters?(0,C.coerceApiParametersToUint8Array)(n,se,V(i.parameters,r)):{}));R={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...B(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=I(R,E(g)):a=R}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,C,h,re=d(()=>{"use strict";ae=require("child_process"),C=M(te());D();h={}});var Ue={};S(Ue,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>P,handler:()=>Fe,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(Ue);D();function ne(e,t){return(N(),f(_)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Fe(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/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 deleted file mode 100644 index c58c31d67d083..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js +++ /dev/null @@ -1 +0,0 @@ -"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 be47a1b007b19..3568d2c489e4b 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 @@ } } }, - "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { + "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff": { "source": { - "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", + "path": "asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", + "objectKey": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "0c7ed524b46122628a1de30953154e24b73441dab16b4f56400e982e8219a78f": { + "e467ca638d40b28daf8f934b01d02d1c6cfdb1ea597be0281ed93e1b411b449b": { "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": "0c7ed524b46122628a1de30953154e24b73441dab16b4f56400e982e8219a78f.json", + "objectKey": "e467ca638d40b28daf8f934b01d02d1c6cfdb1ea597be0281ed93e1b411b449b.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 b291b3aa636c2..b57705be80d83 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "S3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 ebd7b25b76dbb..d11f9ad67be0c 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}/0c7ed524b46122628a1de30953154e24b73441dab16b4f56400e982e8219a78f.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e467ca638d40b28daf8f934b01d02d1c6cfdb1ea597be0281ed93e1b411b449b.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 9dc1a3f6efea1..87cc5020a1072 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "s3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js new file mode 100644 index 0000000000000..e24d6abb5e19b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js @@ -0,0 +1 @@ +"use strict";var ue=Object.create;var k=Object.defineProperty;var pe=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 ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S=(e,t)=>{for(var a in t)k(e,a,{get:t[a],enumerable:!0})},W=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&k(e,i,{get:()=>t[i],enumerable:!(r=pe(t,i))||r.enumerable});return e};var M=(e,t,a)=>(a=e!=null?ue(me(e)):{},W(t||!e||!e.__esModule?k(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>W(k({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?Se.decode(e.buffer):e}function B(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 V(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case P:return t;default:return r}})}function I(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function b(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,p)=>{try{let c=require("https").request(s,u);c.on("error",p),c.write(o),c.end()}catch(c){p(c)}})}function y(e){if(e)return JSON.parse(e)}function E(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var P,Se,D=d(()=>{"use strict";P="PHYSICAL:RESOURCEID:",Se=new TextDecoder});var _={};S(_,{forceSdkInstallation:()=>be,handler:()=>Re});function be(){v=!1}function Ce(){console.log("Installing latest AWS SDK v2"),(0,q.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function he(e){let t=e.apiLoader;return Ae.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(w.readFileSync((0,L.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(w.readFileSync((0,L.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{Ce(),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=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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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 p=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${p}-${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 p=await u[n.action](n.parameters&&V(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...B(p)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=I(i,E(c)):o=i}catch(p){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(p.code))throw p}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var q,w,L,v,Ae,N=d(()=>{"use strict";q=require("child_process"),w=M(require("fs")),L=require("path");D();v=!1;Ae=[]});var j,G=d(()=>{"use strict";j={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"]},clouddirectory:{addfacettoobject:["ObjectAttributeList.*.Value.BinaryValue"],attachtypedlink:["Attributes.*.Value.BinaryValue"],batchread:["Operations.*.GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.EndValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.StartValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue"],batchwrite:["Operations.*.AddFacetToObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.AttachTypedLink.Attributes.*.Value.BinaryValue","Operations.*.CreateObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.DetachTypedLink.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateLinkAttributes.AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","Operations.*.UpdateLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateObjectAttributes.AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],createfacet:["Attributes.*.AttributeDefinition.DefaultValue.BinaryValue"],createobject:["ObjectAttributeList.*.Value.BinaryValue"],createtypedlinkfacet:["Facet.Attributes.*.DefaultValue.BinaryValue"],detachtypedlink:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],getlinkattributes:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],listincomingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],listindex:["RangesOnIndexedValues.*.Range.EndValue.BinaryValue","RangesOnIndexedValues.*.Range.StartValue.BinaryValue"],listoutgoingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],updatefacet:["AttributeUpdates.*.Attribute.AttributeDefinition.DefaultValue.BinaryValue"],updatelinkattributes:["AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],updateobjectattributes:["AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],updatetypedlinkfacet:["AttributeUpdates.*.Attribute.DefaultValue.BinaryValue"]},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"]},dynamodb:{batchexecutestatement:["Statements.*.Parameters.*.B","Statements.*.Parameters.*.BS.*"],batchgetitem:["RequestItems.*.Keys.*.*.B","RequestItems.*.Keys.*.*.BS.*"],batchwriteitem:["RequestItems.*.*.DeleteRequest.Key.*.B","RequestItems.*.*.DeleteRequest.Key.*.BS.*","RequestItems.*.*.PutRequest.Item.*.B","RequestItems.*.*.PutRequest.Item.*.BS.*"],deleteitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"],executestatement:["Parameters.*.B","Parameters.*.BS.*"],executetransaction:["TransactStatements.*.Parameters.*.B","TransactStatements.*.Parameters.*.BS.*"],getitem:["Key.*.B","Key.*.BS.*"],putitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Item.*.B","Item.*.BS.*"],query:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","KeyConditions.*.AttributeValueList.*.B","KeyConditions.*.AttributeValueList.*.BS.*","QueryFilter.*.AttributeValueList.*.B","QueryFilter.*.AttributeValueList.*.BS.*"],scan:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","ScanFilter.*.AttributeValueList.*.B","ScanFilter.*.AttributeValueList.*.BS.*"],transactgetitems:["TransactItems.*.Get.Key.*.B","TransactItems.*.Get.Key.*.BS.*"],transactwriteitems:["TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.B","TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.BS.*","TransactItems.*.ConditionCheck.Key.*.B","TransactItems.*.ConditionCheck.Key.*.BS.*","TransactItems.*.Delete.ExpressionAttributeValues.*.B","TransactItems.*.Delete.ExpressionAttributeValues.*.BS.*","TransactItems.*.Delete.Key.*.B","TransactItems.*.Delete.Key.*.BS.*","TransactItems.*.Put.ExpressionAttributeValues.*.B","TransactItems.*.Put.ExpressionAttributeValues.*.BS.*","TransactItems.*.Put.Item.*.B","TransactItems.*.Put.Item.*.BS.*","TransactItems.*.Update.ExpressionAttributeValues.*.B","TransactItems.*.Update.ExpressionAttributeValues.*.BS.*","TransactItems.*.Update.Key.*.B","TransactItems.*.Update.Key.*.BS.*"],updateitem:["AttributeUpdates.*.Value.B","AttributeUpdates.*.Value.BS.*","Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"]},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"]},frauddetector:{geteventprediction:["externalModelEndpointDataBlobs.*.byteBuffer"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.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","ImportToken"],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"],startconversation:["requestEventStream.AudioInputEvent.audioChunk"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},"medical-imaging":{updateimagesetmetadata:["updateImageSetMetadataUpdates.DICOMUpdates.removableAttributes","updateImageSetMetadataUpdates.DICOMUpdates.updatableAttributes"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},"rds-data":{batchexecutestatement:["parameterSets.*.*.value.blobValue"],executestatement:["parameters.*.value.blobValue"]},rekognition:{comparefaces:["SourceImage.Bytes","TargetImage.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"],startfacelivenesssession:["LivenessRequestStream.VideoEvent.VideoChunk"]},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"]},sns:{publish:["MessageAttributes.*.BinaryValue"],publishbatch:["PublishBatchRequestEntries.*.MessageAttributes.*.BinaryValue"]},sqs:{sendmessage:["MessageAttributes.*.BinaryListValues.*","MessageAttributes.*.BinaryValue","MessageSystemAttributes.*.BinaryListValues.*","MessageSystemAttributes.*.BinaryValue"],sendmessagebatch:["Entries.*.MessageAttributes.*.BinaryListValues.*","Entries.*.MessageAttributes.*.BinaryValue","Entries.*.MessageSystemAttributes.*.BinaryListValues.*","Entries.*.MessageSystemAttributes.*.BinaryValue"]},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"]},transcribe:{startcallanalyticsstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startmedicalstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startstreamtranscription:["AudioStream.AudioEvent.AudioChunk"]},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","DeviceTypeLinux.Logo","DeviceTypeOsx.Logo","DeviceTypeWeb.Logo","DeviceTypeWindows.Logo"]}}});var $={};S($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>A});function ke(e,t,a={}){let r=j?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)A(a,i.split("."));return a}function A(e,t){return t.length===0?Be(e):t[0]==="*"?Array.isArray(e)?e.map(a=>A(a,t.slice(1))):e&&typeof e=="object"?Object.fromEntries(Object.entries(e).map(([a,r])=>[a,A(r,t.slice(1))])):e:(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=A(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 H=d(()=>{"use strict";G()});var z={};S(z,{findV3ClientConstructor:()=>T});function T(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Q,Z=d(()=>{"use strict";Q=["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 O,J=d(()=>{"use strict";Z();O={...Q.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={};S(Y,{getV3ClientPackageName:()=>F});var F,U=d(()=>{"use strict";J();F=e=>{if(e in O)return`@aws-sdk/${O[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={};S(X,{getV3Client:()=>Ie,getV3Command:()=>Ee,loadV3ClientPackage:()=>Ve});function Ve(e){let t=e.startsWith("@aws-sdk/")?e:F(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 Ie(e,t={}){try{let a=T(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Ee(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();U()});var te=ye(l=>{"use strict";var De=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]}),ve=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Me=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Me.coerceApiParametersToUint8Array}});var Pe=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Pe.findV3ClientConstructor}});var we=(U(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return we.getV3ClientPackageName}});ve((ee(),f(X)),l)});var ie={};S(ie,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Te(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`),h={...h,[e]:!0}}async function xe(e,t){let a;try{if(!h[e]&&t==="true")try{Te(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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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,C.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let u;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");u=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let p=(0,C.findV3ClientConstructor)(s),c=new p({apiVersion:i.apiVersion,credentials:u,region:i.region}),K=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=K.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===K.toLowerCase())?.[1],R={};try{let m=await c.send(new ce(i.parameters?(0,C.coerceApiParametersToUint8Array)(n,se,V(i.parameters,r)):{}));R={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...B(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=I(R,E(g)):a=R}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,C,h,re=d(()=>{"use strict";ae=require("child_process"),C=M(te());D();h={}});var Ue={};S(Ue,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>P,handler:()=>Fe,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(Ue);D();function ne(e,t){return(N(),f(_)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Fe(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/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 deleted file mode 100644 index c58c31d67d083..0000000000000 --- 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 +++ /dev/null @@ -1 +0,0 @@ -"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 8f02a9d34a195..ec01c5b5edc7a 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": { - "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { + "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff": { "source": { - "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", + "path": "asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", + "objectKey": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "23ff174b469e663d5e661b8f70483a77806187944e7acfbef024118086caf532": { + "58a29c74a4164c0da347739f34656f6ce26817f8192fa2c3a8e97de3f5d6f4e0": { "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": "23ff174b469e663d5e661b8f70483a77806187944e7acfbef024118086caf532.json", + "objectKey": "58a29c74a4164c0da347739f34656f6ce26817f8192fa2c3a8e97de3f5d6f4e0.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 81ac4d5d7f240..5b9a44e2e06b1 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "S3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 170601b9bbac9..c9033e44e4597 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}/23ff174b469e663d5e661b8f70483a77806187944e7acfbef024118086caf532.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/58a29c74a4164c0da347739f34656f6ce26817f8192fa2c3a8e97de3f5d6f4e0.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 dce95075509c7..b594095e648ea 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "s3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js new file mode 100644 index 0000000000000..e24d6abb5e19b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js @@ -0,0 +1 @@ +"use strict";var ue=Object.create;var k=Object.defineProperty;var pe=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 ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S=(e,t)=>{for(var a in t)k(e,a,{get:t[a],enumerable:!0})},W=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&k(e,i,{get:()=>t[i],enumerable:!(r=pe(t,i))||r.enumerable});return e};var M=(e,t,a)=>(a=e!=null?ue(me(e)):{},W(t||!e||!e.__esModule?k(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>W(k({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?Se.decode(e.buffer):e}function B(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 V(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case P:return t;default:return r}})}function I(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function b(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,p)=>{try{let c=require("https").request(s,u);c.on("error",p),c.write(o),c.end()}catch(c){p(c)}})}function y(e){if(e)return JSON.parse(e)}function E(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var P,Se,D=d(()=>{"use strict";P="PHYSICAL:RESOURCEID:",Se=new TextDecoder});var _={};S(_,{forceSdkInstallation:()=>be,handler:()=>Re});function be(){v=!1}function Ce(){console.log("Installing latest AWS SDK v2"),(0,q.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function he(e){let t=e.apiLoader;return Ae.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(w.readFileSync((0,L.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(w.readFileSync((0,L.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{Ce(),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=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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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 p=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${p}-${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 p=await u[n.action](n.parameters&&V(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...B(p)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=I(i,E(c)):o=i}catch(p){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(p.code))throw p}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var q,w,L,v,Ae,N=d(()=>{"use strict";q=require("child_process"),w=M(require("fs")),L=require("path");D();v=!1;Ae=[]});var j,G=d(()=>{"use strict";j={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"]},clouddirectory:{addfacettoobject:["ObjectAttributeList.*.Value.BinaryValue"],attachtypedlink:["Attributes.*.Value.BinaryValue"],batchread:["Operations.*.GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.EndValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.StartValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue"],batchwrite:["Operations.*.AddFacetToObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.AttachTypedLink.Attributes.*.Value.BinaryValue","Operations.*.CreateObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.DetachTypedLink.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateLinkAttributes.AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","Operations.*.UpdateLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateObjectAttributes.AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],createfacet:["Attributes.*.AttributeDefinition.DefaultValue.BinaryValue"],createobject:["ObjectAttributeList.*.Value.BinaryValue"],createtypedlinkfacet:["Facet.Attributes.*.DefaultValue.BinaryValue"],detachtypedlink:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],getlinkattributes:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],listincomingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],listindex:["RangesOnIndexedValues.*.Range.EndValue.BinaryValue","RangesOnIndexedValues.*.Range.StartValue.BinaryValue"],listoutgoingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],updatefacet:["AttributeUpdates.*.Attribute.AttributeDefinition.DefaultValue.BinaryValue"],updatelinkattributes:["AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],updateobjectattributes:["AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],updatetypedlinkfacet:["AttributeUpdates.*.Attribute.DefaultValue.BinaryValue"]},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"]},dynamodb:{batchexecutestatement:["Statements.*.Parameters.*.B","Statements.*.Parameters.*.BS.*"],batchgetitem:["RequestItems.*.Keys.*.*.B","RequestItems.*.Keys.*.*.BS.*"],batchwriteitem:["RequestItems.*.*.DeleteRequest.Key.*.B","RequestItems.*.*.DeleteRequest.Key.*.BS.*","RequestItems.*.*.PutRequest.Item.*.B","RequestItems.*.*.PutRequest.Item.*.BS.*"],deleteitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"],executestatement:["Parameters.*.B","Parameters.*.BS.*"],executetransaction:["TransactStatements.*.Parameters.*.B","TransactStatements.*.Parameters.*.BS.*"],getitem:["Key.*.B","Key.*.BS.*"],putitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Item.*.B","Item.*.BS.*"],query:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","KeyConditions.*.AttributeValueList.*.B","KeyConditions.*.AttributeValueList.*.BS.*","QueryFilter.*.AttributeValueList.*.B","QueryFilter.*.AttributeValueList.*.BS.*"],scan:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","ScanFilter.*.AttributeValueList.*.B","ScanFilter.*.AttributeValueList.*.BS.*"],transactgetitems:["TransactItems.*.Get.Key.*.B","TransactItems.*.Get.Key.*.BS.*"],transactwriteitems:["TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.B","TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.BS.*","TransactItems.*.ConditionCheck.Key.*.B","TransactItems.*.ConditionCheck.Key.*.BS.*","TransactItems.*.Delete.ExpressionAttributeValues.*.B","TransactItems.*.Delete.ExpressionAttributeValues.*.BS.*","TransactItems.*.Delete.Key.*.B","TransactItems.*.Delete.Key.*.BS.*","TransactItems.*.Put.ExpressionAttributeValues.*.B","TransactItems.*.Put.ExpressionAttributeValues.*.BS.*","TransactItems.*.Put.Item.*.B","TransactItems.*.Put.Item.*.BS.*","TransactItems.*.Update.ExpressionAttributeValues.*.B","TransactItems.*.Update.ExpressionAttributeValues.*.BS.*","TransactItems.*.Update.Key.*.B","TransactItems.*.Update.Key.*.BS.*"],updateitem:["AttributeUpdates.*.Value.B","AttributeUpdates.*.Value.BS.*","Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"]},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"]},frauddetector:{geteventprediction:["externalModelEndpointDataBlobs.*.byteBuffer"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.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","ImportToken"],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"],startconversation:["requestEventStream.AudioInputEvent.audioChunk"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},"medical-imaging":{updateimagesetmetadata:["updateImageSetMetadataUpdates.DICOMUpdates.removableAttributes","updateImageSetMetadataUpdates.DICOMUpdates.updatableAttributes"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},"rds-data":{batchexecutestatement:["parameterSets.*.*.value.blobValue"],executestatement:["parameters.*.value.blobValue"]},rekognition:{comparefaces:["SourceImage.Bytes","TargetImage.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"],startfacelivenesssession:["LivenessRequestStream.VideoEvent.VideoChunk"]},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"]},sns:{publish:["MessageAttributes.*.BinaryValue"],publishbatch:["PublishBatchRequestEntries.*.MessageAttributes.*.BinaryValue"]},sqs:{sendmessage:["MessageAttributes.*.BinaryListValues.*","MessageAttributes.*.BinaryValue","MessageSystemAttributes.*.BinaryListValues.*","MessageSystemAttributes.*.BinaryValue"],sendmessagebatch:["Entries.*.MessageAttributes.*.BinaryListValues.*","Entries.*.MessageAttributes.*.BinaryValue","Entries.*.MessageSystemAttributes.*.BinaryListValues.*","Entries.*.MessageSystemAttributes.*.BinaryValue"]},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"]},transcribe:{startcallanalyticsstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startmedicalstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startstreamtranscription:["AudioStream.AudioEvent.AudioChunk"]},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","DeviceTypeLinux.Logo","DeviceTypeOsx.Logo","DeviceTypeWeb.Logo","DeviceTypeWindows.Logo"]}}});var $={};S($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>A});function ke(e,t,a={}){let r=j?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)A(a,i.split("."));return a}function A(e,t){return t.length===0?Be(e):t[0]==="*"?Array.isArray(e)?e.map(a=>A(a,t.slice(1))):e&&typeof e=="object"?Object.fromEntries(Object.entries(e).map(([a,r])=>[a,A(r,t.slice(1))])):e:(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=A(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 H=d(()=>{"use strict";G()});var z={};S(z,{findV3ClientConstructor:()=>T});function T(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Q,Z=d(()=>{"use strict";Q=["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 O,J=d(()=>{"use strict";Z();O={...Q.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={};S(Y,{getV3ClientPackageName:()=>F});var F,U=d(()=>{"use strict";J();F=e=>{if(e in O)return`@aws-sdk/${O[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={};S(X,{getV3Client:()=>Ie,getV3Command:()=>Ee,loadV3ClientPackage:()=>Ve});function Ve(e){let t=e.startsWith("@aws-sdk/")?e:F(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 Ie(e,t={}){try{let a=T(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Ee(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();U()});var te=ye(l=>{"use strict";var De=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]}),ve=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Me=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Me.coerceApiParametersToUint8Array}});var Pe=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Pe.findV3ClientConstructor}});var we=(U(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return we.getV3ClientPackageName}});ve((ee(),f(X)),l)});var ie={};S(ie,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Te(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`),h={...h,[e]:!0}}async function xe(e,t){let a;try{if(!h[e]&&t==="true")try{Te(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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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,C.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let u;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");u=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let p=(0,C.findV3ClientConstructor)(s),c=new p({apiVersion:i.apiVersion,credentials:u,region:i.region}),K=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=K.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===K.toLowerCase())?.[1],R={};try{let m=await c.send(new ce(i.parameters?(0,C.coerceApiParametersToUint8Array)(n,se,V(i.parameters,r)):{}));R={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...B(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=I(R,E(g)):a=R}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,C,h,re=d(()=>{"use strict";ae=require("child_process"),C=M(te());D();h={}});var Ue={};S(Ue,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>P,handler:()=>Fe,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(Ue);D();function ne(e,t){return(N(),f(_)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Fe(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/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 deleted file mode 100644 index c58c31d67d083..0000000000000 --- 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 +++ /dev/null @@ -1 +0,0 @@ -"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 2eb66e2565be7..c2427f8ce47ae 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": { - "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { + "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff": { "source": { - "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", + "path": "asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", + "objectKey": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "9afd0fc67e12f8aea84fc522b60c4bf2ae2d10598cac37e1d6be11f512dd6911": { + "32a415715bf03949be3a66c7c6f35195f6f12ccab098a583c8110f4687700d71": { "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": "9afd0fc67e12f8aea84fc522b60c4bf2ae2d10598cac37e1d6be11f512dd6911.json", + "objectKey": "32a415715bf03949be3a66c7c6f35195f6f12ccab098a583c8110f4687700d71.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 77e55552ec936..9942265b9cec4 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "S3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 ce34c8ad36efa..cebcaf5020c62 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}/9afd0fc67e12f8aea84fc522b60c4bf2ae2d10598cac37e1d6be11f512dd6911.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/32a415715bf03949be3a66c7c6f35195f6f12ccab098a583c8110f4687700d71.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 90d59b21d6aa9..a05534cbf8435 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "s3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js new file mode 100644 index 0000000000000..e24d6abb5e19b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff/index.js @@ -0,0 +1 @@ +"use strict";var ue=Object.create;var k=Object.defineProperty;var pe=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 ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S=(e,t)=>{for(var a in t)k(e,a,{get:t[a],enumerable:!0})},W=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!ge.call(e,i)&&i!==a&&k(e,i,{get:()=>t[i],enumerable:!(r=pe(t,i))||r.enumerable});return e};var M=(e,t,a)=>(a=e!=null?ue(me(e)):{},W(t||!e||!e.__esModule?k(a,"default",{value:e,enumerable:!0}):a,e)),f=e=>W(k({},"__esModule",{value:!0}),e);function fe(e){return Buffer.isBuffer(e)?e.toString("utf8"):ArrayBuffer.isView(e)?Se.decode(e.buffer):e}function B(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 V(e,t){return JSON.parse(JSON.stringify(e),(a,r)=>{switch(r){case P:return t;default:return r}})}function I(e,t){return Object.entries(e).reduce((a,[r,i])=>t(r)?{...a,[r]:i}:a,{})}function b(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,p)=>{try{let c=require("https").request(s,u);c.on("error",p),c.write(o),c.end()}catch(c){p(c)}})}function y(e){if(e)return JSON.parse(e)}function E(e){return function(t){for(let a of e)if(t.startsWith(a))return!0;return!1}}var P,Se,D=d(()=>{"use strict";P="PHYSICAL:RESOURCEID:",Se=new TextDecoder});var _={};S(_,{forceSdkInstallation:()=>be,handler:()=>Re});function be(){v=!1}function Ce(){console.log("Installing latest AWS SDK v2"),(0,q.execSync)("HOME=/tmp npm install aws-sdk@2 --production --no-package-lock --no-save --prefix /tmp"),v=!0}function he(e){let t=e.apiLoader;return Ae.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(w.readFileSync((0,L.join)(__dirname,`${s}.service.json`),"utf-8"));return u.paginators=JSON.parse(w.readFileSync((0,L.join)(__dirname,`${s}.paginators.json`),"utf-8")).pagination,u},enumerable:!0,configurable:!0})})}),e}async function Re(e,t){try{let a;if(!v&&e.ResourceProperties.InstallLatestAwsSdk==="true")try{Ce(),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=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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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 p=new Date().getTime(),c={RoleArn:n.assumedRoleArn,RoleSessionName:`${p}-${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 p=await u[n.action](n.parameters&&V(n.parameters,r)).promise();i={apiVersion:u.config.apiVersion,region:u.config.region,...B(p)};let c;n.outputPath?c=[n.outputPath]:n.outputPaths&&(c=n.outputPaths),c?o=I(i,E(c)):o=i}catch(p){if(!n.ignoreErrorCodesMatching||!new RegExp(n.ignoreErrorCodesMatching).test(p.code))throw p}n.physicalResourceId?.responsePath&&(r=i[n.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,o)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var q,w,L,v,Ae,N=d(()=>{"use strict";q=require("child_process"),w=M(require("fs")),L=require("path");D();v=!1;Ae=[]});var j,G=d(()=>{"use strict";j={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"]},clouddirectory:{addfacettoobject:["ObjectAttributeList.*.Value.BinaryValue"],attachtypedlink:["Attributes.*.Value.BinaryValue"],batchread:["Operations.*.GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.EndValue.BinaryValue","Operations.*.ListIndex.RangesOnIndexedValues.*.Range.StartValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue","Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue"],batchwrite:["Operations.*.AddFacetToObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.AttachTypedLink.Attributes.*.Value.BinaryValue","Operations.*.CreateObject.ObjectAttributeList.*.Value.BinaryValue","Operations.*.DetachTypedLink.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateLinkAttributes.AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","Operations.*.UpdateLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue","Operations.*.UpdateObjectAttributes.AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],createfacet:["Attributes.*.AttributeDefinition.DefaultValue.BinaryValue"],createobject:["ObjectAttributeList.*.Value.BinaryValue"],createtypedlinkfacet:["Facet.Attributes.*.DefaultValue.BinaryValue"],detachtypedlink:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],getlinkattributes:["TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],listincomingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],listindex:["RangesOnIndexedValues.*.Range.EndValue.BinaryValue","RangesOnIndexedValues.*.Range.StartValue.BinaryValue"],listoutgoingtypedlinks:["FilterAttributeRanges.*.Range.EndValue.BinaryValue","FilterAttributeRanges.*.Range.StartValue.BinaryValue"],updatefacet:["AttributeUpdates.*.Attribute.AttributeDefinition.DefaultValue.BinaryValue"],updatelinkattributes:["AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue","TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue"],updateobjectattributes:["AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue"],updatetypedlinkfacet:["AttributeUpdates.*.Attribute.DefaultValue.BinaryValue"]},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"]},dynamodb:{batchexecutestatement:["Statements.*.Parameters.*.B","Statements.*.Parameters.*.BS.*"],batchgetitem:["RequestItems.*.Keys.*.*.B","RequestItems.*.Keys.*.*.BS.*"],batchwriteitem:["RequestItems.*.*.DeleteRequest.Key.*.B","RequestItems.*.*.DeleteRequest.Key.*.BS.*","RequestItems.*.*.PutRequest.Item.*.B","RequestItems.*.*.PutRequest.Item.*.BS.*"],deleteitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"],executestatement:["Parameters.*.B","Parameters.*.BS.*"],executetransaction:["TransactStatements.*.Parameters.*.B","TransactStatements.*.Parameters.*.BS.*"],getitem:["Key.*.B","Key.*.BS.*"],putitem:["Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Item.*.B","Item.*.BS.*"],query:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","KeyConditions.*.AttributeValueList.*.B","KeyConditions.*.AttributeValueList.*.BS.*","QueryFilter.*.AttributeValueList.*.B","QueryFilter.*.AttributeValueList.*.BS.*"],scan:["ExclusiveStartKey.*.B","ExclusiveStartKey.*.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","ScanFilter.*.AttributeValueList.*.B","ScanFilter.*.AttributeValueList.*.BS.*"],transactgetitems:["TransactItems.*.Get.Key.*.B","TransactItems.*.Get.Key.*.BS.*"],transactwriteitems:["TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.B","TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.BS.*","TransactItems.*.ConditionCheck.Key.*.B","TransactItems.*.ConditionCheck.Key.*.BS.*","TransactItems.*.Delete.ExpressionAttributeValues.*.B","TransactItems.*.Delete.ExpressionAttributeValues.*.BS.*","TransactItems.*.Delete.Key.*.B","TransactItems.*.Delete.Key.*.BS.*","TransactItems.*.Put.ExpressionAttributeValues.*.B","TransactItems.*.Put.ExpressionAttributeValues.*.BS.*","TransactItems.*.Put.Item.*.B","TransactItems.*.Put.Item.*.BS.*","TransactItems.*.Update.ExpressionAttributeValues.*.B","TransactItems.*.Update.ExpressionAttributeValues.*.BS.*","TransactItems.*.Update.Key.*.B","TransactItems.*.Update.Key.*.BS.*"],updateitem:["AttributeUpdates.*.Value.B","AttributeUpdates.*.Value.BS.*","Expected.*.AttributeValueList.*.B","Expected.*.AttributeValueList.*.BS.*","Expected.*.Value.B","Expected.*.Value.BS.*","ExpressionAttributeValues.*.B","ExpressionAttributeValues.*.BS.*","Key.*.B","Key.*.BS.*"]},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"]},frauddetector:{geteventprediction:["externalModelEndpointDataBlobs.*.byteBuffer"]},gamelift:{createscript:["ZipFile"],updatescript:["ZipFile"]},gamesparks:{importgameconfiguration:["ImportSource.File"]},glacier:{uploadarchive:["body"],uploadmultipartpart:["body"]},glue:{updatecolumnstatisticsforpartition:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue"],updatecolumnstatisticsfortable:["ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue","ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.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","ImportToken"],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"],startconversation:["requestEventStream.AudioInputEvent.audioChunk"]},lookoutvision:{detectanomalies:["Body"],updatedatasetentries:["Changes"]},mediastore:{putobject:["Body"]},"medical-imaging":{updateimagesetmetadata:["updateImageSetMetadataUpdates.DICOMUpdates.removableAttributes","updateImageSetMetadataUpdates.DICOMUpdates.updatableAttributes"]},mobiletargeting:{sendmessages:["MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"],sendusersmessages:["SendUsersMessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data"]},qldb:{sendcommand:["CommitTransaction.CommitDigest","ExecuteStatement.Parameters.*.IonBinary"]},quicksight:{startassetbundleimportjob:["AssetBundleImportSource.Body"]},"rds-data":{batchexecutestatement:["parameterSets.*.*.value.blobValue"],executestatement:["parameters.*.value.blobValue"]},rekognition:{comparefaces:["SourceImage.Bytes","TargetImage.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"],startfacelivenesssession:["LivenessRequestStream.VideoEvent.VideoChunk"]},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"]},sns:{publish:["MessageAttributes.*.BinaryValue"],publishbatch:["PublishBatchRequestEntries.*.MessageAttributes.*.BinaryValue"]},sqs:{sendmessage:["MessageAttributes.*.BinaryListValues.*","MessageAttributes.*.BinaryValue","MessageSystemAttributes.*.BinaryListValues.*","MessageSystemAttributes.*.BinaryValue"],sendmessagebatch:["Entries.*.MessageAttributes.*.BinaryListValues.*","Entries.*.MessageAttributes.*.BinaryValue","Entries.*.MessageSystemAttributes.*.BinaryListValues.*","Entries.*.MessageSystemAttributes.*.BinaryValue"]},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"]},transcribe:{startcallanalyticsstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startmedicalstreamtranscription:["AudioStream.AudioEvent.AudioChunk"],startstreamtranscription:["AudioStream.AudioEvent.AudioChunk"]},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","DeviceTypeLinux.Logo","DeviceTypeOsx.Logo","DeviceTypeWeb.Logo","DeviceTypeWindows.Logo"]}}});var $={};S($,{coerceApiParametersToUint8Array:()=>ke,coerceToUint8Array:()=>A});function ke(e,t,a={}){let r=j?.[e.toLowerCase()]?.[t.toLowerCase()]??[];for(let i of r)A(a,i.split("."));return a}function A(e,t){return t.length===0?Be(e):t[0]==="*"?Array.isArray(e)?e.map(a=>A(a,t.slice(1))):e&&typeof e=="object"?Object.fromEntries(Object.entries(e).map(([a,r])=>[a,A(r,t.slice(1))])):e:(e&&typeof e=="object"&&t[0]in e&&(e[t[0]]=A(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 H=d(()=>{"use strict";G()});var z={};S(z,{findV3ClientConstructor:()=>T});function T(e){let[t,a]=Object.entries(e).find(([r])=>r.endsWith("Client")&&r!=="__Client");return a}var x=d(()=>{"use strict"});var Q,Z=d(()=>{"use strict";Q=["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 O,J=d(()=>{"use strict";Z();O={...Q.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={};S(Y,{getV3ClientPackageName:()=>F});var F,U=d(()=>{"use strict";J();F=e=>{if(e in O)return`@aws-sdk/${O[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={};S(X,{getV3Client:()=>Ie,getV3Command:()=>Ee,loadV3ClientPackage:()=>Ve});function Ve(e){let t=e.startsWith("@aws-sdk/")?e:F(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 Ie(e,t={}){try{let a=T(e.pkg);return new a(t)}catch{throw Error(`No client constructor found within package: ${e.packageName}`)}}function Ee(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();U()});var te=ye(l=>{"use strict";var De=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]}),ve=l&&l.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&De(t,e,a)};Object.defineProperty(l,"__esModule",{value:!0});l.getV3ClientPackageName=l.findV3ClientConstructor=l.coerceApiParametersToUint8Array=void 0;var Me=(H(),f($));Object.defineProperty(l,"coerceApiParametersToUint8Array",{enumerable:!0,get:function(){return Me.coerceApiParametersToUint8Array}});var Pe=(x(),f(z));Object.defineProperty(l,"findV3ClientConstructor",{enumerable:!0,get:function(){return Pe.findV3ClientConstructor}});var we=(U(),f(Y));Object.defineProperty(l,"getV3ClientPackageName",{enumerable:!0,get:function(){return we.getV3ClientPackageName}});ve((ee(),f(X)),l)});var ie={};S(ie,{forceSdkInstallation:()=>Le,handler:()=>Oe});function Le(){h={}}function Te(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`),h={...h,[e]:!0}}async function xe(e,t){let a;try{if(!h[e]&&t==="true")try{Te(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=y(e.ResourceProperties.Create),e.ResourceProperties.Update=y(e.ResourceProperties.Update),e.ResourceProperties.Delete=y(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,C.getV3ClientPackageName)(i.service),n=o.split("/client-")[1],s=xe(o,e.ResourceProperties.InstallLatestAwsSdk);console.log(JSON.stringify({...e,ResponseURL:"..."}));let u;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");u=le({params:g,clientConfig:i.region!==void 0?{region:i.region}:void 0})}s=await s;let p=(0,C.findV3ClientConstructor)(s),c=new p({apiVersion:i.apiVersion,credentials:u,region:i.region}),K=i.action.endsWith("Command")?i.action:`${i.action}Command`,se=K.replace(/Command$/,""),ce=Object.entries(s).find(([m])=>m.toLowerCase()===K.toLowerCase())?.[1],R={};try{let m=await c.send(new ce(i.parameters?(0,C.coerceApiParametersToUint8Array)(n,se,V(i.parameters,r)):{}));R={apiVersion:c.config.apiVersion,region:await c.config.region().catch(()=>{}),...B(m)};let g;i.outputPath?g=[i.outputPath]:i.outputPaths&&(g=i.outputPaths),g?a=I(R,E(g)):a=R}catch(m){let g=m.name??m.constructor.name;if(!i.ignoreErrorCodesMatching||!new RegExp(i.ignoreErrorCodesMatching).test(g))throw m}i.physicalResourceId?.responsePath&&(r=R[i.physicalResourceId.responsePath])}await b(e,"SUCCESS","OK",r,a)}catch(a){console.log(a),await b(e,"FAILED",a.message||"Internal Error",t.logStreamName,{})}}var ae,C,h,re=d(()=>{"use strict";ae=require("child_process"),C=M(te());D();h={}});var Ue={};S(Ue,{PHYSICAL_RESOURCE_ID_REFERENCE:()=>P,handler:()=>Fe,v2handler:()=>ne,v3handler:()=>oe});module.exports=f(Ue);D();function ne(e,t){return(N(),f(_)).handler(e,t)}function oe(e,t){return(re(),f(ie)).handler(e,t)}function Fe(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/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 deleted file mode 100644 index c58c31d67d083..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js.snapshot/asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01/index.js +++ /dev/null @@ -1 +0,0 @@ -"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 810f1145586e4..a28f67264794f 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": { - "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { + "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff": { "source": { - "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", + "path": "asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", + "objectKey": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "01f6c1e0f2202f1ab196c0dcf18b0e2688bcefc5e64ad2c01e8b67c4b28d6bfe": { + "09d36f3063490fb835ca7758fed161869a1606e249a9916a9e41c1f90457e94b": { "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": "01f6c1e0f2202f1ab196c0dcf18b0e2688bcefc5e64ad2c01e8b67c4b28d6bfe.json", + "objectKey": "09d36f3063490fb835ca7758fed161869a1606e249a9916a9e41c1f90457e94b.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 e05ab529648a5..a8d27e5e0d53b 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "S3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 b543caaab9b40..2aea9c38d1ec8 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": { - "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { + "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff": { "source": { - "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", + "path": "asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", + "objectKey": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "01f6c1e0f2202f1ab196c0dcf18b0e2688bcefc5e64ad2c01e8b67c4b28d6bfe": { + "09d36f3063490fb835ca7758fed161869a1606e249a9916a9e41c1f90457e94b": { "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": "01f6c1e0f2202f1ab196c0dcf18b0e2688bcefc5e64ad2c01e8b67c4b28d6bfe.json", + "objectKey": "09d36f3063490fb835ca7758fed161869a1606e249a9916a9e41c1f90457e94b.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 e05ab529648a5..a8d27e5e0d53b 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "S3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 f8dce20e13986..0c7baee2a28e0 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}/01f6c1e0f2202f1ab196c0dcf18b0e2688bcefc5e64ad2c01e8b67c4b28d6bfe.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/09d36f3063490fb835ca7758fed161869a1606e249a9916a9e41c1f90457e94b.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}/01f6c1e0f2202f1ab196c0dcf18b0e2688bcefc5e64ad2c01e8b67c4b28d6bfe.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/09d36f3063490fb835ca7758fed161869a1606e249a9916a9e41c1f90457e94b.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 b87bb178d62c7..1310d5d9a21c2 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "s3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip" }, "handler": "index.handler", "role": { @@ -846,7 +846,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "s3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 1558bf6d5847f..48ecf3c06c7f5 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 @@ } } }, - "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01": { + "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff": { "source": { - "path": "asset.e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01", + "path": "asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip", + "objectKey": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "3c6e88baee690b993945de9375496551c64d56151df990a74acdb5c20c8ad662": { + "ffdf7f81556b41cecca04687ca7dd41033bd6cf9c5f5dd6a00b5db3a51803a8c": { "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": "3c6e88baee690b993945de9375496551c64d56151df990a74acdb5c20c8ad662.json", + "objectKey": "ffdf7f81556b41cecca04687ca7dd41033bd6cf9c5f5dd6a00b5db3a51803a8c.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 76fa4dc084c69..a42ea343b4b46 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "S3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.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 e6fe2ab7576dc..3bccbf34632ad 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}/3c6e88baee690b993945de9375496551c64d56151df990a74acdb5c20c8ad662.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ffdf7f81556b41cecca04687ca7dd41033bd6cf9c5f5dd6a00b5db3a51803a8c.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 ae60bcc54f213..86c581a99d439 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": "e2b4766aeeab2b067017ba499fbd35f6183ad52d2f71bc62e0b7c6fe29219c01.zip" + "s3Key": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip" }, "handler": "index.handler", "role": { diff --git a/packages/@aws-cdk/sdk-v2-to-v3-adapter/lib/coerce-api-parameters.ts b/packages/@aws-cdk/sdk-v2-to-v3-adapter/lib/coerce-api-parameters.ts index 26dda11b9eb88..ab273f9808420 100644 --- a/packages/@aws-cdk/sdk-v2-to-v3-adapter/lib/coerce-api-parameters.ts +++ b/packages/@aws-cdk/sdk-v2-to-v3-adapter/lib/coerce-api-parameters.ts @@ -29,8 +29,15 @@ export function coerceToUint8Array(obj: any, path: string[]): any { return coerceValueToUint8Array(obj); } - if (path[0] === '*' && Array.isArray(obj)) { - return obj.map((e) => coerceToUint8Array(e, path.slice(1))); + if (path[0] === '*') { + if (Array.isArray(obj)) { + return obj.map((e) => coerceToUint8Array(e, path.slice(1))); + } + if (obj && typeof obj === 'object') { + return Object.fromEntries(Object.entries(obj).map(([key, value]) => [key, coerceToUint8Array(value, path.slice(1))])); + } + // The value should have been an array or dict here, but let's be safe and return the original value anyway + return obj; } if (obj && typeof obj === 'object') { diff --git a/packages/@aws-cdk/sdk-v2-to-v3-adapter/lib/parameter-types.ts b/packages/@aws-cdk/sdk-v2-to-v3-adapter/lib/parameter-types.ts index caf992274d837..3e0f0172f8965 100644 --- a/packages/@aws-cdk/sdk-v2-to-v3-adapter/lib/parameter-types.ts +++ b/packages/@aws-cdk/sdk-v2-to-v3-adapter/lib/parameter-types.ts @@ -1,4 +1,4 @@ -// This file was generated from the aws-sdk-js-v3 at Thu Sep 07 2023 15:56:12 GMT+0100 (British Summer Time) +// This file was generated from the aws-sdk-js-v3 at Fri Sep 08 2023 19:02:40 GMT+0200 (Central European Summer Time) /* eslint-disable quote-props,comma-dangle */ export interface TypeCoercionMap { [service: string]: { @@ -71,6 +71,72 @@ export const UINT8ARRAY_PARAMETERS: TypeCoercionMap = { 'InlineChunk' ] }, + 'clouddirectory': { + 'addfacettoobject': [ + 'ObjectAttributeList.*.Value.BinaryValue' + ], + 'attachtypedlink': [ + 'Attributes.*.Value.BinaryValue' + ], + 'batchread': [ + 'Operations.*.GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue', + 'Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue', + 'Operations.*.ListIncomingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue', + 'Operations.*.ListIndex.RangesOnIndexedValues.*.Range.EndValue.BinaryValue', + 'Operations.*.ListIndex.RangesOnIndexedValues.*.Range.StartValue.BinaryValue', + 'Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.EndValue.BinaryValue', + 'Operations.*.ListOutgoingTypedLinks.FilterAttributeRanges.*.Range.StartValue.BinaryValue' + ], + 'batchwrite': [ + 'Operations.*.AddFacetToObject.ObjectAttributeList.*.Value.BinaryValue', + 'Operations.*.AttachTypedLink.Attributes.*.Value.BinaryValue', + 'Operations.*.CreateObject.ObjectAttributeList.*.Value.BinaryValue', + 'Operations.*.DetachTypedLink.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue', + 'Operations.*.UpdateLinkAttributes.AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue', + 'Operations.*.UpdateLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue', + 'Operations.*.UpdateObjectAttributes.AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue' + ], + 'createfacet': [ + 'Attributes.*.AttributeDefinition.DefaultValue.BinaryValue' + ], + 'createobject': [ + 'ObjectAttributeList.*.Value.BinaryValue' + ], + 'createtypedlinkfacet': [ + 'Facet.Attributes.*.DefaultValue.BinaryValue' + ], + 'detachtypedlink': [ + 'TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue' + ], + 'getlinkattributes': [ + 'TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue' + ], + 'listincomingtypedlinks': [ + 'FilterAttributeRanges.*.Range.EndValue.BinaryValue', + 'FilterAttributeRanges.*.Range.StartValue.BinaryValue' + ], + 'listindex': [ + 'RangesOnIndexedValues.*.Range.EndValue.BinaryValue', + 'RangesOnIndexedValues.*.Range.StartValue.BinaryValue' + ], + 'listoutgoingtypedlinks': [ + 'FilterAttributeRanges.*.Range.EndValue.BinaryValue', + 'FilterAttributeRanges.*.Range.StartValue.BinaryValue' + ], + 'updatefacet': [ + 'AttributeUpdates.*.Attribute.AttributeDefinition.DefaultValue.BinaryValue' + ], + 'updatelinkattributes': [ + 'AttributeUpdates.*.AttributeAction.AttributeUpdateValue.BinaryValue', + 'TypedLinkSpecifier.IdentityAttributeValues.*.Value.BinaryValue' + ], + 'updateobjectattributes': [ + 'AttributeUpdates.*.ObjectAttributeAction.ObjectAttributeUpdateValue.BinaryValue' + ], + 'updatetypedlinkfacet': [ + 'AttributeUpdates.*.Attribute.DefaultValue.BinaryValue' + ] + }, 'cloudfront': { 'createfunction': [ 'FunctionCode' @@ -149,6 +215,106 @@ export const UINT8ARRAY_PARAMETERS: TypeCoercionMap = { 'CertificateWallet' ] }, + 'dynamodb': { + 'batchexecutestatement': [ + 'Statements.*.Parameters.*.B', + 'Statements.*.Parameters.*.BS.*' + ], + 'batchgetitem': [ + 'RequestItems.*.Keys.*.*.B', + 'RequestItems.*.Keys.*.*.BS.*' + ], + 'batchwriteitem': [ + 'RequestItems.*.*.DeleteRequest.Key.*.B', + 'RequestItems.*.*.DeleteRequest.Key.*.BS.*', + 'RequestItems.*.*.PutRequest.Item.*.B', + 'RequestItems.*.*.PutRequest.Item.*.BS.*' + ], + 'deleteitem': [ + 'Expected.*.AttributeValueList.*.B', + 'Expected.*.AttributeValueList.*.BS.*', + 'Expected.*.Value.B', + 'Expected.*.Value.BS.*', + 'ExpressionAttributeValues.*.B', + 'ExpressionAttributeValues.*.BS.*', + 'Key.*.B', + 'Key.*.BS.*' + ], + 'executestatement': [ + 'Parameters.*.B', + 'Parameters.*.BS.*' + ], + 'executetransaction': [ + 'TransactStatements.*.Parameters.*.B', + 'TransactStatements.*.Parameters.*.BS.*' + ], + 'getitem': [ + 'Key.*.B', + 'Key.*.BS.*' + ], + 'putitem': [ + 'Expected.*.AttributeValueList.*.B', + 'Expected.*.AttributeValueList.*.BS.*', + 'Expected.*.Value.B', + 'Expected.*.Value.BS.*', + 'ExpressionAttributeValues.*.B', + 'ExpressionAttributeValues.*.BS.*', + 'Item.*.B', + 'Item.*.BS.*' + ], + 'query': [ + 'ExclusiveStartKey.*.B', + 'ExclusiveStartKey.*.BS.*', + 'ExpressionAttributeValues.*.B', + 'ExpressionAttributeValues.*.BS.*', + 'KeyConditions.*.AttributeValueList.*.B', + 'KeyConditions.*.AttributeValueList.*.BS.*', + 'QueryFilter.*.AttributeValueList.*.B', + 'QueryFilter.*.AttributeValueList.*.BS.*' + ], + 'scan': [ + 'ExclusiveStartKey.*.B', + 'ExclusiveStartKey.*.BS.*', + 'ExpressionAttributeValues.*.B', + 'ExpressionAttributeValues.*.BS.*', + 'ScanFilter.*.AttributeValueList.*.B', + 'ScanFilter.*.AttributeValueList.*.BS.*' + ], + 'transactgetitems': [ + 'TransactItems.*.Get.Key.*.B', + 'TransactItems.*.Get.Key.*.BS.*' + ], + 'transactwriteitems': [ + 'TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.B', + 'TransactItems.*.ConditionCheck.ExpressionAttributeValues.*.BS.*', + 'TransactItems.*.ConditionCheck.Key.*.B', + 'TransactItems.*.ConditionCheck.Key.*.BS.*', + 'TransactItems.*.Delete.ExpressionAttributeValues.*.B', + 'TransactItems.*.Delete.ExpressionAttributeValues.*.BS.*', + 'TransactItems.*.Delete.Key.*.B', + 'TransactItems.*.Delete.Key.*.BS.*', + 'TransactItems.*.Put.ExpressionAttributeValues.*.B', + 'TransactItems.*.Put.ExpressionAttributeValues.*.BS.*', + 'TransactItems.*.Put.Item.*.B', + 'TransactItems.*.Put.Item.*.BS.*', + 'TransactItems.*.Update.ExpressionAttributeValues.*.B', + 'TransactItems.*.Update.ExpressionAttributeValues.*.BS.*', + 'TransactItems.*.Update.Key.*.B', + 'TransactItems.*.Update.Key.*.BS.*' + ], + 'updateitem': [ + 'AttributeUpdates.*.Value.B', + 'AttributeUpdates.*.Value.BS.*', + 'Expected.*.AttributeValueList.*.B', + 'Expected.*.AttributeValueList.*.BS.*', + 'Expected.*.Value.B', + 'Expected.*.Value.BS.*', + 'ExpressionAttributeValues.*.B', + 'ExpressionAttributeValues.*.BS.*', + 'Key.*.B', + 'Key.*.BS.*' + ] + }, 'ebs': { 'putsnapshotblock': [ 'BlockData' @@ -189,6 +355,11 @@ export const UINT8ARRAY_PARAMETERS: TypeCoercionMap = { 'Records.*.Data' ] }, + 'frauddetector': { + 'geteventprediction': [ + 'externalModelEndpointDataBlobs.*.byteBuffer' + ] + }, 'gamelift': { 'createscript': [ 'ZipFile' @@ -212,10 +383,12 @@ export const UINT8ARRAY_PARAMETERS: TypeCoercionMap = { }, 'glue': { 'updatecolumnstatisticsforpartition': [ - 'ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue' + 'ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue', + 'ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue' ], 'updatecolumnstatisticsfortable': [ - 'ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue' + 'ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MaximumValue.UnscaledValue', + 'ColumnStatisticsList.*.StatisticsData.DecimalColumnStatisticsData.MinimumValue.UnscaledValue' ] }, 'greengrass': { @@ -315,7 +488,8 @@ export const UINT8ARRAY_PARAMETERS: TypeCoercionMap = { 'Recipient.AttestationDocument' ], 'importkeymaterial': [ - 'EncryptedKeyMaterial' + 'EncryptedKeyMaterial', + 'ImportToken' ], 'reencrypt': [ 'CiphertextBlob' @@ -361,6 +535,9 @@ export const UINT8ARRAY_PARAMETERS: TypeCoercionMap = { ], 'recognizeutterance': [ 'inputStream' + ], + 'startconversation': [ + 'requestEventStream.AudioInputEvent.audioChunk' ] }, 'lookoutvision': { @@ -376,6 +553,12 @@ export const UINT8ARRAY_PARAMETERS: TypeCoercionMap = { 'Body' ] }, + 'medical-imaging': { + 'updateimagesetmetadata': [ + 'updateImageSetMetadataUpdates.DICOMUpdates.removableAttributes', + 'updateImageSetMetadataUpdates.DICOMUpdates.updatableAttributes' + ] + }, 'mobiletargeting': { 'sendmessages': [ 'MessageRequest.MessageConfiguration.EmailMessage.RawEmail.Data' @@ -395,9 +578,18 @@ export const UINT8ARRAY_PARAMETERS: TypeCoercionMap = { 'AssetBundleImportSource.Body' ] }, + 'rds-data': { + 'batchexecutestatement': [ + 'parameterSets.*.*.value.blobValue' + ], + 'executestatement': [ + 'parameters.*.value.blobValue' + ] + }, 'rekognition': { 'comparefaces': [ - 'SourceImage.Bytes' + 'SourceImage.Bytes', + 'TargetImage.Bytes' ], 'detectcustomlabels': [ 'Image.Bytes' @@ -431,6 +623,9 @@ export const UINT8ARRAY_PARAMETERS: TypeCoercionMap = { ], 'updatedatasetentries': [ 'Changes.GroundTruth' + ], + 'startfacelivenesssession': [ + 'LivenessRequestStream.VideoEvent.VideoChunk' ] }, 's3': { @@ -481,6 +676,28 @@ export const UINT8ARRAY_PARAMETERS: TypeCoercionMap = { 'payload' ] }, + 'sns': { + 'publish': [ + 'MessageAttributes.*.BinaryValue' + ], + 'publishbatch': [ + 'PublishBatchRequestEntries.*.MessageAttributes.*.BinaryValue' + ] + }, + 'sqs': { + 'sendmessage': [ + 'MessageAttributes.*.BinaryListValues.*', + 'MessageAttributes.*.BinaryValue', + 'MessageSystemAttributes.*.BinaryListValues.*', + 'MessageSystemAttributes.*.BinaryValue' + ], + 'sendmessagebatch': [ + 'Entries.*.MessageAttributes.*.BinaryListValues.*', + 'Entries.*.MessageAttributes.*.BinaryValue', + 'Entries.*.MessageSystemAttributes.*.BinaryListValues.*', + 'Entries.*.MessageSystemAttributes.*.BinaryValue' + ] + }, 'ssm': { 'registertaskwithmaintenancewindow': [ 'TaskInvocationParameters.Lambda.Payload' @@ -516,6 +733,17 @@ export const UINT8ARRAY_PARAMETERS: TypeCoercionMap = { 'Document.Bytes' ] }, + 'transcribe': { + 'startcallanalyticsstreamtranscription': [ + 'AudioStream.AudioEvent.AudioChunk' + ], + 'startmedicalstreamtranscription': [ + 'AudioStream.AudioEvent.AudioChunk' + ], + 'startstreamtranscription': [ + 'AudioStream.AudioEvent.AudioChunk' + ] + }, 'translate': { 'importterminology': [ 'TerminologyData.File' @@ -556,7 +784,11 @@ export const UINT8ARRAY_PARAMETERS: TypeCoercionMap = { 'DeviceTypeAndroid.Logo', 'DeviceTypeIos.Logo', 'DeviceTypeIos.Logo2x', - 'DeviceTypeIos.Logo3x' + 'DeviceTypeIos.Logo3x', + 'DeviceTypeLinux.Logo', + 'DeviceTypeOsx.Logo', + 'DeviceTypeWeb.Logo', + 'DeviceTypeWindows.Logo' ] } }; diff --git a/packages/@aws-cdk/sdk-v2-to-v3-adapter/test/coerce-api-parameters.test.ts b/packages/@aws-cdk/sdk-v2-to-v3-adapter/test/coerce-api-parameters.test.ts index f97d4bf3abb66..742da083c75bd 100644 --- a/packages/@aws-cdk/sdk-v2-to-v3-adapter/test/coerce-api-parameters.test.ts +++ b/packages/@aws-cdk/sdk-v2-to-v3-adapter/test/coerce-api-parameters.test.ts @@ -225,4 +225,22 @@ describe('given an api call description', () => { ], }); }); + + test('can convert string parameters to Uint8Array in map & union', async () => { + const params = coerceApiParametersToUint8Array('dynamodb', 'putItem', { + Item: { + Binary: { + B: 'abc', + }, + }, + }); + + expect(params).toMatchObject({ + Item: { + Binary: { + B: new Uint8Array([97, 98, 99]), + }, + }, + }); + }); }); \ No newline at end of file diff --git a/scripts/update-sdkv3-parameters-model.sh b/scripts/update-sdkv3-parameters-model.sh index 47d2d60769cfc..cfb325e424246 100755 --- a/scripts/update-sdkv3-parameters-model.sh +++ b/scripts/update-sdkv3-parameters-model.sh @@ -5,6 +5,7 @@ tmpdir=$(mktemp -d) zip=https://github.com/aws/aws-sdk-js-v3/archive/refs/heads/main.zip ziprootentry=aws-sdk-js-v3-main target_file=packages/@aws-cdk/sdk-v2-to-v3-adapter/lib/parameter-types.ts +smithy_subdir=codegen/sdk-codegen/aws-models # Use the GitHub feature to download a zip archive of the current state of a branch # (Cloning --depth 1 takes about twice as long, cloning with full depth many minutes) @@ -13,7 +14,7 @@ curl -SfL -o $tmpdir/main.zip "$zip" (cd $tmpdir && unzip -q main.zip) echo "🖨️ Generating..." -npx ts-node $scriptdir/update-sdkv3-parameters-model.ts $tmpdir/$ziprootentry > "$target_file" +npx ts-node $scriptdir/update-sdkv3-parameters-model.ts $tmpdir/$ziprootentry/$smithy_subdir > "$target_file" echo "🚮 Cleaning up..." rm -rf $tmpdir diff --git a/scripts/update-sdkv3-parameters-model.ts b/scripts/update-sdkv3-parameters-model.ts index 9ac7cc85f2f34..e24c1749acecd 100644 --- a/scripts/update-sdkv3-parameters-model.ts +++ b/scripts/update-sdkv3-parameters-model.ts @@ -13,11 +13,10 @@ async function main(argv: string[]) { if (!argv[0]) { throw new Error('Usage: update-sdkv3-parameters-model '); } - const root = argv[0]; + const dir = argv[0]; const blobMapping: TypeCoercionMap = {}; - const dir = path.join(root, 'codegen', 'sdk-codegen', 'aws-models'); for (const entry of await fs.readdir(dir, { withFileTypes: true, encoding: 'utf-8' })) { if (entry.isFile() && entry.name.endsWith('.json')) { const contents = JSON.parse(await fs.readFile(path.join(dir, entry.name), { encoding: 'utf-8' })); @@ -83,14 +82,14 @@ async function doFile(blobMap: TypeCoercionMap, model: SmithyFile) { if (id.startsWith('smithy.api#') || seen.includes(id)) { return; } - seen.push(id); + seen = [...seen, id]; const shape = shapes[id]; if (isShape('blob')(shape)) { addToBlobs(opName, memberPath); return; } - if (isShape('structure')(shape)) { + if (isShape('structure')(shape) || isShape('union')(shape)) { for (const [field, member] of Object.entries(shape.members ?? {}).sort(sortByKey)) { recurse(member.target, opName, [...memberPath, field], seen); } @@ -100,6 +99,11 @@ async function doFile(blobMap: TypeCoercionMap, model: SmithyFile) { recurse(shape.member.target, opName, [...memberPath, '*'], seen); return; } + if (isShape('map')(shape)) { + // Keys can't be Uint8Arrays anyway in JS, so check only values + recurse(shape.value.target, opName, [...memberPath, '*'], seen); + return; + } } function addToBlobs(opName: string, memberPath: string[]) { @@ -128,6 +132,8 @@ type SmithyShape = | { type: 'operation', input?: SmithyTarget, output: SmithyTarget, traits?: SmithyTraits } | { type: 'structure', members?: Record, traits?: SmithyTraits } | { type: 'list', member: SmithyTarget } + | { type: 'map', key: SmithyTarget, value: SmithyTarget } + | { type: 'union', members?: Record } | { type: string } ;