@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-http",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.50",
|
|
4
4
|
"description": "AWS credential provider for containers and HTTP sources",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"scripts": {
|
|
18
18
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
19
19
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
20
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
20
|
+
"build:es": "premove dist-es && tsc -p tsconfig.es.json",
|
|
21
21
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
22
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
22
|
+
"build:types": "premove dist-types && tsc -p tsconfig.types.json",
|
|
23
23
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
24
|
-
"clean": "premove dist-cjs dist-es dist-types
|
|
24
|
+
"clean": "premove dist-cjs dist-es dist-types",
|
|
25
25
|
"test": "yarn g:vitest run",
|
|
26
26
|
"test:watch": "yarn g:vitest watch",
|
|
27
27
|
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
},
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@aws-sdk/core": "^3.974.
|
|
42
|
-
"@aws-sdk/types": "^3.973.
|
|
41
|
+
"@aws-sdk/core": "^3.974.22",
|
|
42
|
+
"@aws-sdk/types": "^3.973.13",
|
|
43
43
|
"@smithy/core": "^3.24.6",
|
|
44
44
|
"@smithy/fetch-http-handler": "^5.4.6",
|
|
45
45
|
"@smithy/node-http-handler": "^4.7.6",
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var client = require('@aws-sdk/core/client');
|
|
5
|
-
var credentialProviderLogin = require('@aws-sdk/credential-provider-login');
|
|
1
|
+
const { CredentialsProviderError, chain, getProfileName, parseKnownFiles } = require("@smithy/core/config");
|
|
2
|
+
const { setCredentialFeature } = require("@aws-sdk/core/client");
|
|
3
|
+
const { fromLoginCredentials } = require("@aws-sdk/credential-provider-login");
|
|
6
4
|
|
|
7
5
|
const resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
8
6
|
const sourceProvidersMap = {
|
|
9
7
|
EcsContainer: async (options) => {
|
|
10
|
-
const { fromHttp } =
|
|
11
|
-
const { fromContainerMetadata } =
|
|
8
|
+
const { fromHttp } = require('@aws-sdk/credential-provider-http');
|
|
9
|
+
const { fromContainerMetadata } = require('@smithy/credential-provider-imds');
|
|
12
10
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
|
|
13
|
-
return async () =>
|
|
11
|
+
return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
|
|
14
12
|
},
|
|
15
13
|
Ec2InstanceMetadata: async (options) => {
|
|
16
14
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
|
|
17
|
-
const { fromInstanceMetadata } =
|
|
15
|
+
const { fromInstanceMetadata } = require('@smithy/credential-provider-imds');
|
|
18
16
|
return async () => fromInstanceMetadata(options)().then(setNamedProvider);
|
|
19
17
|
},
|
|
20
18
|
Environment: async (options) => {
|
|
21
19
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
|
|
22
|
-
const { fromEnv } =
|
|
20
|
+
const { fromEnv } = require('@aws-sdk/credential-provider-env');
|
|
23
21
|
return async () => fromEnv(options)().then(setNamedProvider);
|
|
24
22
|
},
|
|
25
23
|
};
|
|
@@ -27,11 +25,11 @@ const resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
|
27
25
|
return sourceProvidersMap[credentialSource];
|
|
28
26
|
}
|
|
29
27
|
else {
|
|
30
|
-
throw new
|
|
28
|
+
throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, ` +
|
|
31
29
|
`expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger });
|
|
32
30
|
}
|
|
33
31
|
};
|
|
34
|
-
const setNamedProvider = (creds) =>
|
|
32
|
+
const setNamedProvider = (creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
|
|
35
33
|
|
|
36
34
|
const isAssumeRoleProfile = (arg, { profile = "default", logger } = {}) => {
|
|
37
35
|
return (Boolean(arg) &&
|
|
@@ -61,7 +59,7 @@ const resolveAssumeRoleCredentials = async (profileName, profiles, options, call
|
|
|
61
59
|
const profileData = profiles[profileName];
|
|
62
60
|
const { source_profile, region } = profileData;
|
|
63
61
|
if (!options.roleAssumer) {
|
|
64
|
-
const { getDefaultRoleAssumer } =
|
|
62
|
+
const { getDefaultRoleAssumer } = require('@aws-sdk/nested-clients/sts');
|
|
65
63
|
options.roleAssumer = getDefaultRoleAssumer({
|
|
66
64
|
...options.clientConfig,
|
|
67
65
|
credentialProviderLogger: options.logger,
|
|
@@ -73,8 +71,8 @@ const resolveAssumeRoleCredentials = async (profileName, profiles, options, call
|
|
|
73
71
|
}, options.clientPlugins);
|
|
74
72
|
}
|
|
75
73
|
if (source_profile && source_profile in visitedProfiles) {
|
|
76
|
-
throw new
|
|
77
|
-
` ${
|
|
74
|
+
throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile` +
|
|
75
|
+
` ${getProfileName(options)}. Profiles visited: ` +
|
|
78
76
|
Object.keys(visitedProfiles).join(", "), { logger: options.logger });
|
|
79
77
|
}
|
|
80
78
|
options.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`);
|
|
@@ -85,7 +83,7 @@ const resolveAssumeRoleCredentials = async (profileName, profiles, options, call
|
|
|
85
83
|
}, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {}))
|
|
86
84
|
: (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();
|
|
87
85
|
if (isCredentialSourceWithoutRoleArn(profileData)) {
|
|
88
|
-
return sourceCredsProvider.then((creds) =>
|
|
86
|
+
return sourceCredsProvider.then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
|
|
89
87
|
}
|
|
90
88
|
else {
|
|
91
89
|
const params = {
|
|
@@ -97,13 +95,13 @@ const resolveAssumeRoleCredentials = async (profileName, profiles, options, call
|
|
|
97
95
|
const { mfa_serial } = profileData;
|
|
98
96
|
if (mfa_serial) {
|
|
99
97
|
if (!options.mfaCodeProvider) {
|
|
100
|
-
throw new
|
|
98
|
+
throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false });
|
|
101
99
|
}
|
|
102
100
|
params.SerialNumber = mfa_serial;
|
|
103
101
|
params.TokenCode = await options.mfaCodeProvider(mfa_serial);
|
|
104
102
|
}
|
|
105
103
|
const sourceCreds = await sourceCredsProvider;
|
|
106
|
-
return options.roleAssumer(sourceCreds, params).then((creds) =>
|
|
104
|
+
return options.roleAssumer(sourceCreds, params).then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
|
|
107
105
|
}
|
|
108
106
|
};
|
|
109
107
|
const isCredentialSourceWithoutRoleArn = (section) => {
|
|
@@ -114,21 +112,25 @@ const isLoginProfile = (data) => {
|
|
|
114
112
|
return Boolean(data && data.login_session);
|
|
115
113
|
};
|
|
116
114
|
const resolveLoginCredentials = async (profileName, options, callerClientConfig) => {
|
|
117
|
-
const credentials = await
|
|
115
|
+
const credentials = await fromLoginCredentials({
|
|
118
116
|
...options,
|
|
119
117
|
profile: profileName,
|
|
120
118
|
})({ callerClientConfig });
|
|
121
|
-
return
|
|
119
|
+
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE_LOGIN", "AC");
|
|
122
120
|
};
|
|
123
121
|
|
|
124
122
|
const isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
|
|
125
|
-
const resolveProcessCredentials = async (options, profile) =>
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
123
|
+
const resolveProcessCredentials = async (options, profile) => {
|
|
124
|
+
const { fromProcess } = require('@aws-sdk/credential-provider-process');
|
|
125
|
+
const credentials = await fromProcess({
|
|
126
|
+
...options,
|
|
127
|
+
profile,
|
|
128
|
+
})();
|
|
129
|
+
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE_PROCESS", "v");
|
|
130
|
+
};
|
|
129
131
|
|
|
130
132
|
const resolveSsoCredentials = async (profile, profileData, options = {}, callerClientConfig) => {
|
|
131
|
-
const { fromSSO } =
|
|
133
|
+
const { fromSSO } = require('@aws-sdk/credential-provider-sso');
|
|
132
134
|
return fromSSO({
|
|
133
135
|
profile,
|
|
134
136
|
logger: options.logger,
|
|
@@ -138,10 +140,10 @@ const resolveSsoCredentials = async (profile, profileData, options = {}, callerC
|
|
|
138
140
|
callerClientConfig,
|
|
139
141
|
}).then((creds) => {
|
|
140
142
|
if (profileData.sso_session) {
|
|
141
|
-
return
|
|
143
|
+
return setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO", "r");
|
|
142
144
|
}
|
|
143
145
|
else {
|
|
144
|
-
return
|
|
146
|
+
return setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t");
|
|
145
147
|
}
|
|
146
148
|
});
|
|
147
149
|
};
|
|
@@ -167,7 +169,7 @@ const resolveStaticCredentials = async (profile, options) => {
|
|
|
167
169
|
...(profile.aws_credential_scope && { credentialScope: profile.aws_credential_scope }),
|
|
168
170
|
...(profile.aws_account_id && { accountId: profile.aws_account_id }),
|
|
169
171
|
};
|
|
170
|
-
return
|
|
172
|
+
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
|
|
171
173
|
};
|
|
172
174
|
|
|
173
175
|
const isWebIdentityProfile = (arg) => Boolean(arg) &&
|
|
@@ -175,16 +177,20 @@ const isWebIdentityProfile = (arg) => Boolean(arg) &&
|
|
|
175
177
|
typeof arg.web_identity_token_file === "string" &&
|
|
176
178
|
typeof arg.role_arn === "string" &&
|
|
177
179
|
["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
|
|
178
|
-
const resolveWebIdentityCredentials = async (profile, options, callerClientConfig) =>
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
})
|
|
180
|
+
const resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => {
|
|
181
|
+
const { fromTokenFile } = require('@aws-sdk/credential-provider-web-identity');
|
|
182
|
+
const credentials = await fromTokenFile({
|
|
183
|
+
webIdentityTokenFile: profile.web_identity_token_file,
|
|
184
|
+
roleArn: profile.role_arn,
|
|
185
|
+
roleSessionName: profile.role_session_name,
|
|
186
|
+
roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
|
|
187
|
+
logger: options.logger,
|
|
188
|
+
parentClientConfig: options.parentClientConfig,
|
|
189
|
+
})({
|
|
190
|
+
callerClientConfig,
|
|
191
|
+
});
|
|
192
|
+
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q");
|
|
193
|
+
};
|
|
188
194
|
|
|
189
195
|
const resolveProfileData = async (profileName, profiles, options, callerClientConfig, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
|
|
190
196
|
const data = profiles[profileName];
|
|
@@ -209,13 +215,13 @@ const resolveProfileData = async (profileName, profiles, options, callerClientCo
|
|
|
209
215
|
if (isLoginProfile(data)) {
|
|
210
216
|
return resolveLoginCredentials(profileName, options, callerClientConfig);
|
|
211
217
|
}
|
|
212
|
-
throw new
|
|
218
|
+
throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
|
|
213
219
|
};
|
|
214
220
|
|
|
215
221
|
const fromIni = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
216
222
|
init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
|
|
217
|
-
const profiles = await
|
|
218
|
-
return resolveProfileData(
|
|
223
|
+
const profiles = await parseKnownFiles(init);
|
|
224
|
+
return resolveProfileData(getProfileName({
|
|
219
225
|
profile: init.profile ?? callerClientConfig?.profile,
|
|
220
226
|
}), profiles, init, callerClientConfig);
|
|
221
227
|
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { setCredentialFeature } from "@aws-sdk/core/client";
|
|
2
2
|
export const isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
|
|
3
|
-
export const resolveProcessCredentials = async (options, profile) =>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
export const resolveProcessCredentials = async (options, profile) => {
|
|
4
|
+
const { fromProcess } = await import("@aws-sdk/credential-provider-process");
|
|
5
|
+
const credentials = await fromProcess({
|
|
6
|
+
...options,
|
|
7
|
+
profile,
|
|
8
|
+
})();
|
|
9
|
+
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE_PROCESS", "v");
|
|
10
|
+
};
|
package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
CHANGED
|
@@ -4,13 +4,17 @@ export const isWebIdentityProfile = (arg) => Boolean(arg) &&
|
|
|
4
4
|
typeof arg.web_identity_token_file === "string" &&
|
|
5
5
|
typeof arg.role_arn === "string" &&
|
|
6
6
|
["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
|
|
7
|
-
export const resolveWebIdentityCredentials = async (profile, options, callerClientConfig) =>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
})
|
|
7
|
+
export const resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => {
|
|
8
|
+
const { fromTokenFile } = await import("@aws-sdk/credential-provider-web-identity");
|
|
9
|
+
const credentials = await fromTokenFile({
|
|
10
|
+
webIdentityTokenFile: profile.web_identity_token_file,
|
|
11
|
+
roleArn: profile.role_arn,
|
|
12
|
+
roleSessionName: profile.role_session_name,
|
|
13
|
+
roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
|
|
14
|
+
logger: options.logger,
|
|
15
|
+
parentClientConfig: options.parentClientConfig,
|
|
16
|
+
})({
|
|
17
|
+
callerClientConfig,
|
|
18
|
+
});
|
|
19
|
+
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q");
|
|
20
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-ini",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.55",
|
|
4
4
|
"description": "AWS credential provider that sources credentials 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
|
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
},
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aws-sdk/core": "^3.974.
|
|
32
|
-
"@aws-sdk/credential-provider-env": "^3.972.
|
|
33
|
-
"@aws-sdk/credential-provider-http": "^3.972.
|
|
34
|
-
"@aws-sdk/credential-provider-login": "^3.972.
|
|
35
|
-
"@aws-sdk/credential-provider-process": "^3.972.
|
|
36
|
-
"@aws-sdk/credential-provider-sso": "^3.972.
|
|
37
|
-
"@aws-sdk/credential-provider-web-identity": "^3.972.
|
|
38
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
39
|
-
"@aws-sdk/types": "^3.973.
|
|
31
|
+
"@aws-sdk/core": "^3.974.22",
|
|
32
|
+
"@aws-sdk/credential-provider-env": "^3.972.48",
|
|
33
|
+
"@aws-sdk/credential-provider-http": "^3.972.50",
|
|
34
|
+
"@aws-sdk/credential-provider-login": "^3.972.54",
|
|
35
|
+
"@aws-sdk/credential-provider-process": "^3.972.48",
|
|
36
|
+
"@aws-sdk/credential-provider-sso": "^3.972.54",
|
|
37
|
+
"@aws-sdk/credential-provider-web-identity": "^3.972.54",
|
|
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/credential-provider-imds": "^4.3.7",
|
|
42
42
|
"@smithy/types": "^4.14.3",
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var node_os = require('node:os');
|
|
9
|
-
var node_path = require('node:path');
|
|
1
|
+
const { setCredentialFeature } = require("@aws-sdk/core/client");
|
|
2
|
+
const { CredentialsProviderError, readFile, parseKnownFiles, getProfileName } = require("@smithy/core/config");
|
|
3
|
+
const { HttpRequest } = require("@smithy/core/protocols");
|
|
4
|
+
const { createHash, createPrivateKey, createPublicKey, sign } = require("node:crypto");
|
|
5
|
+
const { promises } = require("node:fs");
|
|
6
|
+
const { homedir } = require("node:os");
|
|
7
|
+
const { dirname, join } = require("node:path");
|
|
10
8
|
|
|
11
9
|
class LoginCredentialsFetcher {
|
|
12
10
|
profileData;
|
|
@@ -21,7 +19,7 @@ class LoginCredentialsFetcher {
|
|
|
21
19
|
async loadCredentials() {
|
|
22
20
|
const token = await this.loadToken();
|
|
23
21
|
if (!token) {
|
|
24
|
-
throw new
|
|
22
|
+
throw new CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`, { tryNextLink: false, logger: this.logger });
|
|
25
23
|
}
|
|
26
24
|
const accessToken = token.accessToken;
|
|
27
25
|
const now = Date.now();
|
|
@@ -45,7 +43,7 @@ class LoginCredentialsFetcher {
|
|
|
45
43
|
return this.profileData.login_session;
|
|
46
44
|
}
|
|
47
45
|
async refresh(token) {
|
|
48
|
-
const { SigninClient, CreateOAuth2TokenCommand } =
|
|
46
|
+
const { SigninClient, CreateOAuth2TokenCommand } = require('@aws-sdk/nested-clients/signin');
|
|
49
47
|
const { logger, userAgentAppId } = this.callerClientConfig ?? {};
|
|
50
48
|
const isH2 = (requestHandler) => {
|
|
51
49
|
return requestHandler?.metadata?.handlerProtocol === "h2";
|
|
@@ -78,7 +76,7 @@ class LoginCredentialsFetcher {
|
|
|
78
76
|
const { accessKeyId, secretAccessKey, sessionToken } = response.tokenOutput?.accessToken ?? {};
|
|
79
77
|
const { refreshToken, expiresIn } = response.tokenOutput ?? {};
|
|
80
78
|
if (!accessKeyId || !secretAccessKey || !sessionToken || !refreshToken) {
|
|
81
|
-
throw new
|
|
79
|
+
throw new CredentialsProviderError("Token refresh response missing required fields", {
|
|
82
80
|
logger: this.logger,
|
|
83
81
|
tryNextLink: false,
|
|
84
82
|
});
|
|
@@ -125,9 +123,9 @@ class LoginCredentialsFetcher {
|
|
|
125
123
|
default:
|
|
126
124
|
message = `Failed to refresh token: ${String(error)}. Please re-authenticate using \`aws login\``;
|
|
127
125
|
}
|
|
128
|
-
throw new
|
|
126
|
+
throw new CredentialsProviderError(message, { logger: this.logger, tryNextLink: false });
|
|
129
127
|
}
|
|
130
|
-
throw new
|
|
128
|
+
throw new CredentialsProviderError(`Failed to refresh token: ${String(error)}. Please re-authenticate using aws login`, { logger: this.logger });
|
|
131
129
|
}
|
|
132
130
|
}
|
|
133
131
|
async loadToken() {
|
|
@@ -135,10 +133,10 @@ class LoginCredentialsFetcher {
|
|
|
135
133
|
try {
|
|
136
134
|
let tokenData;
|
|
137
135
|
try {
|
|
138
|
-
tokenData = await
|
|
136
|
+
tokenData = await readFile(tokenFilePath, { ignoreCache: this.init?.ignoreCache });
|
|
139
137
|
}
|
|
140
138
|
catch {
|
|
141
|
-
tokenData = await
|
|
139
|
+
tokenData = await promises.readFile(tokenFilePath, "utf8");
|
|
142
140
|
}
|
|
143
141
|
const token = JSON.parse(tokenData);
|
|
144
142
|
const missingFields = ["accessToken", "clientId", "refreshToken", "dpopKey"].filter((k) => !token[k]);
|
|
@@ -146,7 +144,7 @@ class LoginCredentialsFetcher {
|
|
|
146
144
|
missingFields.push("accountId");
|
|
147
145
|
}
|
|
148
146
|
if (missingFields.length > 0) {
|
|
149
|
-
throw new
|
|
147
|
+
throw new CredentialsProviderError(`Token validation failed, missing fields: ${missingFields.join(", ")}`, {
|
|
150
148
|
logger: this.logger,
|
|
151
149
|
tryNextLink: false,
|
|
152
150
|
});
|
|
@@ -154,7 +152,7 @@ class LoginCredentialsFetcher {
|
|
|
154
152
|
return token;
|
|
155
153
|
}
|
|
156
154
|
catch (error) {
|
|
157
|
-
throw new
|
|
155
|
+
throw new CredentialsProviderError(`Failed to load token from ${tokenFilePath}: ${String(error)}`, {
|
|
158
156
|
logger: this.logger,
|
|
159
157
|
tryNextLink: false,
|
|
160
158
|
});
|
|
@@ -162,19 +160,19 @@ class LoginCredentialsFetcher {
|
|
|
162
160
|
}
|
|
163
161
|
async saveToken(token) {
|
|
164
162
|
const tokenFilePath = this.getTokenFilePath();
|
|
165
|
-
const directory =
|
|
163
|
+
const directory = dirname(tokenFilePath);
|
|
166
164
|
try {
|
|
167
|
-
await
|
|
165
|
+
await promises.mkdir(directory, { recursive: true });
|
|
168
166
|
}
|
|
169
167
|
catch (error) {
|
|
170
168
|
}
|
|
171
|
-
await
|
|
169
|
+
await promises.writeFile(tokenFilePath, JSON.stringify(token, null, 2), "utf8");
|
|
172
170
|
}
|
|
173
171
|
getTokenFilePath() {
|
|
174
|
-
const directory = process.env.AWS_LOGIN_CACHE_DIRECTORY ??
|
|
172
|
+
const directory = process.env.AWS_LOGIN_CACHE_DIRECTORY ?? join(homedir(), ".aws", "login", "cache");
|
|
175
173
|
const loginSessionBytes = Buffer.from(this.loginSession, "utf8");
|
|
176
|
-
const loginSessionSha256 =
|
|
177
|
-
return
|
|
174
|
+
const loginSessionSha256 = createHash("sha256").update(loginSessionBytes).digest("hex");
|
|
175
|
+
return join(directory, `${loginSessionSha256}.json`);
|
|
178
176
|
}
|
|
179
177
|
derToRawSignature(derSignature) {
|
|
180
178
|
let offset = 2;
|
|
@@ -199,7 +197,7 @@ class LoginCredentialsFetcher {
|
|
|
199
197
|
}
|
|
200
198
|
createDPoPInterceptor(middlewareStack) {
|
|
201
199
|
middlewareStack.add((next) => async (args) => {
|
|
202
|
-
if (
|
|
200
|
+
if (HttpRequest.isInstance(args.request)) {
|
|
203
201
|
const request = args.request;
|
|
204
202
|
const actualEndpoint = `${request.protocol}//${request.hostname}${request.port ? `:${request.port}` : ""}${request.path}`;
|
|
205
203
|
const dpop = await this.generateDpop(request.method, actualEndpoint);
|
|
@@ -218,12 +216,12 @@ class LoginCredentialsFetcher {
|
|
|
218
216
|
async generateDpop(method = "POST", endpoint) {
|
|
219
217
|
const token = await this.loadToken();
|
|
220
218
|
try {
|
|
221
|
-
const privateKey =
|
|
219
|
+
const privateKey = createPrivateKey({
|
|
222
220
|
key: token.dpopKey,
|
|
223
221
|
format: "pem",
|
|
224
222
|
type: "sec1",
|
|
225
223
|
});
|
|
226
|
-
const publicKey =
|
|
224
|
+
const publicKey = createPublicKey(privateKey);
|
|
227
225
|
const publicDer = publicKey.export({ format: "der", type: "spki" });
|
|
228
226
|
let pointStart = -1;
|
|
229
227
|
for (let i = 0; i < publicDer.length; i++) {
|
|
@@ -253,33 +251,33 @@ class LoginCredentialsFetcher {
|
|
|
253
251
|
const headerB64 = Buffer.from(JSON.stringify(header)).toString("base64url");
|
|
254
252
|
const payloadB64 = Buffer.from(JSON.stringify(payload)).toString("base64url");
|
|
255
253
|
const message = `${headerB64}.${payloadB64}`;
|
|
256
|
-
const asn1Signature =
|
|
254
|
+
const asn1Signature = sign("sha256", Buffer.from(message), privateKey);
|
|
257
255
|
const rawSignature = this.derToRawSignature(asn1Signature);
|
|
258
256
|
const signatureB64 = rawSignature.toString("base64url");
|
|
259
257
|
return `${message}.${signatureB64}`;
|
|
260
258
|
}
|
|
261
259
|
catch (error) {
|
|
262
|
-
throw new
|
|
260
|
+
throw new CredentialsProviderError(`Failed to generate Dpop proof: ${error instanceof Error ? error.message : String(error)}`, { logger: this.logger, tryNextLink: false });
|
|
263
261
|
}
|
|
264
262
|
}
|
|
265
263
|
}
|
|
266
264
|
|
|
267
265
|
const fromLoginCredentials = (init) => async ({ callerClientConfig } = {}) => {
|
|
268
266
|
init?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");
|
|
269
|
-
const profiles = await
|
|
270
|
-
const profileName =
|
|
267
|
+
const profiles = await parseKnownFiles(init || {});
|
|
268
|
+
const profileName = getProfileName({
|
|
271
269
|
profile: init?.profile ?? callerClientConfig?.profile,
|
|
272
270
|
});
|
|
273
271
|
const profile = profiles[profileName];
|
|
274
272
|
if (!profile?.login_session) {
|
|
275
|
-
throw new
|
|
273
|
+
throw new CredentialsProviderError(`Profile ${profileName} does not contain login_session.`, {
|
|
276
274
|
tryNextLink: true,
|
|
277
275
|
logger: init?.logger,
|
|
278
276
|
});
|
|
279
277
|
}
|
|
280
278
|
const fetcher = new LoginCredentialsFetcher(profile, init, callerClientConfig);
|
|
281
279
|
const credentials = await fetcher.loadCredentials();
|
|
282
|
-
return
|
|
280
|
+
return setCredentialFeature(credentials, "CREDENTIALS_LOGIN", "AD");
|
|
283
281
|
};
|
|
284
282
|
|
|
285
283
|
exports.fromLoginCredentials = fromLoginCredentials;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-login",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.54",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from aws login cached tokens",
|
|
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
|
},
|
|
@@ -28,9 +28,9 @@
|
|
|
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/types": "^3.973.
|
|
31
|
+
"@aws-sdk/core": "^3.974.22",
|
|
32
|
+
"@aws-sdk/nested-clients": "^3.997.22",
|
|
33
|
+
"@aws-sdk/types": "^3.973.13",
|
|
34
34
|
"@smithy/core": "^3.24.6",
|
|
35
35
|
"@smithy/types": "^4.14.3",
|
|
36
36
|
"tslib": "^2.6.2"
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var credentialProviderEnv = require('@aws-sdk/credential-provider-env');
|
|
4
|
-
var config = require('@smithy/core/config');
|
|
1
|
+
const { ENV_KEY, ENV_SECRET, fromEnv } = require("@aws-sdk/credential-provider-env");
|
|
2
|
+
const { chain, CredentialsProviderError, ENV_PROFILE } = require("@smithy/core/config");
|
|
5
3
|
|
|
6
4
|
const ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
|
|
7
5
|
const remoteProvider = async (init) => {
|
|
8
|
-
const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } =
|
|
6
|
+
const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = require('@smithy/credential-provider-imds');
|
|
9
7
|
if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) {
|
|
10
8
|
init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");
|
|
11
|
-
const { fromHttp } =
|
|
12
|
-
return
|
|
9
|
+
const { fromHttp } = require('@aws-sdk/credential-provider-http');
|
|
10
|
+
return chain(fromHttp(init), fromContainerMetadata(init));
|
|
13
11
|
}
|
|
14
12
|
if (process.env[ENV_IMDS_DISABLED] && process.env[ENV_IMDS_DISABLED] !== "false") {
|
|
15
13
|
return async () => {
|
|
16
|
-
throw new
|
|
14
|
+
throw new CredentialsProviderError("EC2 Instance Metadata Service access disabled", { logger: init.logger });
|
|
17
15
|
};
|
|
18
16
|
}
|
|
19
17
|
init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");
|
|
@@ -95,9 +93,9 @@ const internalCreateChain = (providers) => async (awsIdentityProperties) => {
|
|
|
95
93
|
let multipleCredentialSourceWarningEmitted = false;
|
|
96
94
|
const defaultProvider = (init = {}) => memoizeChain([
|
|
97
95
|
async () => {
|
|
98
|
-
const profile = init.profile ?? process.env[
|
|
96
|
+
const profile = init.profile ?? process.env[ENV_PROFILE];
|
|
99
97
|
if (profile) {
|
|
100
|
-
const envStaticCredentialsAreSet = process.env[
|
|
98
|
+
const envStaticCredentialsAreSet = process.env[ENV_KEY] && process.env[ENV_SECRET];
|
|
101
99
|
if (envStaticCredentialsAreSet) {
|
|
102
100
|
if (!multipleCredentialSourceWarningEmitted) {
|
|
103
101
|
const warnFn = init.logger?.warn && init.logger?.constructor?.name !== "NoOpLogger"
|
|
@@ -115,36 +113,36 @@ const defaultProvider = (init = {}) => memoizeChain([
|
|
|
115
113
|
multipleCredentialSourceWarningEmitted = true;
|
|
116
114
|
}
|
|
117
115
|
}
|
|
118
|
-
throw new
|
|
116
|
+
throw new CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.", {
|
|
119
117
|
logger: init.logger,
|
|
120
118
|
tryNextLink: true,
|
|
121
119
|
});
|
|
122
120
|
}
|
|
123
121
|
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv");
|
|
124
|
-
return
|
|
122
|
+
return fromEnv(init)();
|
|
125
123
|
},
|
|
126
124
|
async (awsIdentityProperties) => {
|
|
127
125
|
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");
|
|
128
126
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
129
127
|
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
130
|
-
throw new
|
|
128
|
+
throw new CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init.logger });
|
|
131
129
|
}
|
|
132
|
-
const { fromSSO } =
|
|
130
|
+
const { fromSSO } = require('@aws-sdk/credential-provider-sso');
|
|
133
131
|
return fromSSO(init)(awsIdentityProperties);
|
|
134
132
|
},
|
|
135
133
|
async (awsIdentityProperties) => {
|
|
136
134
|
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");
|
|
137
|
-
const { fromIni } =
|
|
135
|
+
const { fromIni } = require('@aws-sdk/credential-provider-ini');
|
|
138
136
|
return fromIni(init)(awsIdentityProperties);
|
|
139
137
|
},
|
|
140
138
|
async (awsIdentityProperties) => {
|
|
141
139
|
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");
|
|
142
|
-
const { fromProcess } =
|
|
140
|
+
const { fromProcess } = require('@aws-sdk/credential-provider-process');
|
|
143
141
|
return fromProcess(init)(awsIdentityProperties);
|
|
144
142
|
},
|
|
145
143
|
async (awsIdentityProperties) => {
|
|
146
144
|
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");
|
|
147
|
-
const { fromTokenFile } =
|
|
145
|
+
const { fromTokenFile } = require('@aws-sdk/credential-provider-web-identity');
|
|
148
146
|
return fromTokenFile(init)(awsIdentityProperties);
|
|
149
147
|
},
|
|
150
148
|
async () => {
|
|
@@ -152,7 +150,7 @@ const defaultProvider = (init = {}) => memoizeChain([
|
|
|
152
150
|
return (await remoteProvider(init))();
|
|
153
151
|
},
|
|
154
152
|
async () => {
|
|
155
|
-
throw new
|
|
153
|
+
throw new CredentialsProviderError("Could not load credentials from any providers", {
|
|
156
154
|
tryNextLink: false,
|
|
157
155
|
logger: init.logger,
|
|
158
156
|
});
|