@cdklabs/cdk-ssm-documents 0.0.75 → 0.0.77
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 +13 -13
- 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/client-cloudformation/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +2 -2
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch/package.json +2 -2
- package/node_modules/@aws-sdk/client-ec2/README.md +14 -0
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +210 -43
- package/node_modules/@aws-sdk/client-ec2/dist-es/EC2.js +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/ReplaceImageInstanceTypeSpecificationCommand.js +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/ValidateSecurityGroupQuotasForInterfaceCommand.js +4 -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 +15 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/schemas/schemas_0.js +168 -41
- 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/CreateCapacityReservationBySplittingCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCapacityReservationCommand.d.ts +2 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateDefaultVpcCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateFleetCommand.d.ts +17 -3
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateInterruptibleCapacityReservationAllocationCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateIpamInternetRegistryAssociationCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateLaunchTemplateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateNetworkInterfacePermissionCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateVpcCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteIpamInternetRegistryAssociationCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteLocalGatewayRouteTableVpcAssociationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeCapacityReservationsCommand.d.ts +2 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeFleetsCommand.d.ts +11 -4
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeFlowLogsCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeImagesCommand.d.ts +12 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeIpamInternetRegistryAssociationsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeLaunchTemplateVersionsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeScheduledInstanceAvailabilityCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeScheduledInstancesCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeVpcsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/EnableEbsEncryptionByDefaultCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/EnableFastLaunchCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/EnableIpamInternetRegistryAssociationCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityReservationUsageCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ImportKeyPairCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ImportSnapshotCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyInstanceAttributeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/MoveCapacityReservationInstancesCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/PurchaseCapacityBlockCommand.d.ts +2 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReplaceImageInstanceTypeSpecificationCommand.d.ts +108 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RequestSpotFleetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RequestSpotInstancesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ResetAddressAttributeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ResetEbsDefaultKmsKeyIdCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RunInstancesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/UpdateInterruptibleCapacityReservationAllocationCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ValidateSecurityGroupQuotasForInterfaceCommand.d.ts +79 -0
- 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 +39 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_0.d.ts +15 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_1.d.ts +86 -59
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_2.d.ts +52 -29
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_3.d.ts +71 -120
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_4.d.ts +168 -242
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_5.d.ts +240 -108
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_6.d.ts +108 -190
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_7.d.ts +259 -305
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_8.d.ts +341 -4
- package/node_modules/@aws-sdk/client-ec2/dist-types/schemas/schemas_0.d.ts +13 -1
- 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/CreateNetworkInterfacePermissionCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteLocalGatewayRouteTableVpcAssociationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeFleetsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeFlowLogsCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeScheduledInstanceAvailabilityCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeScheduledInstancesCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/EnableEbsEncryptionByDefaultCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/EnableFastLaunchCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ImportKeyPairCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ImportSnapshotCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ReplaceImageInstanceTypeSpecificationCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/RequestSpotFleetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/RequestSpotInstancesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ResetAddressAttributeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ResetEbsDefaultKmsKeyIdCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ValidateSecurityGroupQuotasForInterfaceCommand.d.ts +42 -0
- 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 +20 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_0.d.ts +3 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_1.d.ts +15 -13
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_2.d.ts +12 -9
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_3.d.ts +15 -17
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_4.d.ts +26 -55
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_5.d.ts +49 -23
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_6.d.ts +22 -36
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_7.d.ts +54 -66
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_8.d.ts +73 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/schemas/schemas_0.d.ts +13 -1
- package/node_modules/@aws-sdk/client-ec2/package.json +2 -2
- package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-iam/package.json +2 -2
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +17 -3
- package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +5 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +9 -2
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateFunctionCommand.d.ts +6 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionConfigurationCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListFunctionsCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListVersionsByFunctionCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishVersionCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionCodeCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +6 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +13 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +19 -3
- package/node_modules/@aws-sdk/client-lambda/dist-types/schemas/schemas_0.d.ts +1 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +5 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
- package/node_modules/@aws-sdk/client-lambda/package.json +2 -2
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-s3/package.json +3 -3
- package/node_modules/@aws-sdk/client-sns/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-sns/package.json +2 -2
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-sqs/package.json +2 -2
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-ssm/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-node/package.json +1 -1
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +2 -1
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +2 -1
- package/node_modules/@smithy/fetch-http-handler/package.json +3 -3
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -4
- package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +1 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -3
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +8 -1
- package/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +14 -0
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/js-yaml/dist/js-yaml.js +11 -3
- package/node_modules/js-yaml/dist/js-yaml.js.map +1 -1
- package/node_modules/js-yaml/dist/js-yaml.min.js +1 -1
- package/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -1
- package/node_modules/js-yaml/dist/js-yaml.mjs +11 -3
- package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
- package/node_modules/js-yaml/lib/loader.js +16 -3
- package/node_modules/js-yaml/package.json +1 -1
- package/package.json +11 -11
package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListVersionsByFunctionCommand.d.ts
CHANGED
|
@@ -102,6 +102,9 @@ declare const ListVersionsByFunctionCommand_base: {
|
|
|
102
102
|
* // { // FileSystemConfig
|
|
103
103
|
* // Arn: "STRING_VALUE", // required
|
|
104
104
|
* // LocalMountPath: "STRING_VALUE", // required
|
|
105
|
+
* // S3FilesConfig: { // S3FilesConfig
|
|
106
|
+
* // DirectS3Read: "ENABLED" || "DISABLED" || "AUTO",
|
|
107
|
+
* // },
|
|
105
108
|
* // },
|
|
106
109
|
* // ],
|
|
107
110
|
* // SigningProfileVersionArn: "STRING_VALUE",
|
|
@@ -101,6 +101,9 @@ declare const PublishVersionCommand_base: {
|
|
|
101
101
|
* // { // FileSystemConfig
|
|
102
102
|
* // Arn: "STRING_VALUE", // required
|
|
103
103
|
* // LocalMountPath: "STRING_VALUE", // required
|
|
104
|
+
* // S3FilesConfig: { // S3FilesConfig
|
|
105
|
+
* // DirectS3Read: "ENABLED" || "DISABLED" || "AUTO",
|
|
106
|
+
* // },
|
|
104
107
|
* // },
|
|
105
108
|
* // ],
|
|
106
109
|
* // SigningProfileVersionArn: "STRING_VALUE",
|
package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionCodeCommand.d.ts
CHANGED
|
@@ -111,6 +111,9 @@ declare const UpdateFunctionCodeCommand_base: {
|
|
|
111
111
|
* // { // FileSystemConfig
|
|
112
112
|
* // Arn: "STRING_VALUE", // required
|
|
113
113
|
* // LocalMountPath: "STRING_VALUE", // required
|
|
114
|
+
* // S3FilesConfig: { // S3FilesConfig
|
|
115
|
+
* // DirectS3Read: "ENABLED" || "DISABLED" || "AUTO",
|
|
116
|
+
* // },
|
|
114
117
|
* // },
|
|
115
118
|
* // ],
|
|
116
119
|
* // SigningProfileVersionArn: "STRING_VALUE",
|
|
@@ -70,6 +70,9 @@ declare const UpdateFunctionConfigurationCommand_base: {
|
|
|
70
70
|
* { // FileSystemConfig
|
|
71
71
|
* Arn: "STRING_VALUE", // required
|
|
72
72
|
* LocalMountPath: "STRING_VALUE", // required
|
|
73
|
+
* S3FilesConfig: { // S3FilesConfig
|
|
74
|
+
* DirectS3Read: "ENABLED" || "DISABLED" || "AUTO",
|
|
75
|
+
* },
|
|
73
76
|
* },
|
|
74
77
|
* ],
|
|
75
78
|
* ImageConfig: { // ImageConfig
|
|
@@ -167,6 +170,9 @@ declare const UpdateFunctionConfigurationCommand_base: {
|
|
|
167
170
|
* // { // FileSystemConfig
|
|
168
171
|
* // Arn: "STRING_VALUE", // required
|
|
169
172
|
* // LocalMountPath: "STRING_VALUE", // required
|
|
173
|
+
* // S3FilesConfig: { // S3FilesConfig
|
|
174
|
+
* // DirectS3Read: "ENABLED" || "DISABLED" || "AUTO",
|
|
175
|
+
* // },
|
|
170
176
|
* // },
|
|
171
177
|
* // ],
|
|
172
178
|
* // SigningProfileVersionArn: "STRING_VALUE",
|
|
@@ -396,6 +396,19 @@ export declare const S3ObjectStorageMode: {
|
|
|
396
396
|
* @public
|
|
397
397
|
*/
|
|
398
398
|
export type S3ObjectStorageMode = (typeof S3ObjectStorageMode)[keyof typeof S3ObjectStorageMode];
|
|
399
|
+
/**
|
|
400
|
+
* @public
|
|
401
|
+
* @enum
|
|
402
|
+
*/
|
|
403
|
+
export declare const DirectS3Read: {
|
|
404
|
+
readonly AUTO: "AUTO";
|
|
405
|
+
readonly DISABLED: "DISABLED";
|
|
406
|
+
readonly ENABLED: "ENABLED";
|
|
407
|
+
};
|
|
408
|
+
/**
|
|
409
|
+
* @public
|
|
410
|
+
*/
|
|
411
|
+
export type DirectS3Read = (typeof DirectS3Read)[keyof typeof DirectS3Read];
|
|
399
412
|
/**
|
|
400
413
|
* @public
|
|
401
414
|
* @enum
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StreamingBlobTypes } from "@smithy/types";
|
|
2
|
-
import type { ApplicationLogLevel, Architecture, CapacityProviderPredefinedMetricType, CapacityProviderScalingMode, CapacityProviderState, CodeSigningPolicy, EndPointType, EventSourceMappingMetric, EventSourceMappingSystemLogLevel, EventSourcePosition, EventType, ExecutionStatus, FullDocument, FunctionResponseType, FunctionUrlAuthType, FunctionVersion, FunctionVersionLatestPublished, InvocationType, InvokeMode, KafkaSchemaRegistryAuthType, KafkaSchemaValidationAttribute, LastUpdateStatus, LastUpdateStatusReasonCode, LogFormat, LogType, OperationAction, OperationStatus, OperationType, PackageType, PropagateTagsMode, ProvisionedConcurrencyStatusEnum, RecursiveLoop, ResponseStreamingInvocationType, Runtime, S3ObjectStorageMode, SchemaRegistryEventRecordFormat, SnapStartApplyOn, SnapStartOptimizationStatus, SourceAccessType, State, StateReasonCode, SystemLogLevel, TenantIsolationMode, TracingMode, UpdateRuntimeOn } from "./enums";
|
|
2
|
+
import type { ApplicationLogLevel, Architecture, CapacityProviderPredefinedMetricType, CapacityProviderScalingMode, CapacityProviderState, CodeSigningPolicy, DirectS3Read, EndPointType, EventSourceMappingMetric, EventSourceMappingSystemLogLevel, EventSourcePosition, EventType, ExecutionStatus, FullDocument, FunctionResponseType, FunctionUrlAuthType, FunctionVersion, FunctionVersionLatestPublished, InvocationType, InvokeMode, KafkaSchemaRegistryAuthType, KafkaSchemaValidationAttribute, LastUpdateStatus, LastUpdateStatusReasonCode, LogFormat, LogType, OperationAction, OperationStatus, OperationType, PackageType, PropagateTagsMode, ProvisionedConcurrencyStatusEnum, RecursiveLoop, ResponseStreamingInvocationType, Runtime, S3ObjectStorageMode, SchemaRegistryEventRecordFormat, SnapStartApplyOn, SnapStartOptimizationStatus, SourceAccessType, State, StateReasonCode, SystemLogLevel, TenantIsolationMode, TracingMode, UpdateRuntimeOn } from "./enums";
|
|
3
3
|
/**
|
|
4
4
|
* <p>Limits that are related to concurrency and storage. All file and storage sizes are in bytes.</p>
|
|
5
5
|
* @public
|
|
@@ -2953,7 +2953,18 @@ export interface EphemeralStorage {
|
|
|
2953
2953
|
Size: number | undefined;
|
|
2954
2954
|
}
|
|
2955
2955
|
/**
|
|
2956
|
-
* <p>
|
|
2956
|
+
* <p>Setting controls how your function accesses data from an Amazon S3 file system.</p>
|
|
2957
|
+
* @public
|
|
2958
|
+
*/
|
|
2959
|
+
export interface S3FilesConfig {
|
|
2960
|
+
/**
|
|
2961
|
+
* <p>Specifies if a function reads from the file system for the lowest latency, or through Amazon S3 Files feature "direct Amazon S3 bucket reads" for the highest throughput. Valid values:</p> <ul> <li> <p> <code>AUTO</code> (default) – Direct reads are active for functions you configure with 512 MB or more of memory.</p> </li> <li> <p> <code>ENABLED</code> – Enforces all reads are directly from the Amazon S3 bucket, regardless of available memory (less than 512 MB).</p> </li> <li> <p> <code>DISABLED</code> – Routes all reads through the file system, regardless of memory configuration.</p> </li> </ul> <p>To use direct reads, you must grant the execution role the <code>s3:GetObject</code> and <code>s3:GetObjectVersion</code> permissions. If a direct read fails, Lambda automatically falls back to reading through the file system.</p>
|
|
2962
|
+
* @public
|
|
2963
|
+
*/
|
|
2964
|
+
DirectS3Read?: DirectS3Read | undefined;
|
|
2965
|
+
}
|
|
2966
|
+
/**
|
|
2967
|
+
* <p>Details about the connection between a Lambda function and an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html">Amazon EFS file system</a> or an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html">Amazon S3 file system</a>.</p>
|
|
2957
2968
|
* @public
|
|
2958
2969
|
*/
|
|
2959
2970
|
export interface FileSystemConfig {
|
|
@@ -2967,6 +2978,11 @@ export interface FileSystemConfig {
|
|
|
2967
2978
|
* @public
|
|
2968
2979
|
*/
|
|
2969
2980
|
LocalMountPath: string | undefined;
|
|
2981
|
+
/**
|
|
2982
|
+
* <p>The configuration for how your function accesses data on an Amazon S3 file system. Valid only when the file system access point ARN is an Amazon S3 Files access point. If you specify a different access point type (for example, Amazon Elastic File System), the operation returns an <code>InvalidParameterException</code>.</p>
|
|
2983
|
+
* @public
|
|
2984
|
+
*/
|
|
2985
|
+
S3FilesConfig?: S3FilesConfig | undefined;
|
|
2970
2986
|
}
|
|
2971
2987
|
/**
|
|
2972
2988
|
* <p>Configuration values that override the container image Dockerfile settings. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms">Container image settings</a>.</p>
|
|
@@ -3525,7 +3541,7 @@ export interface FunctionConfiguration {
|
|
|
3525
3541
|
*/
|
|
3526
3542
|
LastUpdateStatusReasonCode?: LastUpdateStatusReasonCode | undefined;
|
|
3527
3543
|
/**
|
|
3528
|
-
* <p>Connection settings for an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html">Amazon EFS file system</a> or an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html">Amazon S3
|
|
3544
|
+
* <p>Connection settings for an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html">Amazon EFS file system</a> or an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html">Amazon S3 file system</a>.</p>
|
|
3529
3545
|
* @public
|
|
3530
3546
|
*/
|
|
3531
3547
|
FileSystemConfigs?: FileSystemConfig[] | undefined;
|
|
@@ -288,6 +288,7 @@ export declare var ResolvedS3Object$: StaticStructureSchema;
|
|
|
288
288
|
export declare var RetryDetails$: StaticStructureSchema;
|
|
289
289
|
export declare var RuntimeVersionConfig$: StaticStructureSchema;
|
|
290
290
|
export declare var RuntimeVersionError$: StaticStructureSchema;
|
|
291
|
+
export declare var S3FilesConfig$: StaticStructureSchema;
|
|
291
292
|
export declare var ScalingConfig$: StaticStructureSchema;
|
|
292
293
|
export declare var SelfManagedEventSource$: StaticStructureSchema;
|
|
293
294
|
export declare var SelfManagedKafkaEventSourceConfig$: StaticStructureSchema;
|
|
@@ -203,6 +203,12 @@ export declare const S3ObjectStorageMode: {
|
|
|
203
203
|
readonly Reference: "REFERENCE";
|
|
204
204
|
};
|
|
205
205
|
export type S3ObjectStorageMode = (typeof S3ObjectStorageMode)[keyof typeof S3ObjectStorageMode];
|
|
206
|
+
export declare const DirectS3Read: {
|
|
207
|
+
readonly AUTO: "AUTO";
|
|
208
|
+
readonly DISABLED: "DISABLED";
|
|
209
|
+
readonly ENABLED: "ENABLED";
|
|
210
|
+
};
|
|
211
|
+
export type DirectS3Read = (typeof DirectS3Read)[keyof typeof DirectS3Read];
|
|
206
212
|
export declare const LogFormat: {
|
|
207
213
|
readonly Json: "JSON";
|
|
208
214
|
readonly Text: "Text";
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
CapacityProviderScalingMode,
|
|
7
7
|
CapacityProviderState,
|
|
8
8
|
CodeSigningPolicy,
|
|
9
|
+
DirectS3Read,
|
|
9
10
|
EndPointType,
|
|
10
11
|
EventSourceMappingMetric,
|
|
11
12
|
EventSourceMappingSystemLogLevel,
|
|
@@ -753,9 +754,13 @@ export interface Environment {
|
|
|
753
754
|
export interface EphemeralStorage {
|
|
754
755
|
Size: number | undefined;
|
|
755
756
|
}
|
|
757
|
+
export interface S3FilesConfig {
|
|
758
|
+
DirectS3Read?: DirectS3Read | undefined;
|
|
759
|
+
}
|
|
756
760
|
export interface FileSystemConfig {
|
|
757
761
|
Arn: string | undefined;
|
|
758
762
|
LocalMountPath: string | undefined;
|
|
763
|
+
S3FilesConfig?: S3FilesConfig | undefined;
|
|
759
764
|
}
|
|
760
765
|
export interface ImageConfig {
|
|
761
766
|
EntryPoint?: string[] | undefined;
|
|
@@ -288,6 +288,7 @@ export declare var ResolvedS3Object$: StaticStructureSchema;
|
|
|
288
288
|
export declare var RetryDetails$: StaticStructureSchema;
|
|
289
289
|
export declare var RuntimeVersionConfig$: StaticStructureSchema;
|
|
290
290
|
export declare var RuntimeVersionError$: StaticStructureSchema;
|
|
291
|
+
export declare var S3FilesConfig$: StaticStructureSchema;
|
|
291
292
|
export declare var ScalingConfig$: StaticStructureSchema;
|
|
292
293
|
export declare var SelfManagedEventSource$: StaticStructureSchema;
|
|
293
294
|
export declare var SelfManagedKafkaEventSourceConfig$: StaticStructureSchema;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lambda",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1127.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-lambda",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@aws-sdk/core": "^3.977.9",
|
|
56
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
56
|
+
"@aws-sdk/credential-provider-node": "^3.972.82",
|
|
57
57
|
"@aws-sdk/types": "^3.974.5",
|
|
58
58
|
"@smithy/core": "^3.33.3",
|
|
59
59
|
"@smithy/fetch-http-handler": "^5.7.2",
|
|
@@ -4743,7 +4743,7 @@ var WriteGetObjectResponse$ = [9, n0, _WGOR,
|
|
|
4743
4743
|
class CreateSessionCommand extends command(_ep4, _mw0, "CreateSession", CreateSession$) {
|
|
4744
4744
|
}
|
|
4745
4745
|
|
|
4746
|
-
var version = "3.
|
|
4746
|
+
var version = "3.1126.0";
|
|
4747
4747
|
var packageInfo = {
|
|
4748
4748
|
version: version};
|
|
4749
4749
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-s3",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1127.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@aws-sdk/checksums": "^3.1000.29",
|
|
58
58
|
"@aws-sdk/core": "^3.977.9",
|
|
59
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
59
|
+
"@aws-sdk/credential-provider-node": "^3.972.82",
|
|
60
60
|
"@aws-sdk/middleware-sdk-s3": "^3.972.75",
|
|
61
61
|
"@aws-sdk/signature-v4-multi-region": "^3.996.46",
|
|
62
62
|
"@aws-sdk/types": "^3.974.5",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"tslib": "^2.6.2"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@aws-sdk/signature-v4-crt": "3.
|
|
70
|
+
"@aws-sdk/signature-v4-crt": "3.1127.0",
|
|
71
71
|
"@smithy/snapshot-testing": "^2.3.2",
|
|
72
72
|
"@tsconfig/node20": "20.1.8",
|
|
73
73
|
"@types/node": "^20.14.8",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sns",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1127.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Sns Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sns",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@aws-sdk/core": "^3.977.9",
|
|
52
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
52
|
+
"@aws-sdk/credential-provider-node": "^3.972.82",
|
|
53
53
|
"@aws-sdk/types": "^3.974.5",
|
|
54
54
|
"@smithy/core": "^3.33.3",
|
|
55
55
|
"@smithy/fetch-http-handler": "^5.7.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sqs",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1127.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Sqs Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sqs",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@aws-sdk/core": "^3.977.9",
|
|
58
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
58
|
+
"@aws-sdk/credential-provider-node": "^3.972.82",
|
|
59
59
|
"@aws-sdk/middleware-sdk-sqs": "^3.972.42",
|
|
60
60
|
"@aws-sdk/types": "^3.974.5",
|
|
61
61
|
"@smithy/core": "^3.33.3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ssm",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1127.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ssm",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@aws-sdk/core": "^3.977.9",
|
|
52
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
52
|
+
"@aws-sdk/credential-provider-node": "^3.972.82",
|
|
53
53
|
"@aws-sdk/types": "^3.974.5",
|
|
54
54
|
"@smithy/core": "^3.33.3",
|
|
55
55
|
"@smithy/fetch-http-handler": "^5.7.2",
|
|
@@ -51,6 +51,7 @@ class FetchHttpHandler {
|
|
|
51
51
|
const requestTimeoutInMs = requestTimeout$1 ?? this.config.requestTimeout;
|
|
52
52
|
const keepAlive = this.config.keepAlive === true;
|
|
53
53
|
const credentials = this.config.credentials;
|
|
54
|
+
const fetchFn = this.config.customFetch ?? fetch;
|
|
54
55
|
if (abortSignal?.aborted) {
|
|
55
56
|
const abortError = buildAbortError(abortSignal);
|
|
56
57
|
return Promise.reject(abortError);
|
|
@@ -96,7 +97,7 @@ class FetchHttpHandler {
|
|
|
96
97
|
let removeSignalEventListener = () => { };
|
|
97
98
|
const fetchRequest = createRequest(url, requestOptions);
|
|
98
99
|
const raceOfPromises = [
|
|
99
|
-
|
|
100
|
+
fetchFn(fetchRequest).then((response) => {
|
|
100
101
|
const fetchHeaders = response.headers;
|
|
101
102
|
const transformedHeaders = {};
|
|
102
103
|
for (const pair of fetchHeaders.entries()) {
|
|
@@ -34,6 +34,7 @@ export class FetchHttpHandler {
|
|
|
34
34
|
const requestTimeoutInMs = requestTimeout ?? this.config.requestTimeout;
|
|
35
35
|
const keepAlive = this.config.keepAlive === true;
|
|
36
36
|
const credentials = this.config.credentials;
|
|
37
|
+
const fetchFn = this.config.customFetch ?? fetch;
|
|
37
38
|
if (abortSignal?.aborted) {
|
|
38
39
|
const abortError = buildAbortError(abortSignal);
|
|
39
40
|
return Promise.reject(abortError);
|
|
@@ -79,7 +80,7 @@ export class FetchHttpHandler {
|
|
|
79
80
|
let removeSignalEventListener = () => { };
|
|
80
81
|
const fetchRequest = createRequest(url, requestOptions);
|
|
81
82
|
const raceOfPromises = [
|
|
82
|
-
|
|
83
|
+
fetchFn(fetchRequest).then((response) => {
|
|
83
84
|
const fetchHeaders = response.headers;
|
|
84
85
|
const transformedHeaders = {};
|
|
85
86
|
for (const pair of fetchHeaders.entries()) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/fetch-http-handler",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.8.0",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/fetch-http-handler",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.mts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@smithy/core": "^3.33.
|
|
44
|
-
"@smithy/types": "^4.
|
|
43
|
+
"@smithy/core": "^3.33.3",
|
|
44
|
+
"@smithy/types": "^4.18.0",
|
|
45
45
|
"tslib": "^2.6.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
@@ -491,6 +491,7 @@ class ClientHttp2SessionRef {
|
|
|
491
491
|
destroy() {
|
|
492
492
|
this.refs = 0;
|
|
493
493
|
if (!this.session.destroyed) {
|
|
494
|
+
this.session.setTimeout(0);
|
|
494
495
|
this.session.destroy();
|
|
495
496
|
}
|
|
496
497
|
}
|
|
@@ -608,9 +609,8 @@ class NodeHttp2ConnectionManager {
|
|
|
608
609
|
session.on("error", ensureDestroyed);
|
|
609
610
|
session.on("frameError", ensureDestroyed);
|
|
610
611
|
session.on("close", ensureDestroyed);
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
}
|
|
612
|
+
const timeout = connectionConfiguration.requestTimeout ?? 300_000;
|
|
613
|
+
session.setTimeout(timeout, ensureDestroyed);
|
|
614
614
|
ref.retain();
|
|
615
615
|
return ref;
|
|
616
616
|
}
|
|
@@ -817,6 +817,9 @@ class NodeHttp2Handler {
|
|
|
817
817
|
resolve({ response: httpResponse });
|
|
818
818
|
if (useIsolatedSession) {
|
|
819
819
|
session.close();
|
|
820
|
+
clientHttp2Stream.on("end", () => {
|
|
821
|
+
ref.destroy();
|
|
822
|
+
});
|
|
820
823
|
}
|
|
821
824
|
});
|
|
822
825
|
clientHttp2Stream.on("close", () => {
|
|
@@ -827,7 +830,11 @@ class NodeHttp2Handler {
|
|
|
827
830
|
this.connectionManager.release(requestContext, ref);
|
|
828
831
|
}
|
|
829
832
|
if (!fulfilled) {
|
|
830
|
-
|
|
833
|
+
const error = new Error("Unexpected error: http2 request did not get a response");
|
|
834
|
+
if (session.destroyed) {
|
|
835
|
+
error.name = "TimeoutError";
|
|
836
|
+
}
|
|
837
|
+
rejectWithDestroy(error);
|
|
831
838
|
}
|
|
832
839
|
});
|
|
833
840
|
writeRequestBodyPromise = writeRequestBody(clientHttp2Stream, request, effectiveRequestTimeout);
|
|
@@ -64,9 +64,8 @@ export class NodeHttp2ConnectionManager {
|
|
|
64
64
|
session.on("error", ensureDestroyed);
|
|
65
65
|
session.on("frameError", ensureDestroyed);
|
|
66
66
|
session.on("close", ensureDestroyed);
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
67
|
+
const timeout = connectionConfiguration.requestTimeout ?? 300_000;
|
|
68
|
+
session.setTimeout(timeout, ensureDestroyed);
|
|
70
69
|
ref.retain();
|
|
71
70
|
return ref;
|
|
72
71
|
}
|
|
@@ -142,6 +142,9 @@ export class NodeHttp2Handler {
|
|
|
142
142
|
resolve({ response: httpResponse });
|
|
143
143
|
if (useIsolatedSession) {
|
|
144
144
|
session.close();
|
|
145
|
+
clientHttp2Stream.on("end", () => {
|
|
146
|
+
ref.destroy();
|
|
147
|
+
});
|
|
145
148
|
}
|
|
146
149
|
});
|
|
147
150
|
clientHttp2Stream.on("close", () => {
|
|
@@ -152,7 +155,11 @@ export class NodeHttp2Handler {
|
|
|
152
155
|
this.connectionManager.release(requestContext, ref);
|
|
153
156
|
}
|
|
154
157
|
if (!fulfilled) {
|
|
155
|
-
|
|
158
|
+
const error = new Error("Unexpected error: http2 request did not get a response");
|
|
159
|
+
if (session.destroyed) {
|
|
160
|
+
error.name = "TimeoutError";
|
|
161
|
+
}
|
|
162
|
+
rejectWithDestroy(error);
|
|
156
163
|
}
|
|
157
164
|
});
|
|
158
165
|
writeRequestBodyPromise = writeRequestBody(clientHttp2Stream, request, effectiveRequestTimeout);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/node-http-handler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.12.1",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/node-http-handler",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@smithy/core": "^3.33.3",
|
|
43
|
-
"@smithy/types": "^4.
|
|
43
|
+
"@smithy/types": "^4.18.0",
|
|
44
44
|
"tslib": "^2.6.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
@@ -118,6 +118,20 @@ export interface FetchHttpHandlerOptions {
|
|
|
118
118
|
* ```
|
|
119
119
|
*/
|
|
120
120
|
requestInit?: (httpRequest: IHttpRequest) => RequestInit;
|
|
121
|
+
/**
|
|
122
|
+
* An optional custom fetch implementation to use in place of the
|
|
123
|
+
* global fetch function.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```js
|
|
127
|
+
* new Client({
|
|
128
|
+
* requestHandler: {
|
|
129
|
+
* customFetch: (request) => myFetchImplementation(request)
|
|
130
|
+
* }
|
|
131
|
+
* });
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
customFetch?: typeof fetch;
|
|
121
135
|
}
|
|
122
136
|
declare global {
|
|
123
137
|
/**
|
|
@@ -118,6 +118,20 @@ export interface FetchHttpHandlerOptions {
|
|
|
118
118
|
* ```
|
|
119
119
|
*/
|
|
120
120
|
requestInit?: (httpRequest: IHttpRequest) => RequestInit;
|
|
121
|
+
/**
|
|
122
|
+
* An optional custom fetch implementation to use in place of the
|
|
123
|
+
* global fetch function.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```js
|
|
127
|
+
* new Client({
|
|
128
|
+
* requestHandler: {
|
|
129
|
+
* customFetch: (request) => myFetchImplementation(request)
|
|
130
|
+
* }
|
|
131
|
+
* });
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
customFetch?: typeof fetch;
|
|
121
135
|
}
|
|
122
136
|
declare global {
|
|
123
137
|
/**
|
|
@@ -1262,16 +1262,21 @@
|
|
|
1262
1262
|
state.result += _result;
|
|
1263
1263
|
}
|
|
1264
1264
|
}
|
|
1265
|
+
function chargeMergeWork(state) {
|
|
1266
|
+
state.totalMergeKeys++;
|
|
1267
|
+
if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
|
|
1268
|
+
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1265
1271
|
function mergeMappings(state, destination, source, overridableKeys) {
|
|
1266
1272
|
if (!common2.isObject(source)) {
|
|
1267
1273
|
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
1268
1274
|
}
|
|
1275
|
+
chargeMergeWork(state);
|
|
1269
1276
|
var sourceKeys = Object.keys(source);
|
|
1270
1277
|
for (var index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
|
1271
1278
|
var key = sourceKeys[index];
|
|
1272
|
-
|
|
1273
|
-
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
1274
|
-
}
|
|
1279
|
+
chargeMergeWork(state);
|
|
1275
1280
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
1276
1281
|
setProperty(destination, key, source[key]);
|
|
1277
1282
|
overridableKeys[key] = true;
|
|
@@ -1299,6 +1304,9 @@
|
|
|
1299
1304
|
}
|
|
1300
1305
|
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
1301
1306
|
if (Array.isArray(valueNode)) {
|
|
1307
|
+
if (valueNode.length > 100) {
|
|
1308
|
+
throwError(state, "abnormal merge sequence size");
|
|
1309
|
+
}
|
|
1302
1310
|
for (var _index = 0, _quantity = valueNode.length; _index < _quantity; _index += 1) {
|
|
1303
1311
|
mergeMappings(state, _result, valueNode[_index], overridableKeys);
|
|
1304
1312
|
}
|