@cdklabs/cdk-ssm-documents 0.0.64 → 0.0.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +11 -11
- package/lib/construct/synth-utils.js +1 -1
- package/lib/document/automation-document.js +1 -1
- package/lib/document/command-document.js +1 -1
- package/lib/document/document-builder.js +2 -2
- package/lib/document/ssm-document.js +1 -1
- package/lib/domain/aws-service.js +1 -1
- package/lib/domain/choice.js +1 -1
- package/lib/domain/data-type.js +1 -1
- package/lib/domain/enum/install-action.js +2 -2
- package/lib/domain/enum/install-uninstall-repair.js +2 -2
- package/lib/domain/enum/installation-type.js +2 -2
- package/lib/domain/enum/package-name.js +2 -2
- package/lib/domain/input.js +1 -1
- package/lib/domain/operation.js +1 -1
- package/lib/domain/platform.js +1 -1
- package/lib/domain/precondition.js +1 -1
- package/lib/incident-response/incident-response.js +3 -3
- package/lib/interface/approve-hook.js +2 -2
- package/lib/interface/auth-method.js +3 -3
- package/lib/interface/aws-invoker.js +2 -2
- package/lib/interface/downloadable-content.js +8 -8
- package/lib/interface/environment.js +3 -3
- package/lib/interface/execute-automation-hook/api-execute-automation-hook.js +1 -1
- package/lib/interface/observer.js +1 -1
- package/lib/interface/on-failure.js +6 -6
- package/lib/interface/pause-hook.js +2 -2
- package/lib/interface/run-command-hook/api-run-command-hook.js +1 -1
- package/lib/interface/run-document-location.js +2 -2
- package/lib/interface/sleep-hook.js +2 -2
- package/lib/interface/step-ref.js +1 -1
- package/lib/interface/variables/boolean-variable.js +2 -2
- package/lib/interface/variables/map-list-variable.js +2 -2
- package/lib/interface/variables/number-variable.js +2 -2
- package/lib/interface/variables/secure-string-variable.js +4 -4
- package/lib/interface/variables/string-list-variable.js +2 -2
- package/lib/interface/variables/string-map-variable.js +2 -2
- package/lib/interface/variables/string-variable.js +4 -4
- package/lib/interface/variables/variable.js +2 -2
- package/lib/interface/webhook.js +1 -1
- package/lib/parent-steps/automation/approve-step.js +1 -1
- package/lib/parent-steps/automation/assert-aws-resource-step.js +1 -1
- package/lib/parent-steps/automation/aws-api-step.js +1 -1
- package/lib/parent-steps/automation/branch-step.js +1 -1
- package/lib/parent-steps/automation/change-instance-state-step.js +3 -3
- package/lib/parent-steps/automation/copy-image-step.js +1 -1
- package/lib/parent-steps/automation/create-image-step.js +1 -1
- package/lib/parent-steps/automation/create-stack-step.js +3 -3
- package/lib/parent-steps/automation/create-tags-step.js +3 -3
- package/lib/parent-steps/automation/delete-image-step.js +1 -1
- package/lib/parent-steps/automation/delete-stack-step.js +1 -1
- package/lib/parent-steps/automation/execute-automation-step.js +1 -1
- package/lib/parent-steps/automation/execute-script-step.js +5 -5
- package/lib/parent-steps/automation/execute-state-machine-step.js +1 -1
- package/lib/parent-steps/automation/invoke-lambda-function-step.js +1 -1
- package/lib/parent-steps/automation/invoke-webhook-step.js +1 -1
- package/lib/parent-steps/automation/pause-step.js +1 -1
- package/lib/parent-steps/automation/run-command-step.js +3 -3
- package/lib/parent-steps/automation/run-instance-step.js +1 -1
- package/lib/parent-steps/automation/sleep-step.js +1 -1
- package/lib/parent-steps/automation/update-variable.js +1 -1
- package/lib/parent-steps/automation/wait-for-resource-step.js +1 -1
- package/lib/parent-steps/automation-step.js +1 -1
- package/lib/parent-steps/command/applications-step.js +1 -1
- package/lib/parent-steps/command/configure-docker-step.js +1 -1
- package/lib/parent-steps/command/configure-package-step.js +1 -1
- package/lib/parent-steps/command/domain-join-step.js +1 -1
- package/lib/parent-steps/command/download-content-step.js +1 -1
- package/lib/parent-steps/command/ps-module-step.js +1 -1
- package/lib/parent-steps/command/run-docker-action-step.js +1 -1
- package/lib/parent-steps/command/run-document-step.js +1 -1
- package/lib/parent-steps/command/run-powershell-script-step.js +1 -1
- package/lib/parent-steps/command/run-shell-script-step.js +1 -1
- package/lib/parent-steps/command/software-inventory-step.js +1 -1
- package/lib/parent-steps/command/update-agent-step.js +1 -1
- package/lib/parent-steps/command/update-ssm-agent-step.js +1 -1
- package/lib/parent-steps/command-step.js +1 -1
- package/lib/parent-steps/step.js +1 -1
- package/lib/patterns/automation/composite-step.js +2 -2
- package/lib/patterns/automation/reboot-instance-and-wait.js +1 -1
- package/lib/patterns/automation/string-step.js +1 -1
- package/lib/patterns/document/string-document.js +1 -1
- package/lib/patterns/document/timed-document.js +1 -1
- package/lib/samples/hello-world.js +1 -1
- package/lib/simulation/automation/approve-simulation.js +1 -1
- package/lib/simulation/automation/assert-aws-resource-simulation.js +1 -1
- package/lib/simulation/automation/automation-simulation-base.js +1 -1
- package/lib/simulation/automation/aws-api-simulation.js +1 -1
- package/lib/simulation/automation/branch-simulation.js +1 -1
- package/lib/simulation/automation/change-instance-state-simulation.js +1 -1
- package/lib/simulation/automation/copy-image-simulation.js +1 -1
- package/lib/simulation/automation/create-image-simulation.js +1 -1
- package/lib/simulation/automation/create-stack-simulation.js +1 -1
- package/lib/simulation/automation/create-tags-simulation.js +1 -1
- package/lib/simulation/automation/delete-image-simulation.js +1 -1
- package/lib/simulation/automation/delete-stack-simulation.js +1 -1
- package/lib/simulation/automation/execute-script-simulation.js +1 -1
- package/lib/simulation/automation/execute-state-machine-simulation.js +1 -1
- package/lib/simulation/automation/invoke-lambda-function-simulation.js +1 -1
- package/lib/simulation/automation/invoke-webhook-simulation.js +1 -1
- package/lib/simulation/automation/pause-simulation.js +1 -1
- package/lib/simulation/automation/run-command-simulation.js +1 -1
- package/lib/simulation/automation/run-instance-simulation.js +1 -1
- package/lib/simulation/automation/sleep-simulation.js +1 -1
- package/lib/simulation/automation/update-variable-simulation.js +1 -1
- package/lib/simulation/automation/wait-for-resource-simulation.js +1 -1
- package/lib/simulation/automation-step-simulation.js +1 -1
- package/lib/simulation/command/command-simulation-base.js +1 -1
- package/lib/simulation/command/ps-module-simulation.js +1 -1
- package/lib/simulation/command/run-powershell-script-simulation.js +1 -1
- package/lib/simulation/command/run-shell-script-simulation.js +1 -1
- package/lib/simulation/command-step-simulation.js +1 -1
- package/lib/simulation/document/automation-simulation.js +1 -1
- package/lib/simulation/document/command-simulation.js +1 -1
- package/lib/simulation/simulation.js +1 -1
- package/node_modules/@aws-sdk/checksums/dist-cjs/flexible-checksums/getCrc32ChecksumAlgorithmFunction.browser.js +2 -6
- package/node_modules/@aws-sdk/checksums/dist-cjs/flexible-checksums/getCrc32ChecksumAlgorithmFunction.js +6 -11
- package/node_modules/@aws-sdk/checksums/dist-cjs/index.js +56 -56
- package/node_modules/@aws-sdk/checksums/package.json +7 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +449 -469
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/CloudFormationServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/errors.js +59 -91
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/schemas/schemas_0.js +814 -533
- package/node_modules/@aws-sdk/client-cloudformation/package.json +9 -9
- package/node_modules/@aws-sdk/client-cloudwatch/README.md +21 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/index.js +255 -233
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/models/CloudWatchServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/models/errors.js +93 -68
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/runtimeConfig.browser.js +25 -29
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/runtimeConfig.js +33 -37
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/schemas/schemas_0.js +476 -259
- package/node_modules/@aws-sdk/client-cloudwatch/dist-es/CloudWatch.js +6 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-es/commands/AssociateDatasetKmsKeyCommand.js +16 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-es/commands/DisassociateDatasetKmsKeyCommand.js +16 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-es/commands/GetDatasetCommand.js +16 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-es/commands/index.js +3 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-es/models/errors.js +68 -26
- package/node_modules/@aws-sdk/client-cloudwatch/dist-es/schemas/schemas_0.js +73 -1
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/CloudWatch.d.ts +21 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/CloudWatchClient.d.ts +5 -2
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/AssociateDatasetKmsKeyCommand.d.ts +161 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/DisassociateDatasetKmsKeyCommand.d.ts +105 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/GetDatasetCommand.d.ts +91 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/models/errors.d.ts +74 -23
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/models/models_0.d.ts +90 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/schemas/schemas_0.d.ts +12 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/CloudWatch.d.ts +51 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/CloudWatchClient.d.ts +18 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/commands/AssociateDatasetKmsKeyCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/commands/DisassociateDatasetKmsKeyCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/commands/GetDatasetCommand.d.ts +49 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/models/errors.d.ts +40 -16
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/models/models_0.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/schemas/schemas_0.d.ts +12 -0
- package/node_modules/@aws-sdk/client-cloudwatch/package.json +13 -13
- package/node_modules/@aws-sdk/client-ec2/README.md +14 -0
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +2903 -2879
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/models/EC2ServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/schemas/schemas_0.js +6980 -4554
- package/node_modules/@aws-sdk/client-ec2/dist-es/EC2.js +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/AttachImageWatermarkCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/DetachImageWatermarkCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/index.js +2 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/models/enums.js +5 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/schemas/schemas_0.js +108 -13
- package/node_modules/@aws-sdk/client-ec2/dist-types/EC2.d.ts +14 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/EC2Client.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/AttachImageWatermarkCommand.d.ts +84 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CancelCapacityReservationCommand.d.ts +16 -10
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateDefaultSubnetCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateDefaultVpcCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateFlowLogsCommand.d.ts +8 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateRouteServerPeerCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateRouteTableCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteSecurityGroupCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteSnapshotCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteSpotDatafeedSubscriptionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeFlowLogsCommand.d.ts +8 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeImagesCommand.d.ts +9 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeImportSnapshotTasksCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstanceAttributeCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstanceImageMetadataCommand.d.ts +9 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeSpotInstanceRequestsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeSpotPriceHistoryCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeStaleSecurityGroupsCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeVolumesModificationsCommand.d.ts +0 -5
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DetachImageWatermarkCommand.d.ts +82 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityManagerAttributesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityManagerMetricDataCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyIpamScopeCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyLaunchTemplateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyLocalGatewayRouteCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyManagedPrefixListCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyVolumeCommand.d.ts +0 -5
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/index.d.ts +2 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/enums.d.ts +13 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_0.d.ts +38 -23
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_1.d.ts +45 -128
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_2.d.ts +128 -48
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_3.d.ts +109 -161
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_4.d.ts +169 -219
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_5.d.ts +250 -353
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_6.d.ts +351 -182
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_7.d.ts +178 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/schemas/schemas_0.d.ts +9 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2.d.ts +34 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2Client.d.ts +12 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/AttachImageWatermarkCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateDefaultSubnetCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateDefaultVpcCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateRouteServerPeerCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateRouteTableCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteSecurityGroupCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteSnapshotCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteSpotDatafeedSubscriptionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeImportSnapshotTasksCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeInstanceAttributeCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeSpotInstanceRequestsCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeSpotPriceHistoryCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeStaleSecurityGroupsCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DetachImageWatermarkCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetCapacityManagerAttributesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetCapacityManagerMetricDataCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyIpamScopeCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyLaunchTemplateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyLocalGatewayRouteCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyManagedPrefixListCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/enums.d.ts +7 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_0.d.ts +9 -7
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_1.d.ts +13 -26
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_2.d.ts +29 -12
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_3.d.ts +25 -36
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_4.d.ts +40 -35
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_5.d.ts +49 -67
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_6.d.ts +66 -47
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_7.d.ts +40 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -0
- package/node_modules/@aws-sdk/client-ec2/package.json +15 -15
- package/node_modules/@aws-sdk/client-iam/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-iam/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-iam/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +634 -654
- package/node_modules/@aws-sdk/client-iam/dist-cjs/models/IAMServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-iam/dist-cjs/models/errors.js +71 -109
- package/node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-iam/dist-cjs/schemas/schemas_0.js +1006 -665
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateServiceSpecificCredentialCommand.d.ts +18 -3
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListServiceSpecificCredentialsCommand.d.ts +17 -2
- package/node_modules/@aws-sdk/client-iam/dist-types/models/models_0.d.ts +5 -2
- package/node_modules/@aws-sdk/client-iam/package.json +14 -14
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +368 -386
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/models/LambdaServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/models/errors.js +229 -145
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.browser.js +24 -28
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.js +32 -36
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/schemas/schemas_0.js +959 -581
- package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +2 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/models/errors.js +134 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +100 -31
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/AddPermissionCommand.d.ts +5 -2
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateAliasCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateEventSourceMappingCommand.d.ts +28 -28
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateFunctionCommand.d.ts +14 -14
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteAliasCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +16 -16
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteFunctionUrlConfigCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteLayerVersionCommand.d.ts +6 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetEventSourceMappingCommand.d.ts +16 -16
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionCodeSigningConfigCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionCommand.d.ts +8 -8
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionConfigurationCommand.d.ts +8 -8
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetLayerVersionByArnCommand.d.ts +4 -4
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetLayerVersionCommand.d.ts +4 -4
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetRuntimeManagementConfigCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/InvokeAsyncCommand.d.ts +72 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/InvokeCommand.d.ts +21 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/InvokeWithResponseStreamCommand.d.ts +6 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListEventSourceMappingsCommand.d.ts +16 -16
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListFunctionsCommand.d.ts +8 -8
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListLayerVersionsCommand.d.ts +6 -6
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListLayersCommand.d.ts +6 -6
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListVersionsByFunctionCommand.d.ts +8 -8
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishLayerVersionCommand.d.ts +8 -8
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishVersionCommand.d.ts +8 -8
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PutProvisionedConcurrencyConfigCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/RemovePermissionCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/SendDurableExecutionCallbackFailureCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/SendDurableExecutionCallbackHeartbeatCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/SendDurableExecutionCallbackSuccessCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +32 -32
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionCodeCommand.d.ts +12 -12
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +9 -9
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +2 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/errors.d.ts +173 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +158 -158
- package/node_modules/@aws-sdk/client-lambda/dist-types/schemas/schemas_0.d.ts +9 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +2 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/errors.d.ts +88 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +33 -33
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -0
- package/node_modules/@aws-sdk/client-lambda/package.json +13 -13
- package/node_modules/@aws-sdk/client-s3/README.md +35 -0
- package/node_modules/@aws-sdk/client-s3/dist-cjs/auth/httpAuthSchemeProvider.js +15 -19
- package/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +646 -535
- package/node_modules/@aws-sdk/client-s3/dist-cjs/models/S3ServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-s3/dist-cjs/models/errors.js +106 -52
- package/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.browser.js +29 -33
- package/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js +43 -47
- package/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js +25 -29
- package/node_modules/@aws-sdk/client-s3/dist-cjs/schemas/schemas_0.js +1256 -740
- package/node_modules/@aws-sdk/client-s3/dist-es/S3.js +12 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectAnnotationCommand.js +23 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectAnnotationCommand.js +28 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/ListObjectAnnotationsCommand.js +23 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectAnnotationCommand.js +29 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/UpdateBucketMetadataAnnotationTableConfigurationCommand.js +27 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/index.js +5 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/models/enums.js +12 -1
- package/node_modules/@aws-sdk/client-s3/dist-es/models/errors.js +76 -4
- package/node_modules/@aws-sdk/client-s3/dist-es/pagination/ListObjectAnnotationsPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/pagination/index.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/schemas/schemas_0.js +260 -100
- package/node_modules/@aws-sdk/client-s3/dist-types/S3.d.ts +42 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/S3Client.d.ts +7 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/CopyObjectCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateBucketMetadataConfigurationCommand.d.ts +27 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteObjectAnnotationCommand.d.ts +119 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketMetadataConfigurationCommand.d.ts +11 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +3 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectAnnotationCommand.d.ts +141 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListObjectAnnotationsCommand.d.ts +138 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +3 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectAnnotationCommand.d.ts +166 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/RenameObjectCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/RestoreObjectCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/UpdateBucketMetadataAnnotationTableConfigurationCommand.d.ts +110 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/index.d.ts +5 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/models/enums.d.ts +29 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/models/errors.d.ts +76 -4
- package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +925 -549
- package/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts +380 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/pagination/ListObjectAnnotationsPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/pagination/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/schemas/schemas_0.d.ts +24 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3.d.ts +98 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3Client.d.ts +30 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/DeleteObjectAnnotationCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/GetObjectAnnotationCommand.d.ts +61 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/ListObjectAnnotationsCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutObjectAnnotationCommand.d.ts +61 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/RenameObjectCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/RestoreObjectCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/UpdateBucketMetadataAnnotationTableConfigurationCommand.d.ts +49 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/enums.d.ts +18 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/errors.d.ts +41 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_0.d.ts +138 -64
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_1.d.ts +75 -5
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/pagination/ListObjectAnnotationsPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/schemas/schemas_0.d.ts +24 -0
- package/node_modules/@aws-sdk/client-s3/package.json +21 -21
- package/node_modules/@aws-sdk/client-sns/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-sns/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-sns/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-sns/dist-cjs/index.js +174 -194
- package/node_modules/@aws-sdk/client-sns/dist-cjs/models/SNSServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-sns/dist-cjs/models/errors.js +69 -106
- package/node_modules/@aws-sdk/client-sns/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-sns/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-sns/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-sns/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-sns/dist-cjs/schemas/schemas_0.js +331 -218
- package/node_modules/@aws-sdk/client-sns/package.json +10 -10
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/index.js +118 -138
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/models/SQSServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/models/errors.js +57 -88
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/runtimeConfig.browser.js +24 -28
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/runtimeConfig.js +31 -35
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/schemas/schemas_0.js +222 -150
- package/node_modules/@aws-sdk/client-sqs/package.json +16 -16
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +543 -563
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/models/SSMServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/models/errors.js +279 -423
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/schemas/schemas_0.js +1693 -1109
- package/node_modules/@aws-sdk/client-ssm/package.json +10 -10
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +19 -2274
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +2 -4
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.browser.js +297 -23
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +327 -52
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.native.js +297 -23
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +19 -21
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +107 -109
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -4
- package/node_modules/@aws-sdk/core/dist-es/index.js +3 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partitions.js +276 -1
- package/node_modules/@aws-sdk/core/dist-types/index.d.ts +5 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +5 -5
- package/node_modules/@aws-sdk/core/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +4 -6
- package/node_modules/@aws-sdk/credential-provider-env/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +3 -7
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +12 -16
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +16 -21
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +14 -18
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +1 -5
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +2 -5
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +2 -7
- package/node_modules/@aws-sdk/credential-provider-http/package.json +9 -8
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +47 -41
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +8 -4
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +14 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
- package/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +31 -33
- package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +16 -18
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +11 -13
- package/node_modules/@aws-sdk/credential-provider-process/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +26 -25
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js +3 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +4 -1
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +12 -10
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +10 -14
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +2 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +3 -27
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +8 -8
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js +18 -23
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-sdk-ec2/dist-cjs/index.js +11 -13
- package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +1 -518
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3/index.browser.js +31 -33
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3/index.js +37 -39
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3-control/index.js +14 -16
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/index.d.ts +2 -2
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/index.d.ts +2 -2
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +17 -14
- package/node_modules/@aws-sdk/middleware-sdk-s3/s3-control.d.ts +7 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/s3-control.js +5 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/s3.d.ts +7 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/s3.js +5 -0
- package/node_modules/@aws-sdk/middleware-sdk-sqs/dist-cjs/index.js +9 -11
- package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +7 -7
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +82 -84
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +158 -119
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +80 -82
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +80 -82
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +99 -101
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +4 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +70 -35
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +3 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +11 -10
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +4 -6
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +9 -8
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +26 -28
- package/node_modules/@aws-sdk/token-providers/package.json +8 -8
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +7 -8
- package/node_modules/@aws-sdk/types/package.json +5 -5
- package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -2
- package/node_modules/@aws-sdk/util-locate-window/package.json +5 -5
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +2 -4
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-external/nodable_entities.js +4 -7
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.browser.js +2 -5
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +7 -10
- package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/CHANGELOG.md +8 -0
- package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/README.md +9 -0
- package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/package.json +7 -3
- package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/strnum.js +9 -1
- package/node_modules/@aws-sdk/xml-builder/package.json +5 -5
- package/node_modules/@nodable/entities/package.json +4 -1
- package/node_modules/@nodable/entities/src/EntityDecoder.js +104 -3
- package/node_modules/@nodable/entities/src/index.d.ts +77 -0
- package/node_modules/@nodable/entities/src/index.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/index.js +13 -15
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +543 -398
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +2 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +7 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +3 -5
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +23 -24
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +10 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +38 -39
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +10 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +14 -17
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +20 -23
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +9 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +11 -13
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +68 -61
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +26 -27
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +28 -29
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +5 -7
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -6
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +23 -25
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -6
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +2 -4
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/httpSigningMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +326 -269
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +192 -103
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/endpointMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +10 -2
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRateLimiter.js +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-decode.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-encode.d.ts +8 -4
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
- package/node_modules/@smithy/core/package.json +18 -17
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +23 -24
- package/node_modules/@smithy/credential-provider-imds/package.json +7 -7
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +6 -8
- package/node_modules/@smithy/fetch-http-handler/package.json +10 -10
- package/node_modules/@smithy/middleware-compression/dist-cjs/compressStream.browser.js +3 -7
- package/node_modules/@smithy/middleware-compression/dist-cjs/compressStream.js +2 -6
- package/node_modules/@smithy/middleware-compression/dist-cjs/compressString.browser.js +4 -8
- package/node_modules/@smithy/middleware-compression/dist-cjs/compressString.js +7 -11
- package/node_modules/@smithy/middleware-compression/dist-cjs/index.js +18 -20
- package/node_modules/@smithy/middleware-compression/package.json +6 -6
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -13
- package/node_modules/@smithy/node-http-handler/package.json +8 -8
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +27 -29
- package/node_modules/@smithy/signature-v4/package.json +7 -7
- package/node_modules/@smithy/types/dist-cjs/index.js +23 -18
- package/node_modules/@smithy/types/package.json +10 -10
- package/node_modules/anynum/LICENSE +21 -0
- package/node_modules/anynum/README.md +142 -0
- package/node_modules/anynum/anynum.js +135 -0
- package/node_modules/anynum/digitTable.js +116 -0
- package/node_modules/anynum/package.json +42 -0
- package/node_modules/path-expression-matcher/README.md +82 -7
- package/node_modules/path-expression-matcher/lib/pem.cjs +1 -1
- package/node_modules/path-expression-matcher/lib/pem.d.cts +83 -2
- package/node_modules/path-expression-matcher/lib/pem.min.js +1 -1
- package/node_modules/path-expression-matcher/lib/pem.min.js.map +1 -1
- package/node_modules/path-expression-matcher/package.json +3 -2
- package/node_modules/path-expression-matcher/src/ExpressionSet.js +18 -2
- package/node_modules/path-expression-matcher/src/Matcher.js +93 -3
- package/node_modules/path-expression-matcher/src/index.d.ts +67 -1
- package/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js +0 -8
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.browser.js +0 -34
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/index.browser.js +0 -1
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/index.browser.d.ts +0 -2
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/index.browser.d.ts +0 -39
- /package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/LICENSE +0 -0
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const serde_1 = require("@smithy/core/serde");
|
|
8
|
-
const serde_2 = require("@smithy/core/serde");
|
|
9
|
-
function createGetRequest(url) {
|
|
10
|
-
return new protocols_1.HttpRequest({
|
|
1
|
+
const { CredentialsProviderError } = require("@smithy/core/config");
|
|
2
|
+
const { HttpRequest } = require("@smithy/core/protocols");
|
|
3
|
+
const { parseRfc3339DateTime } = require("@smithy/core/serde");
|
|
4
|
+
const { sdkStreamMixin } = require("@smithy/core/serde");
|
|
5
|
+
exports.createGetRequest = function createGetRequest(url) {
|
|
6
|
+
return new HttpRequest({
|
|
11
7
|
protocol: url.protocol,
|
|
12
8
|
hostname: url.hostname,
|
|
13
9
|
port: Number(url.port),
|
|
@@ -18,9 +14,9 @@ function createGetRequest(url) {
|
|
|
18
14
|
}, {}),
|
|
19
15
|
fragment: url.hash,
|
|
20
16
|
});
|
|
21
|
-
}
|
|
22
|
-
async function getCredentials(response, logger) {
|
|
23
|
-
const stream =
|
|
17
|
+
};
|
|
18
|
+
exports.getCredentials = async function getCredentials(response, logger) {
|
|
19
|
+
const stream = sdkStreamMixin(response.body);
|
|
24
20
|
const str = await stream.transformToString();
|
|
25
21
|
if (response.statusCode === 200) {
|
|
26
22
|
const parsed = JSON.parse(str);
|
|
@@ -28,14 +24,14 @@ async function getCredentials(response, logger) {
|
|
|
28
24
|
typeof parsed.SecretAccessKey !== "string" ||
|
|
29
25
|
typeof parsed.Token !== "string" ||
|
|
30
26
|
typeof parsed.Expiration !== "string") {
|
|
31
|
-
throw new
|
|
27
|
+
throw new CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: " +
|
|
32
28
|
"{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger });
|
|
33
29
|
}
|
|
34
30
|
return {
|
|
35
31
|
accessKeyId: parsed.AccessKeyId,
|
|
36
32
|
secretAccessKey: parsed.SecretAccessKey,
|
|
37
33
|
sessionToken: parsed.Token,
|
|
38
|
-
expiration:
|
|
34
|
+
expiration: parseRfc3339DateTime(parsed.Expiration),
|
|
39
35
|
};
|
|
40
36
|
}
|
|
41
37
|
if (response.statusCode >= 400 && response.statusCode < 500) {
|
|
@@ -44,10 +40,10 @@ async function getCredentials(response, logger) {
|
|
|
44
40
|
parsedBody = JSON.parse(str);
|
|
45
41
|
}
|
|
46
42
|
catch (e) { }
|
|
47
|
-
throw Object.assign(new
|
|
43
|
+
throw Object.assign(new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), {
|
|
48
44
|
Code: parsedBody.Code,
|
|
49
45
|
Message: parsedBody.Message,
|
|
50
46
|
});
|
|
51
47
|
}
|
|
52
|
-
throw new
|
|
53
|
-
}
|
|
48
|
+
throw new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });
|
|
49
|
+
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.retryWrapper = void 0;
|
|
4
|
-
const retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
1
|
+
exports.retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
5
2
|
return async () => {
|
|
6
3
|
for (let i = 0; i < maxRetries; ++i) {
|
|
7
4
|
try {
|
|
@@ -14,4 +11,3 @@ const retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
|
14
11
|
return await toRetry();
|
|
15
12
|
};
|
|
16
13
|
};
|
|
17
|
-
exports.retryWrapper = retryWrapper;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.fromHttp = void 0;
|
|
4
|
-
var fromHttp_browser_1 = require("./fromHttp/fromHttp.browser");
|
|
5
|
-
Object.defineProperty(exports, "fromHttp", { enumerable: true, get: function () { return fromHttp_browser_1.fromHttp; } });
|
|
1
|
+
const { fromHttp } = require("./fromHttp/fromHttp.browser");
|
|
2
|
+
exports.fromHttp = fromHttp;
|
|
@@ -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",
|
|
@@ -16,15 +16,16 @@
|
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
18
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
19
|
-
"build:cjs": "node ../../scripts/compilation/inline
|
|
20
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
19
|
+
"build:cjs": "node ../../scripts/compilation/inline",
|
|
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
|
+
"test:watch": "yarn g:vitest watch",
|
|
26
27
|
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
|
|
27
|
-
"test:watch": "yarn g:vitest watch"
|
|
28
|
+
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
28
29
|
},
|
|
29
30
|
"keywords": [
|
|
30
31
|
"aws",
|
|
@@ -37,8 +38,8 @@
|
|
|
37
38
|
},
|
|
38
39
|
"license": "Apache-2.0",
|
|
39
40
|
"dependencies": {
|
|
40
|
-
"@aws-sdk/core": "^3.974.
|
|
41
|
-
"@aws-sdk/types": "^3.973.
|
|
41
|
+
"@aws-sdk/core": "^3.974.22",
|
|
42
|
+
"@aws-sdk/types": "^3.973.13",
|
|
42
43
|
"@smithy/core": "^3.24.6",
|
|
43
44
|
"@smithy/fetch-http-handler": "^5.4.6",
|
|
44
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
|
-
"build:cjs": "node ../../scripts/compilation/inline
|
|
10
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
9
|
+
"build:cjs": "node ../../scripts/compilation/inline",
|
|
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;
|