@cdklabs/cdk-ssm-documents 0.0.64 → 0.0.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +11 -11
- package/lib/construct/synth-utils.js +1 -1
- package/lib/document/automation-document.js +1 -1
- package/lib/document/command-document.js +1 -1
- package/lib/document/document-builder.js +2 -2
- package/lib/document/ssm-document.js +1 -1
- package/lib/domain/aws-service.js +1 -1
- package/lib/domain/choice.js +1 -1
- package/lib/domain/data-type.js +1 -1
- package/lib/domain/enum/install-action.js +2 -2
- package/lib/domain/enum/install-uninstall-repair.js +2 -2
- package/lib/domain/enum/installation-type.js +2 -2
- package/lib/domain/enum/package-name.js +2 -2
- package/lib/domain/input.js +1 -1
- package/lib/domain/operation.js +1 -1
- package/lib/domain/platform.js +1 -1
- package/lib/domain/precondition.js +1 -1
- package/lib/incident-response/incident-response.js +3 -3
- package/lib/interface/approve-hook.js +2 -2
- package/lib/interface/auth-method.js +3 -3
- package/lib/interface/aws-invoker.js +2 -2
- package/lib/interface/downloadable-content.js +8 -8
- package/lib/interface/environment.js +3 -3
- package/lib/interface/execute-automation-hook/api-execute-automation-hook.js +1 -1
- package/lib/interface/observer.js +1 -1
- package/lib/interface/on-failure.js +6 -6
- package/lib/interface/pause-hook.js +2 -2
- package/lib/interface/run-command-hook/api-run-command-hook.js +1 -1
- package/lib/interface/run-document-location.js +2 -2
- package/lib/interface/sleep-hook.js +2 -2
- package/lib/interface/step-ref.js +1 -1
- package/lib/interface/variables/boolean-variable.js +2 -2
- package/lib/interface/variables/map-list-variable.js +2 -2
- package/lib/interface/variables/number-variable.js +2 -2
- package/lib/interface/variables/secure-string-variable.js +4 -4
- package/lib/interface/variables/string-list-variable.js +2 -2
- package/lib/interface/variables/string-map-variable.js +2 -2
- package/lib/interface/variables/string-variable.js +4 -4
- package/lib/interface/variables/variable.js +2 -2
- package/lib/interface/webhook.js +1 -1
- package/lib/parent-steps/automation/approve-step.js +1 -1
- package/lib/parent-steps/automation/assert-aws-resource-step.js +1 -1
- package/lib/parent-steps/automation/aws-api-step.js +1 -1
- package/lib/parent-steps/automation/branch-step.js +1 -1
- package/lib/parent-steps/automation/change-instance-state-step.js +3 -3
- package/lib/parent-steps/automation/copy-image-step.js +1 -1
- package/lib/parent-steps/automation/create-image-step.js +1 -1
- package/lib/parent-steps/automation/create-stack-step.js +3 -3
- package/lib/parent-steps/automation/create-tags-step.js +3 -3
- package/lib/parent-steps/automation/delete-image-step.js +1 -1
- package/lib/parent-steps/automation/delete-stack-step.js +1 -1
- package/lib/parent-steps/automation/execute-automation-step.js +1 -1
- package/lib/parent-steps/automation/execute-script-step.js +5 -5
- package/lib/parent-steps/automation/execute-state-machine-step.js +1 -1
- package/lib/parent-steps/automation/invoke-lambda-function-step.js +1 -1
- package/lib/parent-steps/automation/invoke-webhook-step.js +1 -1
- package/lib/parent-steps/automation/pause-step.js +1 -1
- package/lib/parent-steps/automation/run-command-step.js +3 -3
- package/lib/parent-steps/automation/run-instance-step.js +1 -1
- package/lib/parent-steps/automation/sleep-step.js +1 -1
- package/lib/parent-steps/automation/update-variable.js +1 -1
- package/lib/parent-steps/automation/wait-for-resource-step.js +1 -1
- package/lib/parent-steps/automation-step.js +1 -1
- package/lib/parent-steps/command/applications-step.js +1 -1
- package/lib/parent-steps/command/configure-docker-step.js +1 -1
- package/lib/parent-steps/command/configure-package-step.js +1 -1
- package/lib/parent-steps/command/domain-join-step.js +1 -1
- package/lib/parent-steps/command/download-content-step.js +1 -1
- package/lib/parent-steps/command/ps-module-step.js +1 -1
- package/lib/parent-steps/command/run-docker-action-step.js +1 -1
- package/lib/parent-steps/command/run-document-step.js +1 -1
- package/lib/parent-steps/command/run-powershell-script-step.js +1 -1
- package/lib/parent-steps/command/run-shell-script-step.js +1 -1
- package/lib/parent-steps/command/software-inventory-step.js +1 -1
- package/lib/parent-steps/command/update-agent-step.js +1 -1
- package/lib/parent-steps/command/update-ssm-agent-step.js +1 -1
- package/lib/parent-steps/command-step.js +1 -1
- package/lib/parent-steps/step.js +1 -1
- package/lib/patterns/automation/composite-step.js +2 -2
- package/lib/patterns/automation/reboot-instance-and-wait.js +1 -1
- package/lib/patterns/automation/string-step.js +1 -1
- package/lib/patterns/document/string-document.js +1 -1
- package/lib/patterns/document/timed-document.js +1 -1
- package/lib/samples/hello-world.js +1 -1
- package/lib/simulation/automation/approve-simulation.js +1 -1
- package/lib/simulation/automation/assert-aws-resource-simulation.js +1 -1
- package/lib/simulation/automation/automation-simulation-base.js +1 -1
- package/lib/simulation/automation/aws-api-simulation.js +1 -1
- package/lib/simulation/automation/branch-simulation.js +1 -1
- package/lib/simulation/automation/change-instance-state-simulation.js +1 -1
- package/lib/simulation/automation/copy-image-simulation.js +1 -1
- package/lib/simulation/automation/create-image-simulation.js +1 -1
- package/lib/simulation/automation/create-stack-simulation.js +1 -1
- package/lib/simulation/automation/create-tags-simulation.js +1 -1
- package/lib/simulation/automation/delete-image-simulation.js +1 -1
- package/lib/simulation/automation/delete-stack-simulation.js +1 -1
- package/lib/simulation/automation/execute-script-simulation.js +1 -1
- package/lib/simulation/automation/execute-state-machine-simulation.js +1 -1
- package/lib/simulation/automation/invoke-lambda-function-simulation.js +1 -1
- package/lib/simulation/automation/invoke-webhook-simulation.js +1 -1
- package/lib/simulation/automation/pause-simulation.js +1 -1
- package/lib/simulation/automation/run-command-simulation.js +1 -1
- package/lib/simulation/automation/run-instance-simulation.js +1 -1
- package/lib/simulation/automation/sleep-simulation.js +1 -1
- package/lib/simulation/automation/update-variable-simulation.js +1 -1
- package/lib/simulation/automation/wait-for-resource-simulation.js +1 -1
- package/lib/simulation/automation-step-simulation.js +1 -1
- package/lib/simulation/command/command-simulation-base.js +1 -1
- package/lib/simulation/command/ps-module-simulation.js +1 -1
- package/lib/simulation/command/run-powershell-script-simulation.js +1 -1
- package/lib/simulation/command/run-shell-script-simulation.js +1 -1
- package/lib/simulation/command-step-simulation.js +1 -1
- package/lib/simulation/document/automation-simulation.js +1 -1
- package/lib/simulation/document/command-simulation.js +1 -1
- package/lib/simulation/simulation.js +1 -1
- package/node_modules/@aws-sdk/checksums/dist-cjs/flexible-checksums/getCrc32ChecksumAlgorithmFunction.browser.js +2 -6
- package/node_modules/@aws-sdk/checksums/dist-cjs/flexible-checksums/getCrc32ChecksumAlgorithmFunction.js +6 -11
- package/node_modules/@aws-sdk/checksums/dist-cjs/index.js +56 -56
- package/node_modules/@aws-sdk/checksums/package.json +7 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +449 -469
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/CloudFormationServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/errors.js +59 -91
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/schemas/schemas_0.js +814 -533
- package/node_modules/@aws-sdk/client-cloudformation/package.json +9 -9
- package/node_modules/@aws-sdk/client-cloudwatch/README.md +21 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/index.js +255 -233
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/models/CloudWatchServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/models/errors.js +93 -68
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/runtimeConfig.browser.js +25 -29
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/runtimeConfig.js +33 -37
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/schemas/schemas_0.js +476 -259
- package/node_modules/@aws-sdk/client-cloudwatch/dist-es/CloudWatch.js +6 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-es/commands/AssociateDatasetKmsKeyCommand.js +16 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-es/commands/DisassociateDatasetKmsKeyCommand.js +16 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-es/commands/GetDatasetCommand.js +16 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-es/commands/index.js +3 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-es/models/errors.js +68 -26
- package/node_modules/@aws-sdk/client-cloudwatch/dist-es/schemas/schemas_0.js +73 -1
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/CloudWatch.d.ts +21 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/CloudWatchClient.d.ts +5 -2
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/AssociateDatasetKmsKeyCommand.d.ts +161 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/DisassociateDatasetKmsKeyCommand.d.ts +105 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/GetDatasetCommand.d.ts +91 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/models/errors.d.ts +74 -23
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/models/models_0.d.ts +90 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/schemas/schemas_0.d.ts +12 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/CloudWatch.d.ts +51 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/CloudWatchClient.d.ts +18 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/commands/AssociateDatasetKmsKeyCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/commands/DisassociateDatasetKmsKeyCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/commands/GetDatasetCommand.d.ts +49 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/models/errors.d.ts +40 -16
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/models/models_0.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/schemas/schemas_0.d.ts +12 -0
- package/node_modules/@aws-sdk/client-cloudwatch/package.json +13 -13
- package/node_modules/@aws-sdk/client-ec2/README.md +14 -0
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +2903 -2879
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/models/EC2ServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/schemas/schemas_0.js +6980 -4554
- package/node_modules/@aws-sdk/client-ec2/dist-es/EC2.js +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/AttachImageWatermarkCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/DetachImageWatermarkCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/index.js +2 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/models/enums.js +5 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/schemas/schemas_0.js +108 -13
- package/node_modules/@aws-sdk/client-ec2/dist-types/EC2.d.ts +14 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/EC2Client.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/AttachImageWatermarkCommand.d.ts +84 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CancelCapacityReservationCommand.d.ts +16 -10
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateDefaultSubnetCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateDefaultVpcCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateFlowLogsCommand.d.ts +8 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateRouteServerPeerCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateRouteTableCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteSecurityGroupCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteSnapshotCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteSpotDatafeedSubscriptionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeFlowLogsCommand.d.ts +8 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeImagesCommand.d.ts +9 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeImportSnapshotTasksCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstanceAttributeCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstanceImageMetadataCommand.d.ts +9 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeSpotInstanceRequestsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeSpotPriceHistoryCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeStaleSecurityGroupsCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeVolumesModificationsCommand.d.ts +0 -5
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DetachImageWatermarkCommand.d.ts +82 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityManagerAttributesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityManagerMetricDataCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyIpamScopeCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyLaunchTemplateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyLocalGatewayRouteCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyManagedPrefixListCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyVolumeCommand.d.ts +0 -5
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/index.d.ts +2 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/enums.d.ts +13 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_0.d.ts +38 -23
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_1.d.ts +45 -128
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_2.d.ts +128 -48
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_3.d.ts +109 -161
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_4.d.ts +169 -219
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_5.d.ts +250 -353
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_6.d.ts +351 -182
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_7.d.ts +178 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/schemas/schemas_0.d.ts +9 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2.d.ts +34 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2Client.d.ts +12 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/AttachImageWatermarkCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateDefaultSubnetCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateDefaultVpcCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateRouteServerPeerCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateRouteTableCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteSecurityGroupCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteSnapshotCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteSpotDatafeedSubscriptionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeImportSnapshotTasksCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeInstanceAttributeCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeSpotInstanceRequestsCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeSpotPriceHistoryCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeStaleSecurityGroupsCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DetachImageWatermarkCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetCapacityManagerAttributesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetCapacityManagerMetricDataCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyIpamScopeCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyLaunchTemplateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyLocalGatewayRouteCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyManagedPrefixListCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/enums.d.ts +7 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_0.d.ts +9 -7
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_1.d.ts +13 -26
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_2.d.ts +29 -12
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_3.d.ts +25 -36
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_4.d.ts +40 -35
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_5.d.ts +49 -67
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_6.d.ts +66 -47
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_7.d.ts +40 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -0
- package/node_modules/@aws-sdk/client-ec2/package.json +15 -15
- package/node_modules/@aws-sdk/client-iam/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-iam/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-iam/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +634 -654
- package/node_modules/@aws-sdk/client-iam/dist-cjs/models/IAMServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-iam/dist-cjs/models/errors.js +71 -109
- package/node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-iam/dist-cjs/schemas/schemas_0.js +1006 -665
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateServiceSpecificCredentialCommand.d.ts +18 -3
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListServiceSpecificCredentialsCommand.d.ts +17 -2
- package/node_modules/@aws-sdk/client-iam/dist-types/models/models_0.d.ts +5 -2
- package/node_modules/@aws-sdk/client-iam/package.json +14 -14
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +368 -386
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/models/LambdaServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/models/errors.js +229 -145
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.browser.js +24 -28
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.js +32 -36
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/schemas/schemas_0.js +959 -581
- package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +2 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/models/errors.js +134 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +100 -31
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/AddPermissionCommand.d.ts +5 -2
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateAliasCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateEventSourceMappingCommand.d.ts +28 -28
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateFunctionCommand.d.ts +14 -14
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteAliasCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +16 -16
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteFunctionUrlConfigCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteLayerVersionCommand.d.ts +6 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetEventSourceMappingCommand.d.ts +16 -16
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionCodeSigningConfigCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionCommand.d.ts +8 -8
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionConfigurationCommand.d.ts +8 -8
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetLayerVersionByArnCommand.d.ts +4 -4
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetLayerVersionCommand.d.ts +4 -4
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetRuntimeManagementConfigCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/InvokeAsyncCommand.d.ts +72 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/InvokeCommand.d.ts +21 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/InvokeWithResponseStreamCommand.d.ts +6 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListEventSourceMappingsCommand.d.ts +16 -16
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListFunctionsCommand.d.ts +8 -8
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListLayerVersionsCommand.d.ts +6 -6
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListLayersCommand.d.ts +6 -6
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListVersionsByFunctionCommand.d.ts +8 -8
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishLayerVersionCommand.d.ts +8 -8
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishVersionCommand.d.ts +8 -8
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PutProvisionedConcurrencyConfigCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/RemovePermissionCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/SendDurableExecutionCallbackFailureCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/SendDurableExecutionCallbackHeartbeatCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/SendDurableExecutionCallbackSuccessCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +32 -32
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionCodeCommand.d.ts +12 -12
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +9 -9
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +2 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/errors.d.ts +173 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +158 -158
- package/node_modules/@aws-sdk/client-lambda/dist-types/schemas/schemas_0.d.ts +9 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +2 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/errors.d.ts +88 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +33 -33
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -0
- package/node_modules/@aws-sdk/client-lambda/package.json +13 -13
- package/node_modules/@aws-sdk/client-s3/README.md +35 -0
- package/node_modules/@aws-sdk/client-s3/dist-cjs/auth/httpAuthSchemeProvider.js +15 -19
- package/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +646 -535
- package/node_modules/@aws-sdk/client-s3/dist-cjs/models/S3ServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-s3/dist-cjs/models/errors.js +106 -52
- package/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.browser.js +29 -33
- package/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js +43 -47
- package/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js +25 -29
- package/node_modules/@aws-sdk/client-s3/dist-cjs/schemas/schemas_0.js +1256 -740
- package/node_modules/@aws-sdk/client-s3/dist-es/S3.js +12 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectAnnotationCommand.js +23 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectAnnotationCommand.js +28 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/ListObjectAnnotationsCommand.js +23 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectAnnotationCommand.js +29 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/UpdateBucketMetadataAnnotationTableConfigurationCommand.js +27 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/index.js +5 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/models/enums.js +12 -1
- package/node_modules/@aws-sdk/client-s3/dist-es/models/errors.js +76 -4
- package/node_modules/@aws-sdk/client-s3/dist-es/pagination/ListObjectAnnotationsPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/pagination/index.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/schemas/schemas_0.js +260 -100
- package/node_modules/@aws-sdk/client-s3/dist-types/S3.d.ts +42 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/S3Client.d.ts +7 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/CopyObjectCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateBucketMetadataConfigurationCommand.d.ts +27 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteObjectAnnotationCommand.d.ts +119 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketMetadataConfigurationCommand.d.ts +11 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +3 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectAnnotationCommand.d.ts +141 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListObjectAnnotationsCommand.d.ts +138 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +3 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectAnnotationCommand.d.ts +166 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/RenameObjectCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/RestoreObjectCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/UpdateBucketMetadataAnnotationTableConfigurationCommand.d.ts +110 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/index.d.ts +5 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/models/enums.d.ts +29 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/models/errors.d.ts +76 -4
- package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +925 -549
- package/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts +380 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/pagination/ListObjectAnnotationsPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/pagination/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/schemas/schemas_0.d.ts +24 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3.d.ts +98 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3Client.d.ts +30 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteObjectAnnotationCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetObjectAnnotationCommand.d.ts +61 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListObjectAnnotationsCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutObjectAnnotationCommand.d.ts +61 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/RenameObjectCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/RestoreObjectCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/UpdateBucketMetadataAnnotationTableConfigurationCommand.d.ts +49 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/enums.d.ts +18 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/errors.d.ts +41 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_0.d.ts +138 -64
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_1.d.ts +75 -5
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/pagination/ListObjectAnnotationsPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/schemas/schemas_0.d.ts +24 -0
- package/node_modules/@aws-sdk/client-s3/package.json +21 -21
- package/node_modules/@aws-sdk/client-sns/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-sns/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-sns/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-sns/dist-cjs/index.js +174 -194
- package/node_modules/@aws-sdk/client-sns/dist-cjs/models/SNSServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-sns/dist-cjs/models/errors.js +69 -106
- package/node_modules/@aws-sdk/client-sns/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-sns/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-sns/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-sns/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-sns/dist-cjs/schemas/schemas_0.js +331 -218
- package/node_modules/@aws-sdk/client-sns/package.json +10 -10
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/index.js +118 -138
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/models/SQSServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/models/errors.js +57 -88
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/runtimeConfig.browser.js +24 -28
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/runtimeConfig.js +31 -35
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/schemas/schemas_0.js +222 -150
- package/node_modules/@aws-sdk/client-sqs/package.json +16 -16
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +543 -563
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/models/SSMServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/models/errors.js +279 -423
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/schemas/schemas_0.js +1693 -1109
- package/node_modules/@aws-sdk/client-ssm/package.json +10 -10
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +19 -2274
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +2 -4
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.browser.js +297 -23
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +327 -52
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.native.js +297 -23
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +19 -21
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +107 -109
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -4
- package/node_modules/@aws-sdk/core/dist-es/index.js +3 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partitions.js +276 -1
- package/node_modules/@aws-sdk/core/dist-types/index.d.ts +5 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +5 -5
- package/node_modules/@aws-sdk/core/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +4 -6
- package/node_modules/@aws-sdk/credential-provider-env/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +3 -7
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +12 -16
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +16 -21
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +14 -18
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +1 -5
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +2 -5
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +2 -7
- package/node_modules/@aws-sdk/credential-provider-http/package.json +9 -8
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +47 -41
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +8 -4
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +14 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
- package/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +31 -33
- package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +16 -18
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +11 -13
- package/node_modules/@aws-sdk/credential-provider-process/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +26 -25
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js +3 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +4 -1
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +12 -10
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +10 -14
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +2 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +3 -27
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +8 -8
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js +18 -23
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-sdk-ec2/dist-cjs/index.js +11 -13
- package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +1 -518
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3/index.browser.js +31 -33
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3/index.js +37 -39
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3-control/index.js +14 -16
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/index.d.ts +2 -2
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/index.d.ts +2 -2
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +17 -14
- package/node_modules/@aws-sdk/middleware-sdk-s3/s3-control.d.ts +7 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/s3-control.js +5 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/s3.d.ts +7 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/s3.js +5 -0
- package/node_modules/@aws-sdk/middleware-sdk-sqs/dist-cjs/index.js +9 -11
- package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +7 -7
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +82 -84
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +158 -119
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +80 -82
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +80 -82
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +99 -101
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +4 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +70 -35
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +3 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +11 -10
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +4 -6
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +9 -8
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +26 -28
- package/node_modules/@aws-sdk/token-providers/package.json +8 -8
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +7 -8
- package/node_modules/@aws-sdk/types/package.json +5 -5
- package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -2
- package/node_modules/@aws-sdk/util-locate-window/package.json +5 -5
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +2 -4
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-external/nodable_entities.js +4 -7
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.browser.js +2 -5
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +7 -10
- package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/CHANGELOG.md +8 -0
- package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/README.md +9 -0
- package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/package.json +7 -3
- package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/strnum.js +9 -1
- package/node_modules/@aws-sdk/xml-builder/package.json +5 -5
- package/node_modules/@nodable/entities/package.json +4 -1
- package/node_modules/@nodable/entities/src/EntityDecoder.js +104 -3
- package/node_modules/@nodable/entities/src/index.d.ts +77 -0
- package/node_modules/@nodable/entities/src/index.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/index.js +13 -15
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +543 -398
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +2 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +7 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +3 -5
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +23 -24
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +10 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +38 -39
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +10 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +14 -17
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +20 -23
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +9 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +11 -13
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +68 -61
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +26 -27
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +28 -29
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +5 -7
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -6
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +23 -25
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -6
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +2 -4
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/httpSigningMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +326 -269
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +192 -103
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/endpointMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +10 -2
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRateLimiter.js +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-decode.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-encode.d.ts +8 -4
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
- package/node_modules/@smithy/core/package.json +18 -17
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +23 -24
- package/node_modules/@smithy/credential-provider-imds/package.json +7 -7
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +6 -8
- package/node_modules/@smithy/fetch-http-handler/package.json +10 -10
- package/node_modules/@smithy/middleware-compression/dist-cjs/compressStream.browser.js +3 -7
- package/node_modules/@smithy/middleware-compression/dist-cjs/compressStream.js +2 -6
- package/node_modules/@smithy/middleware-compression/dist-cjs/compressString.browser.js +4 -8
- package/node_modules/@smithy/middleware-compression/dist-cjs/compressString.js +7 -11
- package/node_modules/@smithy/middleware-compression/dist-cjs/index.js +18 -20
- package/node_modules/@smithy/middleware-compression/package.json +6 -6
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -13
- package/node_modules/@smithy/node-http-handler/package.json +8 -8
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +27 -29
- package/node_modules/@smithy/signature-v4/package.json +7 -7
- package/node_modules/@smithy/types/dist-cjs/index.js +23 -18
- package/node_modules/@smithy/types/package.json +10 -10
- package/node_modules/anynum/LICENSE +21 -0
- package/node_modules/anynum/README.md +142 -0
- package/node_modules/anynum/anynum.js +135 -0
- package/node_modules/anynum/digitTable.js +116 -0
- package/node_modules/anynum/package.json +42 -0
- package/node_modules/path-expression-matcher/README.md +82 -7
- package/node_modules/path-expression-matcher/lib/pem.cjs +1 -1
- package/node_modules/path-expression-matcher/lib/pem.d.cts +83 -2
- package/node_modules/path-expression-matcher/lib/pem.min.js +1 -1
- package/node_modules/path-expression-matcher/lib/pem.min.js.map +1 -1
- package/node_modules/path-expression-matcher/package.json +3 -2
- package/node_modules/path-expression-matcher/src/ExpressionSet.js +18 -2
- package/node_modules/path-expression-matcher/src/Matcher.js +93 -3
- package/node_modules/path-expression-matcher/src/index.d.ts +67 -1
- package/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js +0 -8
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.browser.js +0 -34
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/index.browser.js +0 -1
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/index.browser.d.ts +0 -2
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/index.browser.d.ts +0 -39
- /package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/LICENSE +0 -0
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
const { Uint8ArrayBlobAdapter, sdkStreamMixin, splitEvery, splitHeader, fromBase64, _parseEpochTimestamp, _parseRfc7231DateTime, _parseRfc3339DateTimeWithOffset, LazyJsonString, NumericValue, toUtf8, fromUtf8, generateIdempotencyToken, toBase64, dateToUtcString, quoteHeader } = require("@smithy/core/serde");
|
|
2
|
+
const { TypeRegistry, NormalizedSchema, translateTraits } = require("@smithy/core/schema");
|
|
3
|
+
const { HttpRequest, HttpResponse } = require("@smithy/core/transport");
|
|
4
|
+
const { isValidHostname, parseQueryString, parseUrl } = require("@smithy/core/transport");
|
|
5
|
+
exports.HttpRequest = HttpRequest;
|
|
6
|
+
exports.HttpResponse = HttpResponse;
|
|
7
|
+
exports.isValidHostname = isValidHostname;
|
|
8
|
+
exports.parseQueryString = parseQueryString;
|
|
9
|
+
exports.parseUrl = parseUrl;
|
|
10
|
+
const { FieldPosition } = require("@smithy/types");
|
|
7
11
|
|
|
8
12
|
const collectBody = async (streamBody = new Uint8Array(), context) => {
|
|
9
13
|
if (streamBody instanceof Uint8Array) {
|
|
10
|
-
return
|
|
14
|
+
return Uint8ArrayBlobAdapter.mutate(streamBody);
|
|
11
15
|
}
|
|
12
16
|
if (!streamBody) {
|
|
13
|
-
return
|
|
17
|
+
return Uint8ArrayBlobAdapter.mutate(new Uint8Array());
|
|
14
18
|
}
|
|
15
19
|
const fromContext = context.streamCollector(streamBody);
|
|
16
|
-
return
|
|
20
|
+
return Uint8ArrayBlobAdapter.mutate(await fromContext);
|
|
17
21
|
};
|
|
18
22
|
|
|
19
23
|
function extendedEncodeURIComponent(str) {
|
|
@@ -35,16 +39,16 @@ class HttpProtocol extends SerdeContext {
|
|
|
35
39
|
constructor(options) {
|
|
36
40
|
super();
|
|
37
41
|
this.options = options;
|
|
38
|
-
this.compositeErrorRegistry =
|
|
42
|
+
this.compositeErrorRegistry = TypeRegistry.for(options.defaultNamespace);
|
|
39
43
|
for (const etr of options.errorTypeRegistries ?? []) {
|
|
40
44
|
this.compositeErrorRegistry.copyFrom(etr);
|
|
41
45
|
}
|
|
42
46
|
}
|
|
43
47
|
getRequestType() {
|
|
44
|
-
return
|
|
48
|
+
return HttpRequest;
|
|
45
49
|
}
|
|
46
50
|
getResponseType() {
|
|
47
|
-
return
|
|
51
|
+
return HttpResponse;
|
|
48
52
|
}
|
|
49
53
|
setSerdeContext(serdeContext) {
|
|
50
54
|
this.serdeContext = serdeContext;
|
|
@@ -96,8 +100,8 @@ class HttpProtocol extends SerdeContext {
|
|
|
96
100
|
if (this.serdeContext?.disableHostPrefix) {
|
|
97
101
|
return;
|
|
98
102
|
}
|
|
99
|
-
const inputNs =
|
|
100
|
-
const opTraits =
|
|
103
|
+
const inputNs = NormalizedSchema.of(operationSchema.input);
|
|
104
|
+
const opTraits = translateTraits(operationSchema.traits ?? {});
|
|
101
105
|
if (opTraits.endpoint) {
|
|
102
106
|
let hostPrefix = opTraits.endpoint?.[0];
|
|
103
107
|
if (typeof hostPrefix === "string") {
|
|
@@ -140,15 +144,23 @@ class HttpProtocol extends SerdeContext {
|
|
|
140
144
|
});
|
|
141
145
|
}
|
|
142
146
|
async loadEventStreamCapability() {
|
|
143
|
-
const { EventStreamSerde } =
|
|
147
|
+
const { EventStreamSerde, eventStreamSerdeProvider } = require('@smithy/core/event-streams');
|
|
148
|
+
const marshaller = this.resolveEventStreamMarshaller(eventStreamSerdeProvider);
|
|
144
149
|
return new EventStreamSerde({
|
|
145
|
-
marshaller
|
|
150
|
+
marshaller,
|
|
146
151
|
serializer: this.serializer,
|
|
147
152
|
deserializer: this.deserializer,
|
|
148
153
|
serdeContext: this.serdeContext,
|
|
149
154
|
defaultContentType: this.getDefaultContentType(),
|
|
150
155
|
});
|
|
151
156
|
}
|
|
157
|
+
resolveEventStreamMarshaller(importedProvider) {
|
|
158
|
+
const context = this.serdeContext;
|
|
159
|
+
if (context.eventStreamMarshaller) {
|
|
160
|
+
return context.eventStreamMarshaller;
|
|
161
|
+
}
|
|
162
|
+
return importedProvider(this.serdeContext);
|
|
163
|
+
}
|
|
152
164
|
getDefaultContentType() {
|
|
153
165
|
throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`);
|
|
154
166
|
}
|
|
@@ -171,12 +183,12 @@ class HttpBindingProtocol extends HttpProtocol {
|
|
|
171
183
|
const query = {};
|
|
172
184
|
const headers = {};
|
|
173
185
|
const endpoint = await context.endpoint();
|
|
174
|
-
const ns =
|
|
186
|
+
const ns = NormalizedSchema.of(operationSchema?.input);
|
|
175
187
|
const payloadMemberNames = [];
|
|
176
188
|
const payloadMemberSchemas = [];
|
|
177
189
|
let hasNonHttpBindingMember = false;
|
|
178
190
|
let payload;
|
|
179
|
-
const request = new
|
|
191
|
+
const request = new HttpRequest({
|
|
180
192
|
protocol: "",
|
|
181
193
|
hostname: "",
|
|
182
194
|
port: undefined,
|
|
@@ -189,7 +201,7 @@ class HttpBindingProtocol extends HttpProtocol {
|
|
|
189
201
|
if (endpoint) {
|
|
190
202
|
this.updateServiceEndpoint(request, endpoint);
|
|
191
203
|
this.setHostPrefix(request, operationSchema, input);
|
|
192
|
-
const opTraits =
|
|
204
|
+
const opTraits = translateTraits(operationSchema.traits);
|
|
193
205
|
if (opTraits.http) {
|
|
194
206
|
request.method = opTraits.http[0];
|
|
195
207
|
const [path, search] = opTraits.http[1].split("?");
|
|
@@ -331,7 +343,7 @@ class HttpBindingProtocol extends HttpProtocol {
|
|
|
331
343
|
}
|
|
332
344
|
async deserializeResponse(operationSchema, context, response) {
|
|
333
345
|
const deserializer = this.deserializer;
|
|
334
|
-
const ns =
|
|
346
|
+
const ns = NormalizedSchema.of(operationSchema.output);
|
|
335
347
|
const dataObject = {};
|
|
336
348
|
if (response.statusCode >= 300) {
|
|
337
349
|
const bytes = await collectBody(response.body, context);
|
|
@@ -364,7 +376,7 @@ class HttpBindingProtocol extends HttpProtocol {
|
|
|
364
376
|
dataObject.$metadata = this.deserializeMetadata(response);
|
|
365
377
|
return dataObject;
|
|
366
378
|
}
|
|
367
|
-
async deserializeHttpMessage(schema
|
|
379
|
+
async deserializeHttpMessage(schema, context, response, arg4, arg5) {
|
|
368
380
|
let dataObject;
|
|
369
381
|
if (arg4 instanceof Set) {
|
|
370
382
|
dataObject = arg5;
|
|
@@ -374,7 +386,7 @@ class HttpBindingProtocol extends HttpProtocol {
|
|
|
374
386
|
}
|
|
375
387
|
let discardResponseBody = true;
|
|
376
388
|
const deserializer = this.deserializer;
|
|
377
|
-
const ns =
|
|
389
|
+
const ns = NormalizedSchema.of(schema);
|
|
378
390
|
const nonHttpBindingMembers = [];
|
|
379
391
|
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
380
392
|
const memberTraits = memberSchema.getMemberTraits();
|
|
@@ -390,7 +402,7 @@ class HttpBindingProtocol extends HttpProtocol {
|
|
|
390
402
|
});
|
|
391
403
|
}
|
|
392
404
|
else {
|
|
393
|
-
dataObject[memberName] =
|
|
405
|
+
dataObject[memberName] = sdkStreamMixin(response.body);
|
|
394
406
|
}
|
|
395
407
|
}
|
|
396
408
|
else if (response.body) {
|
|
@@ -410,10 +422,10 @@ class HttpBindingProtocol extends HttpProtocol {
|
|
|
410
422
|
let sections;
|
|
411
423
|
if (headerListValueSchema.isTimestampSchema() &&
|
|
412
424
|
headerListValueSchema.getSchema() === 4) {
|
|
413
|
-
sections =
|
|
425
|
+
sections = splitEvery(value, ",", 2);
|
|
414
426
|
}
|
|
415
427
|
else {
|
|
416
|
-
sections =
|
|
428
|
+
sections = splitHeader(value);
|
|
417
429
|
}
|
|
418
430
|
const list = [];
|
|
419
431
|
for (const section of sections) {
|
|
@@ -455,11 +467,11 @@ class RpcProtocol extends HttpProtocol {
|
|
|
455
467
|
const query = {};
|
|
456
468
|
const headers = {};
|
|
457
469
|
const endpoint = await context.endpoint();
|
|
458
|
-
const ns =
|
|
459
|
-
const schema
|
|
470
|
+
const ns = NormalizedSchema.of(operationSchema?.input);
|
|
471
|
+
const schema = ns.getSchema();
|
|
460
472
|
let payload;
|
|
461
473
|
const input = _input && typeof _input === "object" ? _input : {};
|
|
462
|
-
const request = new
|
|
474
|
+
const request = new HttpRequest({
|
|
463
475
|
protocol: "",
|
|
464
476
|
hostname: "",
|
|
465
477
|
port: undefined,
|
|
@@ -492,7 +504,7 @@ class RpcProtocol extends HttpProtocol {
|
|
|
492
504
|
}
|
|
493
505
|
}
|
|
494
506
|
else {
|
|
495
|
-
serializer.write(schema
|
|
507
|
+
serializer.write(schema, input);
|
|
496
508
|
payload = serializer.flush();
|
|
497
509
|
}
|
|
498
510
|
}
|
|
@@ -504,7 +516,7 @@ class RpcProtocol extends HttpProtocol {
|
|
|
504
516
|
}
|
|
505
517
|
async deserializeResponse(operationSchema, context, response) {
|
|
506
518
|
const deserializer = this.deserializer;
|
|
507
|
-
const ns =
|
|
519
|
+
const ns = NormalizedSchema.of(operationSchema.output);
|
|
508
520
|
const dataObject = {};
|
|
509
521
|
if (response.statusCode >= 300) {
|
|
510
522
|
const bytes = await collectBody(response.body, context);
|
|
@@ -580,7 +592,7 @@ class RequestBuilder {
|
|
|
580
592
|
for (const resolvePath of this.resolvePathStack) {
|
|
581
593
|
resolvePath(this.path);
|
|
582
594
|
}
|
|
583
|
-
return new
|
|
595
|
+
return new HttpRequest({
|
|
584
596
|
protocol,
|
|
585
597
|
hostname: this.hostname || hostname,
|
|
586
598
|
port,
|
|
@@ -652,22 +664,22 @@ class FromStringShapeDeserializer extends SerdeContext {
|
|
|
652
664
|
this.settings = settings;
|
|
653
665
|
}
|
|
654
666
|
read(_schema, data) {
|
|
655
|
-
const ns =
|
|
667
|
+
const ns = NormalizedSchema.of(_schema);
|
|
656
668
|
if (ns.isListSchema()) {
|
|
657
|
-
return
|
|
669
|
+
return splitHeader(data).map((item) => this.read(ns.getValueSchema(), item));
|
|
658
670
|
}
|
|
659
671
|
if (ns.isBlobSchema()) {
|
|
660
|
-
return (this.serdeContext?.base64Decoder ??
|
|
672
|
+
return (this.serdeContext?.base64Decoder ?? fromBase64)(data);
|
|
661
673
|
}
|
|
662
674
|
if (ns.isTimestampSchema()) {
|
|
663
675
|
const format = determineTimestampFormat(ns, this.settings);
|
|
664
676
|
switch (format) {
|
|
665
677
|
case 5:
|
|
666
|
-
return
|
|
678
|
+
return _parseRfc3339DateTimeWithOffset(data);
|
|
667
679
|
case 6:
|
|
668
|
-
return
|
|
680
|
+
return _parseRfc7231DateTime(data);
|
|
669
681
|
case 7:
|
|
670
|
-
return
|
|
682
|
+
return _parseEpochTimestamp(data);
|
|
671
683
|
default:
|
|
672
684
|
console.warn("Missing timestamp format, parsing value with Date constructor:", data);
|
|
673
685
|
return new Date(data);
|
|
@@ -682,7 +694,7 @@ class FromStringShapeDeserializer extends SerdeContext {
|
|
|
682
694
|
}
|
|
683
695
|
const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
|
|
684
696
|
if (isJson) {
|
|
685
|
-
intermediateValue =
|
|
697
|
+
intermediateValue = LazyJsonString.from(intermediateValue);
|
|
686
698
|
}
|
|
687
699
|
return intermediateValue;
|
|
688
700
|
}
|
|
@@ -694,7 +706,7 @@ class FromStringShapeDeserializer extends SerdeContext {
|
|
|
694
706
|
return BigInt(data);
|
|
695
707
|
}
|
|
696
708
|
if (ns.isBigDecimalSchema()) {
|
|
697
|
-
return new
|
|
709
|
+
return new NumericValue(data, "bigDecimal");
|
|
698
710
|
}
|
|
699
711
|
if (ns.isBooleanSchema()) {
|
|
700
712
|
return String(data).toLowerCase() === "true";
|
|
@@ -702,7 +714,7 @@ class FromStringShapeDeserializer extends SerdeContext {
|
|
|
702
714
|
return data;
|
|
703
715
|
}
|
|
704
716
|
base64ToUtf8(base64String) {
|
|
705
|
-
return (this.serdeContext?.utf8Encoder ??
|
|
717
|
+
return (this.serdeContext?.utf8Encoder ?? toUtf8)((this.serdeContext?.base64Decoder ?? fromBase64)(base64String));
|
|
706
718
|
}
|
|
707
719
|
}
|
|
708
720
|
|
|
@@ -719,16 +731,16 @@ class HttpInterceptingShapeDeserializer extends SerdeContext {
|
|
|
719
731
|
this.codecDeserializer.setSerdeContext(serdeContext);
|
|
720
732
|
this.serdeContext = serdeContext;
|
|
721
733
|
}
|
|
722
|
-
read(schema
|
|
723
|
-
const ns =
|
|
734
|
+
read(schema, data) {
|
|
735
|
+
const ns = NormalizedSchema.of(schema);
|
|
724
736
|
const traits = ns.getMergedTraits();
|
|
725
|
-
const toString = this.serdeContext?.utf8Encoder ??
|
|
737
|
+
const toString = this.serdeContext?.utf8Encoder ?? toUtf8;
|
|
726
738
|
if (traits.httpHeader || traits.httpResponseCode) {
|
|
727
739
|
return this.stringDeserializer.read(ns, toString(data));
|
|
728
740
|
}
|
|
729
741
|
if (traits.httpPayload) {
|
|
730
742
|
if (ns.isBlobSchema()) {
|
|
731
|
-
const toBytes = this.serdeContext?.utf8Decoder ??
|
|
743
|
+
const toBytes = this.serdeContext?.utf8Decoder ?? fromUtf8;
|
|
732
744
|
if (typeof data === "string") {
|
|
733
745
|
return toBytes(data);
|
|
734
746
|
}
|
|
@@ -752,8 +764,8 @@ class ToStringShapeSerializer extends SerdeContext {
|
|
|
752
764
|
super();
|
|
753
765
|
this.settings = settings;
|
|
754
766
|
}
|
|
755
|
-
write(schema
|
|
756
|
-
const ns =
|
|
767
|
+
write(schema, value) {
|
|
768
|
+
const ns = NormalizedSchema.of(schema);
|
|
757
769
|
switch (typeof value) {
|
|
758
770
|
case "object":
|
|
759
771
|
if (value === null) {
|
|
@@ -770,7 +782,7 @@ class ToStringShapeSerializer extends SerdeContext {
|
|
|
770
782
|
this.stringBuffer = value.toISOString().replace(".000Z", "Z");
|
|
771
783
|
break;
|
|
772
784
|
case 6:
|
|
773
|
-
this.stringBuffer =
|
|
785
|
+
this.stringBuffer = dateToUtcString(value);
|
|
774
786
|
break;
|
|
775
787
|
case 7:
|
|
776
788
|
this.stringBuffer = String(value.getTime() / 1000);
|
|
@@ -782,7 +794,7 @@ class ToStringShapeSerializer extends SerdeContext {
|
|
|
782
794
|
return;
|
|
783
795
|
}
|
|
784
796
|
if (ns.isBlobSchema() && "byteLength" in value) {
|
|
785
|
-
this.stringBuffer = (this.serdeContext?.base64Encoder ??
|
|
797
|
+
this.stringBuffer = (this.serdeContext?.base64Encoder ?? toBase64)(value);
|
|
786
798
|
return;
|
|
787
799
|
}
|
|
788
800
|
if (ns.isListSchema() && Array.isArray(value)) {
|
|
@@ -790,7 +802,7 @@ class ToStringShapeSerializer extends SerdeContext {
|
|
|
790
802
|
for (const item of value) {
|
|
791
803
|
this.write([ns.getValueSchema(), ns.getMergedTraits()], item);
|
|
792
804
|
const headerItem = this.flush();
|
|
793
|
-
const serialized = ns.getValueSchema().isTimestampSchema() ? headerItem :
|
|
805
|
+
const serialized = ns.getValueSchema().isTimestampSchema() ? headerItem : quoteHeader(headerItem);
|
|
794
806
|
if (buffer !== "") {
|
|
795
807
|
buffer += ", ";
|
|
796
808
|
}
|
|
@@ -807,10 +819,10 @@ class ToStringShapeSerializer extends SerdeContext {
|
|
|
807
819
|
if (mediaType) {
|
|
808
820
|
const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
|
|
809
821
|
if (isJson) {
|
|
810
|
-
intermediateValue =
|
|
822
|
+
intermediateValue = LazyJsonString.from(intermediateValue);
|
|
811
823
|
}
|
|
812
824
|
if (ns.getMergedTraits().httpHeader) {
|
|
813
|
-
this.stringBuffer = (this.serdeContext?.base64Encoder ??
|
|
825
|
+
this.stringBuffer = (this.serdeContext?.base64Encoder ?? toBase64)(intermediateValue.toString());
|
|
814
826
|
return;
|
|
815
827
|
}
|
|
816
828
|
}
|
|
@@ -818,7 +830,7 @@ class ToStringShapeSerializer extends SerdeContext {
|
|
|
818
830
|
break;
|
|
819
831
|
default:
|
|
820
832
|
if (ns.isIdempotencyToken()) {
|
|
821
|
-
this.stringBuffer =
|
|
833
|
+
this.stringBuffer = generateIdempotencyToken();
|
|
822
834
|
}
|
|
823
835
|
else {
|
|
824
836
|
this.stringBuffer = String(value);
|
|
@@ -844,8 +856,8 @@ class HttpInterceptingShapeSerializer {
|
|
|
844
856
|
this.codecSerializer.setSerdeContext(serdeContext);
|
|
845
857
|
this.stringSerializer.setSerdeContext(serdeContext);
|
|
846
858
|
}
|
|
847
|
-
write(schema
|
|
848
|
-
const ns =
|
|
859
|
+
write(schema, value) {
|
|
860
|
+
const ns = NormalizedSchema.of(schema);
|
|
849
861
|
const traits = ns.getMergedTraits();
|
|
850
862
|
if (traits.httpHeader || traits.httpLabel || traits.httpQuery) {
|
|
851
863
|
this.stringSerializer.write(ns, value);
|
|
@@ -868,7 +880,7 @@ class Field {
|
|
|
868
880
|
name;
|
|
869
881
|
kind;
|
|
870
882
|
values;
|
|
871
|
-
constructor({ name, kind =
|
|
883
|
+
constructor({ name, kind = FieldPosition.HEADER, values = [] }) {
|
|
872
884
|
this.name = name;
|
|
873
885
|
this.kind = kind;
|
|
874
886
|
this.values = values;
|
|
@@ -937,7 +949,7 @@ const CONTENT_LENGTH_HEADER = "content-length";
|
|
|
937
949
|
function contentLengthMiddleware(bodyLengthChecker) {
|
|
938
950
|
return (next) => async (args) => {
|
|
939
951
|
const request = args.request;
|
|
940
|
-
if (
|
|
952
|
+
if (HttpRequest.isInstance(request)) {
|
|
941
953
|
const { body, headers } = request;
|
|
942
954
|
if (body &&
|
|
943
955
|
Object.keys(headers)
|
|
@@ -998,11 +1010,6 @@ function buildQueryString(query) {
|
|
|
998
1010
|
return parts.join("&");
|
|
999
1011
|
}
|
|
1000
1012
|
|
|
1001
|
-
exports.HttpRequest = transport.HttpRequest;
|
|
1002
|
-
exports.HttpResponse = transport.HttpResponse;
|
|
1003
|
-
exports.isValidHostname = transport.isValidHostname;
|
|
1004
|
-
exports.parseQueryString = transport.parseQueryString;
|
|
1005
|
-
exports.parseUrl = transport.parseUrl;
|
|
1006
1013
|
exports.Field = Field;
|
|
1007
1014
|
exports.Fields = Fields;
|
|
1008
1015
|
exports.FromStringShapeDeserializer = FromStringShapeDeserializer;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var protocols = require('@smithy/core/protocols');
|
|
5
|
-
var serde = require('@smithy/core/serde');
|
|
1
|
+
const { NoOpLogger, normalizeProvider } = require("@smithy/core/client");
|
|
2
|
+
const { HttpResponse, HttpRequest } = require("@smithy/core/protocols");
|
|
3
|
+
const { parseRfc7231DateTime, v4 } = require("@smithy/core/serde");
|
|
6
4
|
|
|
7
5
|
const isStreamingPayload = (request) => request?.body instanceof ReadableStream;
|
|
8
6
|
|
|
@@ -90,7 +88,7 @@ const INVOCATION_ID_HEADER = "amz-sdk-invocation-id";
|
|
|
90
88
|
const REQUEST_HEADER = "amz-sdk-request";
|
|
91
89
|
|
|
92
90
|
function parseRetryAfterHeader(response, logger) {
|
|
93
|
-
if (!
|
|
91
|
+
if (!HttpResponse.isInstance(response)) {
|
|
94
92
|
return;
|
|
95
93
|
}
|
|
96
94
|
for (const header of Object.keys(response.headers)) {
|
|
@@ -100,7 +98,7 @@ function parseRetryAfterHeader(response, logger) {
|
|
|
100
98
|
let retryAfterSeconds = NaN;
|
|
101
99
|
if (retryAfter.endsWith("GMT")) {
|
|
102
100
|
try {
|
|
103
|
-
const date =
|
|
101
|
+
const date = parseRfc7231DateTime(retryAfter);
|
|
104
102
|
retryAfterSeconds = (date.getTime() - Date.now()) / 1000;
|
|
105
103
|
}
|
|
106
104
|
catch (e) {
|
|
@@ -158,9 +156,9 @@ function bindRetryMiddleware(isStreamingPayload) {
|
|
|
158
156
|
let attempts = 0;
|
|
159
157
|
let totalRetryDelay = 0;
|
|
160
158
|
const { request } = args;
|
|
161
|
-
const isRequest =
|
|
159
|
+
const isRequest = HttpRequest.isInstance(request);
|
|
162
160
|
if (isRequest) {
|
|
163
|
-
request.headers[INVOCATION_ID_HEADER] =
|
|
161
|
+
request.headers[INVOCATION_ID_HEADER] = v4();
|
|
164
162
|
}
|
|
165
163
|
while (true) {
|
|
166
164
|
try {
|
|
@@ -177,7 +175,7 @@ function bindRetryMiddleware(isStreamingPayload) {
|
|
|
177
175
|
const retryErrorInfo = getRetryErrorInfo(e, options.logger);
|
|
178
176
|
lastError = asSdkError(e);
|
|
179
177
|
if (isRequest && isStreamingPayload(request)) {
|
|
180
|
-
(context.logger instanceof
|
|
178
|
+
(context.logger instanceof NoOpLogger ? console : context.logger)?.warn("An error was encountered in a non-retryable streaming request.");
|
|
181
179
|
throw lastError;
|
|
182
180
|
}
|
|
183
181
|
try {
|
|
@@ -250,7 +248,7 @@ function bindGetRetryPlugin(isStreamingPayload) {
|
|
|
250
248
|
}
|
|
251
249
|
|
|
252
250
|
class DefaultRateLimiter {
|
|
253
|
-
static setTimeoutFn = setTimeout;
|
|
251
|
+
static setTimeoutFn = (fn, delay) => setTimeout(fn, delay);
|
|
254
252
|
beta;
|
|
255
253
|
minCapacity;
|
|
256
254
|
minFillRate;
|
|
@@ -420,13 +418,13 @@ class DefaultRetryToken {
|
|
|
420
418
|
}
|
|
421
419
|
}
|
|
422
420
|
|
|
423
|
-
|
|
421
|
+
var RETRY_MODES;
|
|
424
422
|
(function (RETRY_MODES) {
|
|
425
423
|
RETRY_MODES["STANDARD"] = "standard";
|
|
426
424
|
RETRY_MODES["ADAPTIVE"] = "adaptive";
|
|
427
|
-
})(
|
|
425
|
+
})(RETRY_MODES || (RETRY_MODES = {}));
|
|
428
426
|
const DEFAULT_MAX_ATTEMPTS = 3;
|
|
429
|
-
const DEFAULT_RETRY_MODE =
|
|
427
|
+
const DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD;
|
|
430
428
|
|
|
431
429
|
const refusal = {
|
|
432
430
|
incompatible: 1,
|
|
@@ -434,7 +432,7 @@ const refusal = {
|
|
|
434
432
|
capacity: 3,
|
|
435
433
|
};
|
|
436
434
|
let StandardRetryStrategy$1 = class StandardRetryStrategy {
|
|
437
|
-
mode =
|
|
435
|
+
mode = RETRY_MODES.STANDARD;
|
|
438
436
|
retryBackoffStrategy;
|
|
439
437
|
capacity = INITIAL_RETRY_TOKENS;
|
|
440
438
|
maxAttemptsProvider;
|
|
@@ -522,7 +520,7 @@ let StandardRetryStrategy$1 = class StandardRetryStrategy {
|
|
|
522
520
|
};
|
|
523
521
|
|
|
524
522
|
let AdaptiveRetryStrategy$1 = class AdaptiveRetryStrategy {
|
|
525
|
-
mode =
|
|
523
|
+
mode = RETRY_MODES.ADAPTIVE;
|
|
526
524
|
rateLimiter;
|
|
527
525
|
standardRetryStrategy;
|
|
528
526
|
constructor(maxAttemptsProvider, options) {
|
|
@@ -613,7 +611,7 @@ class StandardRetryStrategy {
|
|
|
613
611
|
retryDecider;
|
|
614
612
|
delayDecider;
|
|
615
613
|
retryQuota;
|
|
616
|
-
mode =
|
|
614
|
+
mode = RETRY_MODES.STANDARD;
|
|
617
615
|
constructor(maxAttemptsProvider, options) {
|
|
618
616
|
this.maxAttemptsProvider = maxAttemptsProvider;
|
|
619
617
|
this.retryDecider = options?.retryDecider ?? defaultRetryDecider;
|
|
@@ -639,12 +637,12 @@ class StandardRetryStrategy {
|
|
|
639
637
|
let totalDelay = 0;
|
|
640
638
|
const maxAttempts = await this.getMaxAttempts();
|
|
641
639
|
const { request } = args;
|
|
642
|
-
if (
|
|
643
|
-
request.headers[INVOCATION_ID_HEADER] =
|
|
640
|
+
if (HttpRequest.isInstance(request)) {
|
|
641
|
+
request.headers[INVOCATION_ID_HEADER] = v4();
|
|
644
642
|
}
|
|
645
643
|
while (true) {
|
|
646
644
|
try {
|
|
647
|
-
if (
|
|
645
|
+
if (HttpRequest.isInstance(request)) {
|
|
648
646
|
request.headers[REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`;
|
|
649
647
|
}
|
|
650
648
|
if (options?.beforeRequest) {
|
|
@@ -682,7 +680,7 @@ class StandardRetryStrategy {
|
|
|
682
680
|
}
|
|
683
681
|
}
|
|
684
682
|
const getDelayFromRetryAfterHeader = (response) => {
|
|
685
|
-
if (!
|
|
683
|
+
if (!HttpResponse.isInstance(response))
|
|
686
684
|
return;
|
|
687
685
|
const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after");
|
|
688
686
|
if (!retryAfterHeaderName)
|
|
@@ -690,9 +688,9 @@ const getDelayFromRetryAfterHeader = (response) => {
|
|
|
690
688
|
const retryAfter = response.headers[retryAfterHeaderName];
|
|
691
689
|
const retryAfterSeconds = Number(retryAfter);
|
|
692
690
|
if (!Number.isNaN(retryAfterSeconds))
|
|
693
|
-
return retryAfterSeconds * 1000;
|
|
691
|
+
return Math.min(retryAfterSeconds * 1000, 20_000);
|
|
694
692
|
const retryAfterDate = new Date(retryAfter);
|
|
695
|
-
return retryAfterDate.getTime() - Date.now();
|
|
693
|
+
return Math.min(retryAfterDate.getTime() - Date.now(), 20_000);
|
|
696
694
|
};
|
|
697
695
|
|
|
698
696
|
class AdaptiveRetryStrategy extends StandardRetryStrategy {
|
|
@@ -701,7 +699,7 @@ class AdaptiveRetryStrategy extends StandardRetryStrategy {
|
|
|
701
699
|
const { rateLimiter, ...superOptions } = options ?? {};
|
|
702
700
|
super(maxAttemptsProvider, superOptions);
|
|
703
701
|
this.rateLimiter = rateLimiter ?? new DefaultRateLimiter();
|
|
704
|
-
this.mode =
|
|
702
|
+
this.mode = RETRY_MODES.ADAPTIVE;
|
|
705
703
|
}
|
|
706
704
|
async retry(next, args) {
|
|
707
705
|
return super.retry(next, args, {
|
|
@@ -718,13 +716,13 @@ class AdaptiveRetryStrategy extends StandardRetryStrategy {
|
|
|
718
716
|
const resolveRetryConfig = (input, defaults) => {
|
|
719
717
|
const { retryStrategy, retryMode } = input;
|
|
720
718
|
const { defaultMaxAttempts = DEFAULT_MAX_ATTEMPTS, defaultBaseDelay = Retry.delay() } = defaults ?? {};
|
|
721
|
-
const maxAttemptsProvider =
|
|
719
|
+
const maxAttemptsProvider = normalizeProvider(input.maxAttempts ?? defaultMaxAttempts);
|
|
722
720
|
let controller = retryStrategy
|
|
723
721
|
? Promise.resolve(retryStrategy)
|
|
724
722
|
: undefined;
|
|
725
723
|
const getDefault = async () => {
|
|
726
724
|
const maxAttempts = await maxAttemptsProvider();
|
|
727
|
-
const adaptive = (await
|
|
725
|
+
const adaptive = (await normalizeProvider(retryMode)()) === RETRY_MODES.ADAPTIVE;
|
|
728
726
|
if (adaptive) {
|
|
729
727
|
return new AdaptiveRetryStrategy$1(maxAttemptsProvider, {
|
|
730
728
|
maxAttempts,
|
|
@@ -744,7 +742,7 @@ const resolveRetryConfig = (input, defaults) => {
|
|
|
744
742
|
|
|
745
743
|
const omitRetryHeadersMiddleware = () => (next) => async (args) => {
|
|
746
744
|
const { request } = args;
|
|
747
|
-
if (
|
|
745
|
+
if (HttpRequest.isInstance(request)) {
|
|
748
746
|
delete request.headers[INVOCATION_ID_HEADER];
|
|
749
747
|
delete request.headers[REQUEST_HEADER];
|
|
750
748
|
}
|
|
@@ -793,6 +791,7 @@ exports.NODE_RETRY_MODE_CONFIG_OPTIONS = NODE_RETRY_MODE_CONFIG_OPTIONS;
|
|
|
793
791
|
exports.NO_RETRY_INCREMENT = NO_RETRY_INCREMENT;
|
|
794
792
|
exports.REQUEST_HEADER = REQUEST_HEADER;
|
|
795
793
|
exports.RETRY_COST = RETRY_COST;
|
|
794
|
+
exports.RETRY_MODES = RETRY_MODES;
|
|
796
795
|
exports.Retry = Retry;
|
|
797
796
|
exports.StandardRetryStrategy = StandardRetryStrategy$1;
|
|
798
797
|
exports.THROTTLING_RETRY_DELAY_BASE = THROTTLING_RETRY_DELAY_BASE;
|