@cdklabs/cdk-ssm-documents 0.0.65 → 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 +6 -6
- 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 +8 -8
- 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 +222 -242
- 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 +35 -55
- 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 +419 -275
- package/node_modules/@aws-sdk/client-cloudwatch/package.json +9 -9
- 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 +2875 -2885
- 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 +6885 -4554
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CancelCapacityReservationCommand.d.ts +16 -10
- package/node_modules/@aws-sdk/client-ec2/package.json +11 -11
- 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/package.json +10 -10
- 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 +12 -12
- 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 +20 -20
- 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 +9 -9
- 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 +15 -15
- 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 +9 -9
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +45 -50
- 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/submodules/client/util-endpoints/lib/aws/partitions.js +276 -1
- package/node_modules/@aws-sdk/core/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +4 -6
- package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
- 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 +6 -6
- 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 +13 -13
- package/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +31 -33
- package/node_modules/@aws-sdk/credential-provider-login/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +16 -18
- package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +11 -13
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +22 -24
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js +3 -0
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- 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 +7 -7
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js +18 -23
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-sdk-ec2/dist-cjs/index.js +11 -13
- package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +6 -6
- 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 +9 -11
- package/node_modules/@aws-sdk/middleware-sdk-sqs/dist-cjs/index.js +9 -11
- package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +5 -5
- 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 +9 -8
- 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 +5 -5
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +26 -28
- package/node_modules/@aws-sdk/token-providers/package.json +7 -7
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +7 -8
- package/node_modules/@aws-sdk/types/package.json +4 -4
- package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -2
- package/node_modules/@aws-sdk/util-locate-window/package.json +4 -4
- 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/@aws-sdk/xml-builder/node_modules/strnum/package.json +5 -4
- package/node_modules/@aws-sdk/xml-builder/package.json +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +518 -371
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +10 -2
- 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/protocols/HttpProtocol.js +10 -2
- 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/package.json +1 -1
- package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
- package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
- package/node_modules/@smithy/middleware-compression/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +2 -2
- package/node_modules/anynum/package.json +2 -2
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-node",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.57",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from a Node.JS environment. ",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20.0.0"
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
12
12
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
13
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
13
|
+
"build:es": "premove dist-es && tsc -p tsconfig.es.json",
|
|
14
14
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
15
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
15
|
+
"build:types": "premove dist-types && tsc -p tsconfig.types.json",
|
|
16
16
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
17
|
-
"clean": "premove dist-cjs dist-es dist-types
|
|
17
|
+
"clean": "premove dist-cjs dist-es dist-types",
|
|
18
18
|
"test": "yarn g:vitest run --reporter verbose",
|
|
19
19
|
"test:watch": "yarn g:vitest watch",
|
|
20
20
|
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
},
|
|
32
32
|
"license": "Apache-2.0",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@aws-sdk/credential-provider-env": "^3.972.
|
|
35
|
-
"@aws-sdk/credential-provider-http": "^3.972.
|
|
36
|
-
"@aws-sdk/credential-provider-ini": "^3.972.
|
|
37
|
-
"@aws-sdk/credential-provider-process": "^3.972.
|
|
38
|
-
"@aws-sdk/credential-provider-sso": "^3.972.
|
|
39
|
-
"@aws-sdk/credential-provider-web-identity": "^3.972.
|
|
40
|
-
"@aws-sdk/types": "^3.973.
|
|
34
|
+
"@aws-sdk/credential-provider-env": "^3.972.48",
|
|
35
|
+
"@aws-sdk/credential-provider-http": "^3.972.50",
|
|
36
|
+
"@aws-sdk/credential-provider-ini": "^3.972.55",
|
|
37
|
+
"@aws-sdk/credential-provider-process": "^3.972.48",
|
|
38
|
+
"@aws-sdk/credential-provider-sso": "^3.972.54",
|
|
39
|
+
"@aws-sdk/credential-provider-web-identity": "^3.972.54",
|
|
40
|
+
"@aws-sdk/types": "^3.973.13",
|
|
41
41
|
"@smithy/core": "^3.24.6",
|
|
42
42
|
"@smithy/credential-provider-imds": "^4.3.7",
|
|
43
43
|
"@smithy/types": "^4.14.3",
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var node_util = require('node:util');
|
|
6
|
-
var client = require('@aws-sdk/core/client');
|
|
1
|
+
const { externalDataInterceptor, CredentialsProviderError, parseKnownFiles, getProfileName } = require("@smithy/core/config");
|
|
2
|
+
const { exec } = require("node:child_process");
|
|
3
|
+
const { promisify } = require("node:util");
|
|
4
|
+
const { setCredentialFeature } = require("@aws-sdk/core/client");
|
|
7
5
|
|
|
8
6
|
const getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
9
7
|
if (data.Version !== 1) {
|
|
@@ -31,7 +29,7 @@ const getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
|
31
29
|
...(data.CredentialScope && { credentialScope: data.CredentialScope }),
|
|
32
30
|
...(accountId && { accountId }),
|
|
33
31
|
};
|
|
34
|
-
|
|
32
|
+
setCredentialFeature(credentials, "CREDENTIALS_PROCESS", "w");
|
|
35
33
|
return credentials;
|
|
36
34
|
};
|
|
37
35
|
|
|
@@ -40,7 +38,7 @@ const resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
|
40
38
|
if (profiles[profileName]) {
|
|
41
39
|
const credentialProcess = profile["credential_process"];
|
|
42
40
|
if (credentialProcess !== undefined) {
|
|
43
|
-
const execPromise =
|
|
41
|
+
const execPromise = promisify(externalDataInterceptor?.getTokenRecord?.().exec ?? exec);
|
|
44
42
|
try {
|
|
45
43
|
const { stdout } = await execPromise(credentialProcess);
|
|
46
44
|
let data;
|
|
@@ -53,15 +51,15 @@ const resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
|
53
51
|
return getValidatedProcessCredentials(profileName, data, profiles);
|
|
54
52
|
}
|
|
55
53
|
catch (error) {
|
|
56
|
-
throw new
|
|
54
|
+
throw new CredentialsProviderError(error.message, { logger });
|
|
57
55
|
}
|
|
58
56
|
}
|
|
59
57
|
else {
|
|
60
|
-
throw new
|
|
58
|
+
throw new CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
|
|
61
59
|
}
|
|
62
60
|
}
|
|
63
61
|
else {
|
|
64
|
-
throw new
|
|
62
|
+
throw new CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
|
|
65
63
|
logger,
|
|
66
64
|
});
|
|
67
65
|
}
|
|
@@ -69,8 +67,8 @@ const resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
|
69
67
|
|
|
70
68
|
const fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
71
69
|
init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
|
|
72
|
-
const profiles = await
|
|
73
|
-
return resolveProcessCredentials(
|
|
70
|
+
const profiles = await parseKnownFiles(init);
|
|
71
|
+
return resolveProcessCredentials(getProfileName({
|
|
74
72
|
profile: init.profile ?? callerClientConfig?.profile,
|
|
75
73
|
}), profiles, init.logger);
|
|
76
74
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-process",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.48",
|
|
4
4
|
"description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
9
9
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
10
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
10
|
+
"build:es": "premove dist-es && tsc -p tsconfig.es.json",
|
|
11
11
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
12
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
12
|
+
"build:types": "premove dist-types && tsc -p tsconfig.types.json",
|
|
13
13
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
14
|
-
"clean": "premove dist-cjs dist-es dist-types
|
|
14
|
+
"clean": "premove dist-cjs dist-es dist-types",
|
|
15
15
|
"test": "yarn g:vitest run",
|
|
16
16
|
"test:watch": "yarn g:vitest watch"
|
|
17
17
|
},
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/core": "^3.974.
|
|
30
|
-
"@aws-sdk/types": "^3.973.
|
|
29
|
+
"@aws-sdk/core": "^3.974.22",
|
|
30
|
+
"@aws-sdk/types": "^3.973.13",
|
|
31
31
|
"@smithy/core": "^3.24.6",
|
|
32
32
|
"@smithy/types": "^4.14.3",
|
|
33
33
|
"tslib": "^2.6.2"
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var client = require('@aws-sdk/core/client');
|
|
5
|
-
var tokenProviders = require('@aws-sdk/token-providers');
|
|
1
|
+
const { CredentialsProviderError, getSSOTokenFromFile, getProfileName, parseKnownFiles, loadSsoSessionData } = require("@smithy/core/config");
|
|
2
|
+
const { setCredentialFeature } = require("@aws-sdk/core/client");
|
|
3
|
+
const { fromSso } = require("@aws-sdk/token-providers");
|
|
6
4
|
|
|
7
5
|
const isSsoProfile = (arg) => arg &&
|
|
8
6
|
(typeof arg.sso_start_url === "string" ||
|
|
@@ -17,7 +15,7 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
|
|
|
17
15
|
const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
|
|
18
16
|
if (ssoSession) {
|
|
19
17
|
try {
|
|
20
|
-
const _token = await
|
|
18
|
+
const _token = await fromSso({
|
|
21
19
|
profile,
|
|
22
20
|
filepath,
|
|
23
21
|
configFilepath,
|
|
@@ -32,7 +30,7 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
|
|
|
32
30
|
};
|
|
33
31
|
}
|
|
34
32
|
catch (e) {
|
|
35
|
-
throw new
|
|
33
|
+
throw new CredentialsProviderError(e.message, {
|
|
36
34
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
37
35
|
logger,
|
|
38
36
|
});
|
|
@@ -40,23 +38,23 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
|
|
|
40
38
|
}
|
|
41
39
|
else {
|
|
42
40
|
try {
|
|
43
|
-
token = await
|
|
41
|
+
token = await getSSOTokenFromFile(ssoStartUrl);
|
|
44
42
|
}
|
|
45
43
|
catch (e) {
|
|
46
|
-
throw new
|
|
44
|
+
throw new CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {
|
|
47
45
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
48
46
|
logger,
|
|
49
47
|
});
|
|
50
48
|
}
|
|
51
49
|
}
|
|
52
50
|
if (new Date(token.expiresAt).getTime() - Date.now() <= 0) {
|
|
53
|
-
throw new
|
|
51
|
+
throw new CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {
|
|
54
52
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
55
53
|
logger,
|
|
56
54
|
});
|
|
57
55
|
}
|
|
58
56
|
const { accessToken } = token;
|
|
59
|
-
const { SSOClient, GetRoleCredentialsCommand } =
|
|
57
|
+
const { SSOClient, GetRoleCredentialsCommand } = require('./loadSso-BGYXHf8s.js');
|
|
60
58
|
const sso = ssoClient ||
|
|
61
59
|
new SSOClient(Object.assign({}, clientConfig ?? {}, {
|
|
62
60
|
logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,
|
|
@@ -72,14 +70,14 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
|
|
|
72
70
|
}));
|
|
73
71
|
}
|
|
74
72
|
catch (e) {
|
|
75
|
-
throw new
|
|
73
|
+
throw new CredentialsProviderError(e, {
|
|
76
74
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
77
75
|
logger,
|
|
78
76
|
});
|
|
79
77
|
}
|
|
80
78
|
const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {}, } = ssoResp;
|
|
81
79
|
if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
|
|
82
|
-
throw new
|
|
80
|
+
throw new CredentialsProviderError("SSO returns an invalid temporary credential.", {
|
|
83
81
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
84
82
|
logger,
|
|
85
83
|
});
|
|
@@ -93,10 +91,10 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
|
|
|
93
91
|
...(accountId && { accountId }),
|
|
94
92
|
};
|
|
95
93
|
if (ssoSession) {
|
|
96
|
-
|
|
94
|
+
setCredentialFeature(credentials, "CREDENTIALS_SSO", "s");
|
|
97
95
|
}
|
|
98
96
|
else {
|
|
99
|
-
|
|
97
|
+
setCredentialFeature(credentials, "CREDENTIALS_SSO_LEGACY", "u");
|
|
100
98
|
}
|
|
101
99
|
return credentials;
|
|
102
100
|
};
|
|
@@ -104,7 +102,7 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
|
|
|
104
102
|
const validateSsoProfile = (profile, logger) => {
|
|
105
103
|
const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
|
|
106
104
|
if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
|
|
107
|
-
throw new
|
|
105
|
+
throw new CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", ` +
|
|
108
106
|
`"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, { tryNextLink: false, logger });
|
|
109
107
|
}
|
|
110
108
|
return profile;
|
|
@@ -114,32 +112,32 @@ const fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
114
112
|
init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
115
113
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
116
114
|
const { ssoClient } = init;
|
|
117
|
-
const profileName =
|
|
115
|
+
const profileName = getProfileName({
|
|
118
116
|
profile: init.profile ?? callerClientConfig?.profile,
|
|
119
117
|
});
|
|
120
118
|
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
121
|
-
const profiles = await
|
|
119
|
+
const profiles = await parseKnownFiles(init);
|
|
122
120
|
const profile = profiles[profileName];
|
|
123
121
|
if (!profile) {
|
|
124
|
-
throw new
|
|
122
|
+
throw new CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init.logger });
|
|
125
123
|
}
|
|
126
124
|
if (!isSsoProfile(profile)) {
|
|
127
|
-
throw new
|
|
125
|
+
throw new CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {
|
|
128
126
|
logger: init.logger,
|
|
129
127
|
});
|
|
130
128
|
}
|
|
131
129
|
if (profile?.sso_session) {
|
|
132
|
-
const ssoSessions = await
|
|
130
|
+
const ssoSessions = await loadSsoSessionData(init);
|
|
133
131
|
const session = ssoSessions[profile.sso_session];
|
|
134
132
|
const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;
|
|
135
133
|
if (ssoRegion && ssoRegion !== session.sso_region) {
|
|
136
|
-
throw new
|
|
134
|
+
throw new CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {
|
|
137
135
|
tryNextLink: false,
|
|
138
136
|
logger: init.logger,
|
|
139
137
|
});
|
|
140
138
|
}
|
|
141
139
|
if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {
|
|
142
|
-
throw new
|
|
140
|
+
throw new CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {
|
|
143
141
|
tryNextLink: false,
|
|
144
142
|
logger: init.logger,
|
|
145
143
|
});
|
|
@@ -166,7 +164,7 @@ const fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
166
164
|
});
|
|
167
165
|
}
|
|
168
166
|
else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
|
|
169
|
-
throw new
|
|
167
|
+
throw new CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include " +
|
|
170
168
|
'"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"', { tryNextLink: false, logger: init.logger });
|
|
171
169
|
}
|
|
172
170
|
else {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.54",
|
|
4
4
|
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
9
9
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
10
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
10
|
+
"build:es": "premove dist-es && tsc -p tsconfig.es.json",
|
|
11
11
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
12
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
12
|
+
"build:types": "premove dist-types && tsc -p tsconfig.types.json",
|
|
13
13
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
14
|
-
"clean": "premove dist-cjs dist-es dist-types
|
|
14
|
+
"clean": "premove dist-cjs dist-es dist-types",
|
|
15
15
|
"test": "yarn g:vitest run",
|
|
16
16
|
"test:watch": "yarn g:vitest watch",
|
|
17
17
|
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
},
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aws-sdk/core": "^3.974.
|
|
32
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
33
|
-
"@aws-sdk/token-providers": "3.
|
|
34
|
-
"@aws-sdk/types": "^3.973.
|
|
31
|
+
"@aws-sdk/core": "^3.974.22",
|
|
32
|
+
"@aws-sdk/nested-clients": "^3.997.22",
|
|
33
|
+
"@aws-sdk/token-providers": "3.1071.0",
|
|
34
|
+
"@aws-sdk/types": "^3.973.13",
|
|
35
35
|
"@smithy/core": "^3.24.6",
|
|
36
36
|
"@smithy/types": "^4.14.3",
|
|
37
37
|
"tslib": "^2.6.2"
|
|
@@ -1,33 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const config_1 = require("@smithy/core/config");
|
|
6
|
-
const node_fs_1 = require("node:fs");
|
|
7
|
-
const fromWebToken_1 = require("./fromWebToken");
|
|
1
|
+
const { setCredentialFeature } = require("@aws-sdk/core/client");
|
|
2
|
+
const { CredentialsProviderError, externalDataInterceptor } = require("@smithy/core/config");
|
|
3
|
+
const { readFileSync } = require("node:fs");
|
|
4
|
+
const { fromWebToken } = require("./fromWebToken");
|
|
8
5
|
const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
|
|
9
6
|
const ENV_ROLE_ARN = "AWS_ROLE_ARN";
|
|
10
7
|
const ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
|
|
11
|
-
|
|
8
|
+
exports.fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
|
|
12
9
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
|
|
13
10
|
const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
|
|
14
11
|
const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
|
|
15
12
|
const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];
|
|
16
13
|
if (!webIdentityTokenFile || !roleArn) {
|
|
17
|
-
throw new
|
|
14
|
+
throw new CredentialsProviderError("Web identity configuration not specified", {
|
|
18
15
|
logger: init.logger,
|
|
19
16
|
});
|
|
20
17
|
}
|
|
21
|
-
const credentials = await
|
|
18
|
+
const credentials = await fromWebToken({
|
|
22
19
|
...init,
|
|
23
|
-
webIdentityToken:
|
|
24
|
-
|
|
20
|
+
webIdentityToken: externalDataInterceptor?.getTokenRecord?.()[webIdentityTokenFile] ??
|
|
21
|
+
readFileSync(webIdentityTokenFile, { encoding: "ascii" }),
|
|
25
22
|
roleArn,
|
|
26
23
|
roleSessionName,
|
|
27
24
|
})(awsIdentityProperties);
|
|
28
25
|
if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
|
|
29
|
-
|
|
26
|
+
setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
|
|
30
27
|
}
|
|
31
28
|
return credentials;
|
|
32
29
|
};
|
|
33
|
-
exports.fromTokenFile = fromTokenFile;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fromWebToken = void 0;
|
|
4
|
-
const fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
1
|
+
exports.fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
5
2
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
|
|
6
3
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
|
7
4
|
let { roleAssumerWithWebIdentity } = init;
|
|
8
5
|
if (!roleAssumerWithWebIdentity) {
|
|
9
|
-
const { getDefaultRoleAssumerWithWebIdentity } =
|
|
6
|
+
const { getDefaultRoleAssumerWithWebIdentity } = require("@aws-sdk/nested-clients/sts");
|
|
10
7
|
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
|
11
8
|
...init.clientConfig,
|
|
12
9
|
credentialProviderLogger: init.logger,
|
|
@@ -26,4 +23,3 @@ const fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
|
26
23
|
DurationSeconds: durationSeconds,
|
|
27
24
|
});
|
|
28
25
|
};
|
|
29
|
-
exports.fromWebToken = fromWebToken;
|
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var fromWebToken = require('./fromWebToken');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.prototype.hasOwnProperty.call(fromTokenFile, '__proto__') &&
|
|
9
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
10
|
-
Object.defineProperty(exports, '__proto__', {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
value: fromTokenFile['__proto__']
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
Object.keys(fromTokenFile).forEach(function (k) {
|
|
16
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = fromTokenFile[k];
|
|
17
|
-
});
|
|
18
|
-
Object.prototype.hasOwnProperty.call(fromWebToken, '__proto__') &&
|
|
19
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
20
|
-
Object.defineProperty(exports, '__proto__', {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
value: fromWebToken['__proto__']
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
Object.keys(fromWebToken).forEach(function (k) {
|
|
26
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = fromWebToken[k];
|
|
27
|
-
});
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
__exportStar(require("./fromTokenFile"), exports);
|
|
3
|
+
__exportStar(require("./fromWebToken"), exports);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-web-identity",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.54",
|
|
4
4
|
"description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
9
9
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
10
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
10
|
+
"build:es": "premove dist-es && tsc -p tsconfig.es.json",
|
|
11
11
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
12
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
12
|
+
"build:types": "premove dist-types && tsc -p tsconfig.types.json",
|
|
13
13
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
14
|
-
"clean": "premove dist-cjs dist-es dist-types
|
|
14
|
+
"clean": "premove dist-cjs dist-es dist-types",
|
|
15
15
|
"test": "yarn g:vitest run",
|
|
16
16
|
"test:watch": "yarn g:vitest watch"
|
|
17
17
|
},
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
},
|
|
35
35
|
"license": "Apache-2.0",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@aws-sdk/core": "^3.974.
|
|
38
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
39
|
-
"@aws-sdk/types": "^3.973.
|
|
37
|
+
"@aws-sdk/core": "^3.974.22",
|
|
38
|
+
"@aws-sdk/nested-clients": "^3.997.22",
|
|
39
|
+
"@aws-sdk/types": "^3.973.13",
|
|
40
40
|
"@smithy/core": "^3.24.6",
|
|
41
41
|
"@smithy/types": "^4.14.3",
|
|
42
42
|
"tslib": "^2.6.2"
|
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.ResponseChecksumValidation = checksums.ResponseChecksumValidation;
|
|
20
|
-
exports.flexibleChecksumsMiddleware = checksums.flexibleChecksumsMiddleware;
|
|
21
|
-
exports.flexibleChecksumsMiddlewareOptions = checksums.flexibleChecksumsMiddlewareOptions;
|
|
22
|
-
exports.getFlexibleChecksumsPlugin = checksums.getFlexibleChecksumsPlugin;
|
|
23
|
-
exports.resolveFlexibleChecksumsConfig = checksums.resolveFlexibleChecksumsConfig;
|
|
1
|
+
const { CONFIG_REQUEST_CHECKSUM_CALCULATION, CONFIG_RESPONSE_CHECKSUM_VALIDATION, ChecksumAlgorithm, ChecksumLocation, DEFAULT_CHECKSUM_ALGORITHM, DEFAULT_REQUEST_CHECKSUM_CALCULATION, DEFAULT_RESPONSE_CHECKSUM_VALIDATION, ENV_REQUEST_CHECKSUM_CALCULATION, ENV_RESPONSE_CHECKSUM_VALIDATION, NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, RequestChecksumCalculation, ResponseChecksumValidation, flexibleChecksumsMiddleware, flexibleChecksumsMiddlewareOptions, getFlexibleChecksumsPlugin, resolveFlexibleChecksumsConfig } = require("@aws-sdk/checksums");
|
|
2
|
+
exports.CONFIG_REQUEST_CHECKSUM_CALCULATION = CONFIG_REQUEST_CHECKSUM_CALCULATION;
|
|
3
|
+
exports.CONFIG_RESPONSE_CHECKSUM_VALIDATION = CONFIG_RESPONSE_CHECKSUM_VALIDATION;
|
|
4
|
+
exports.ChecksumAlgorithm = ChecksumAlgorithm;
|
|
5
|
+
exports.ChecksumLocation = ChecksumLocation;
|
|
6
|
+
exports.DEFAULT_CHECKSUM_ALGORITHM = DEFAULT_CHECKSUM_ALGORITHM;
|
|
7
|
+
exports.DEFAULT_REQUEST_CHECKSUM_CALCULATION = DEFAULT_REQUEST_CHECKSUM_CALCULATION;
|
|
8
|
+
exports.DEFAULT_RESPONSE_CHECKSUM_VALIDATION = DEFAULT_RESPONSE_CHECKSUM_VALIDATION;
|
|
9
|
+
exports.ENV_REQUEST_CHECKSUM_CALCULATION = ENV_REQUEST_CHECKSUM_CALCULATION;
|
|
10
|
+
exports.ENV_RESPONSE_CHECKSUM_VALIDATION = ENV_RESPONSE_CHECKSUM_VALIDATION;
|
|
11
|
+
exports.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS = NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS;
|
|
12
|
+
exports.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS = NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS;
|
|
13
|
+
exports.RequestChecksumCalculation = RequestChecksumCalculation;
|
|
14
|
+
exports.ResponseChecksumValidation = ResponseChecksumValidation;
|
|
15
|
+
exports.flexibleChecksumsMiddleware = flexibleChecksumsMiddleware;
|
|
16
|
+
exports.flexibleChecksumsMiddlewareOptions = flexibleChecksumsMiddlewareOptions;
|
|
17
|
+
exports.getFlexibleChecksumsPlugin = getFlexibleChecksumsPlugin;
|
|
18
|
+
exports.resolveFlexibleChecksumsConfig = resolveFlexibleChecksumsConfig;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-flexible-checksums",
|
|
3
|
-
"version": "3.974.
|
|
3
|
+
"version": "3.974.32",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
7
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
7
|
+
"build:es": "premove dist-es && tsc -p tsconfig.es.json",
|
|
8
8
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
9
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
10
|
-
"clean": "premove dist-cjs dist-es dist-types
|
|
9
|
+
"build:types": "premove dist-types && tsc -p tsconfig.types.json",
|
|
10
|
+
"clean": "premove dist-cjs dist-es dist-types"
|
|
11
11
|
},
|
|
12
12
|
"main": "./dist-cjs/index.js",
|
|
13
13
|
"module": "./dist-es/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@aws-sdk/checksums": "^3.1000.
|
|
22
|
+
"@aws-sdk/checksums": "^3.1000.7",
|
|
23
23
|
"tslib": "^2.6.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var protocols = require('@smithy/core/protocols');
|
|
6
|
-
var signatureV4 = require('@smithy/signature-v4');
|
|
1
|
+
const { formatUrl } = require("@aws-sdk/core/util");
|
|
2
|
+
const { getEndpointFromInstructions, toEndpointV1 } = require("@smithy/core/endpoints");
|
|
3
|
+
const { HttpRequest, extendedEncodeURIComponent } = require("@smithy/core/protocols");
|
|
4
|
+
const { SignatureV4 } = require("@smithy/signature-v4");
|
|
7
5
|
|
|
8
6
|
const version = "2016-11-15";
|
|
9
7
|
function copySnapshotPresignedUrlMiddleware(options) {
|
|
@@ -11,7 +9,7 @@ function copySnapshotPresignedUrlMiddleware(options) {
|
|
|
11
9
|
const { input } = args;
|
|
12
10
|
if (!input.PresignedUrl) {
|
|
13
11
|
const destinationRegion = await options.region();
|
|
14
|
-
const endpoint = await
|
|
12
|
+
const endpoint = await getEndpointFromInstructions(input, {
|
|
15
13
|
getEndpointParameterInstructions() {
|
|
16
14
|
return {
|
|
17
15
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -24,8 +22,8 @@ function copySnapshotPresignedUrlMiddleware(options) {
|
|
|
24
22
|
...options,
|
|
25
23
|
region: input.SourceRegion,
|
|
26
24
|
});
|
|
27
|
-
const resolvedEndpoint = typeof options.endpoint === "function" ? await options.endpoint() :
|
|
28
|
-
const requestToSign = new
|
|
25
|
+
const resolvedEndpoint = typeof options.endpoint === "function" ? await options.endpoint() : toEndpointV1(endpoint);
|
|
26
|
+
const requestToSign = new HttpRequest({
|
|
29
27
|
...resolvedEndpoint,
|
|
30
28
|
protocol: "https",
|
|
31
29
|
headers: {
|
|
@@ -41,7 +39,7 @@ function copySnapshotPresignedUrlMiddleware(options) {
|
|
|
41
39
|
DestinationRegion: destinationRegion,
|
|
42
40
|
},
|
|
43
41
|
});
|
|
44
|
-
const signer = new
|
|
42
|
+
const signer = new SignatureV4({
|
|
45
43
|
credentials: options.credentials,
|
|
46
44
|
region: input.SourceRegion,
|
|
47
45
|
service: "ec2",
|
|
@@ -56,16 +54,16 @@ function copySnapshotPresignedUrlMiddleware(options) {
|
|
|
56
54
|
input: {
|
|
57
55
|
...args.input,
|
|
58
56
|
DestinationRegion: destinationRegion,
|
|
59
|
-
PresignedUrl:
|
|
57
|
+
PresignedUrl: formatUrl(presignedRequest),
|
|
60
58
|
},
|
|
61
59
|
};
|
|
62
|
-
if (
|
|
60
|
+
if (HttpRequest.isInstance(args.request)) {
|
|
63
61
|
const { request } = args;
|
|
64
62
|
if (!(request.body ?? "").includes("DestinationRegion=")) {
|
|
65
63
|
request.body += `&DestinationRegion=${destinationRegion}`;
|
|
66
64
|
}
|
|
67
65
|
if (!(request.body ?? "").includes("PresignedUrl=")) {
|
|
68
|
-
request.body += `&PresignedUrl=${
|
|
66
|
+
request.body += `&PresignedUrl=${extendedEncodeURIComponent(args.input.PresignedUrl)}`;
|
|
69
67
|
}
|
|
70
68
|
}
|
|
71
69
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-sdk-ec2",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.36",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
7
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
7
|
+
"build:es": "premove dist-es && tsc -p tsconfig.es.json",
|
|
8
8
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
9
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
9
|
+
"build:types": "premove dist-types && tsc -p tsconfig.types.json",
|
|
10
10
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
11
|
-
"clean": "premove dist-cjs dist-es dist-types
|
|
11
|
+
"clean": "premove dist-cjs dist-es dist-types",
|
|
12
12
|
"test": "yarn g:vitest run",
|
|
13
13
|
"test:watch": "yarn g:vitest watch",
|
|
14
14
|
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/core": "^3.974.
|
|
30
|
-
"@aws-sdk/types": "^3.973.
|
|
29
|
+
"@aws-sdk/core": "^3.974.22",
|
|
30
|
+
"@aws-sdk/types": "^3.973.13",
|
|
31
31
|
"@smithy/core": "^3.24.6",
|
|
32
32
|
"@smithy/signature-v4": "^5.4.6",
|
|
33
33
|
"@smithy/types": "^4.14.3",
|