@cdk8s/awscdk-resolver 0.0.54 → 0.0.56
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 +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/README.md +88 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/CreateGeneratedTemplateCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DeleteGeneratedTemplateCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeGeneratedTemplateCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeResourceScanCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/GetGeneratedTemplateCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListGeneratedTemplatesCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListResourceScanRelatedResourcesCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListResourceScanResourcesCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListResourceScansCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/StartResourceScanCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/UpdateGeneratedTemplateCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1677 -73
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/models_1.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListGeneratedTemplatesPaginator.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListResourceScanRelatedResourcesPaginator.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListResourceScanResourcesPaginator.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListResourceScansPaginator.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/CloudFormation.js +22 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/CreateGeneratedTemplateCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/DeleteGeneratedTemplateCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/DescribeGeneratedTemplateCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/DescribeResourceScanCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/GetGeneratedTemplateCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListGeneratedTemplatesCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListResourceScanRelatedResourcesCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListResourceScanResourcesCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListResourceScansCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/StartResourceScanCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/UpdateGeneratedTemplateCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/index.js +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/index.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_0.js +104 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_1.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListGeneratedTemplatesPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListResourceScanRelatedResourcesPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListResourceScanResourcesPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListResourceScansPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/index.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/protocols/Aws_query.js +1322 -92
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +77 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +13 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateGeneratedTemplateCommand.d.ts +116 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeleteGeneratedTemplateCommand.d.ts +75 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeGeneratedTemplateCommand.d.ts +135 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeResourceScanCommand.d.ts +168 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/GetGeneratedTemplateCommand.d.ts +100 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListGeneratedTemplatesCommand.d.ts +112 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScanRelatedResourcesCommand.d.ts +145 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScanResourcesCommand.d.ts +147 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScansCommand.d.ts +97 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/StartResourceScanCommand.d.ts +91 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/StopStackSetOperationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/TestTypeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateGeneratedTemplateCommand.d.ts +156 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackInstancesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateTerminationProtectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ValidateTemplateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/index.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +4075 -3877
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_1.d.ts +974 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListGeneratedTemplatesPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListResourceScanRelatedResourcesPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListResourceScanResourcesPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListResourceScansPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/protocols/Aws_query.d.ts +99 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormation.d.ts +187 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormationClient.d.ts +66 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/CreateGeneratedTemplateCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeleteGeneratedTemplateCommand.d.ts +26 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeGeneratedTemplateCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeResourceScanCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/GetGeneratedTemplateCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListGeneratedTemplatesCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScanRelatedResourcesCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScanResourcesCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScansCommand.d.ts +29 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/StartResourceScanCommand.d.ts +29 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/StopStackSetOperationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/TestTypeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateGeneratedTemplateCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackInstancesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateTerminationProtectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ValidateTemplateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_0.d.ts +250 -99
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_1.d.ts +132 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListGeneratedTemplatesPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListResourceScanRelatedResourcesPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListResourceScanResourcesPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListResourceScansPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/protocols/Aws_query.d.ts +132 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +6 -2
- package/node_modules/@aws-sdk/client-cloudformation/package.json +13 -13
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +14 -13
- package/node_modules/@aws-sdk/client-sso/package.json +10 -10
- package/node_modules/@aws-sdk/client-sso-oidc/LICENSE +201 -0
- package/node_modules/@aws-sdk/client-sso-oidc/README.md +274 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDC.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDCClient.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenWithIAMCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/RegisterClientCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/StartDeviceAuthorizationCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/index.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/credentialDefaultProvider.js +29 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/EndpointParameters.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js +7 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/extensionConfiguration.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +1115 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/SSOOIDCServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/index.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/models_0.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/protocols/Aws_restJson1.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.browser.js +39 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +49 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.native.js +15 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js +24 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeExtensions.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDC.js +15 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +38 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenWithIAMCommand.js +27 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/RegisterClientCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/StartDeviceAuthorizationCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/index.js +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/credentialDefaultProvider.js +3 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/EndpointParameters.js +14 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/endpointResolver.js +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/ruleset.js +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/extensionConfiguration.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js +6 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/SSOOIDCServiceException.js +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/index.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/models_0.js +217 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +553 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.browser.js +34 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js +44 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.native.js +11 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.shared.js +20 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeExtensions.js +18 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDC.d.ts +75 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +210 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenCommand.d.ts +161 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenWithIAMCommand.d.ts +243 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +107 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +110 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/credentialDefaultProvider.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/EndpointParameters.d.ts +40 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/extensionConfiguration.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/index.d.ts +51 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/SSOOIDCServiceException.d.ts +13 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +734 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/protocols/Aws_restJson1.d.ts +38 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +46 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +46 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +45 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.shared.d.ts +19 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeExtensions.d.ts +17 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDC.d.ts +73 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +142 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +26 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +29 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/credentialDefaultProvider.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/index.d.ts +9 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/SSOOIDCServiceException.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/models_0.d.ts +201 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +53 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +103 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js +1 -29
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +1 -29
- package/node_modules/@aws-sdk/client-sts/dist-cjs/credentialDefaultProvider.js +29 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js +1 -78
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1412 -72
- package/node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js +1 -12
- package/node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js +1 -149
- package/node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js +1 -1084
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +3 -4
- package/node_modules/@aws-sdk/client-sts/dist-es/credentialDefaultProvider.js +3 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +3 -4
- package/node_modules/@aws-sdk/client-sts/dist-types/credentialDefaultProvider.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/defaultRoleAssumers.d.ts +3 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +8 -3
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/credentialDefaultProvider.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +26 -14
- package/node_modules/@aws-sdk/client-sts/package.json +14 -12
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +5 -3
- package/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-env/dist-types/fromEnv.d.ts +4 -1
- package/node_modules/@aws-sdk/credential-provider-env/dist-types/ts3.4/fromEnv.d.ts +5 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/README.md +10 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +46 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +32 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +65 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttpTypes.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +59 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +17 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js +42 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.browser.js +27 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +59 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttpTypes.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js +53 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js +13 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/index.browser.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/checkUrl.d.ts +7 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.browser.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttpTypes.d.ts +69 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/requestHelpers.d.ts +11 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/retry-wrapper.d.ts +10 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/index.browser.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/index.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/checkUrl.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttp.browser.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttp.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttpTypes.d.ts +18 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/requestHelpers.d.ts +7 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/retry-wrapper.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/index.browser.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/index.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/package.json +67 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +71 -43
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/loadSts.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/loadSts.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +4 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js +4 -6
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +2 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js +10 -9
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js +9 -6
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +8 -4
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/loadSts.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveCredentialSource.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProcessCredentials.d.ts +1 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveSsoCredentials.d.ts +6 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveStaticCredentials.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts +8 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/loadSts.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveCredentialSource.d.ts +4 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProcessCredentials.d.ts +1 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveSsoCredentials.d.ts +6 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveStaticCredentials.d.ts +3 -1
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +7 -6
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +24 -2
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +11 -1
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js +5 -2
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/defaultProvider.d.ts +17 -14
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/remoteProvider.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/defaultProvider.d.ts +5 -2
- package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -7
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/fromProcess.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/fromProcess.d.ts +4 -1
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +31 -7
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +5 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/loadSso.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +7 -5
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +4 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/loadSso.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/fromSSO.d.ts +6 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/loadSso.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/resolveSSOCredentials.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +5 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +7 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/loadSts.js +5 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +6 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/loadSts.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromTokenFile.d.ts +4 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromWebToken.d.ts +14 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/loadSts.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromTokenFile.d.ts +7 -2
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromWebToken.d.ts +12 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/loadSts.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -2
- package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/middleware-signing/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +4 -4
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +27 -24
- package/node_modules/@aws-sdk/token-providers/dist-cjs/loadSsoOidc.js +1 -0
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +1 -0
- package/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +2 -1
- package/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +3 -3
- package/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-es/index.js +0 -1
- package/node_modules/@aws-sdk/token-providers/dist-es/loadSsoOidc.js +2 -0
- package/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +3 -3
- package/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +2 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +2 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts +0 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/loadSsoOidc.d.ts +2 -0
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +7 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromStatic.d.ts +7 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +0 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/loadSsoOidc.d.ts +2 -0
- package/node_modules/@aws-sdk/token-providers/package.json +6 -43
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +3 -171
- package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +15 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +4 -0
- package/node_modules/@aws-sdk/types/package.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +4 -24
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-browser.js +0 -1032
- package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js +0 -1038
- package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-browser.js +0 -1010
- package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-node.js +0 -1017
- package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-browser.d.ts +0 -191
- package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-node.d.ts +0 -191
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-browser.d.ts +0 -235
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-node.d.ts +0 -235
@@ -3,9 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
6
|
-
const
|
6
|
+
const credentialDefaultProvider_1 = require("./credentialDefaultProvider");
|
7
7
|
const core_1 = require("@aws-sdk/core");
|
8
|
-
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
9
8
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
10
9
|
const config_resolver_1 = require("@smithy/config-resolver");
|
11
10
|
const core_2 = require("@smithy/core");
|
@@ -31,14 +30,14 @@ const getRuntimeConfig = (config) => {
|
|
31
30
|
runtime: "node",
|
32
31
|
defaultsMode,
|
33
32
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
34
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ??
|
33
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider_1.defaultProvider,
|
35
34
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
36
35
|
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
37
36
|
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
38
37
|
{
|
39
38
|
schemeId: "aws.auth#sigv4",
|
40
39
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") ||
|
41
|
-
(async (idProps) => await (0,
|
40
|
+
(async (idProps) => await (0, credentialDefaultProvider_1.defaultProvider)(idProps?.__config || {})()),
|
42
41
|
signer: new core_1.AwsSdkSigV4Signer(),
|
43
42
|
},
|
44
43
|
{
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import packageInfo from "../package.json";
|
2
|
-
import {
|
2
|
+
import { defaultProvider as credentialDefaultProvider } from "./credentialDefaultProvider";
|
3
3
|
import { AwsSdkSigV4Signer, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
4
|
-
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
5
4
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
6
5
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
7
6
|
import { NoAuthSigner } from "@smithy/core";
|
@@ -27,14 +26,14 @@ export const getRuntimeConfig = (config) => {
|
|
27
26
|
runtime: "node",
|
28
27
|
defaultsMode,
|
29
28
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
30
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ??
|
29
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
31
30
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
32
31
|
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
33
32
|
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
34
33
|
{
|
35
34
|
schemeId: "aws.auth#sigv4",
|
36
35
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") ||
|
37
|
-
(async (idProps) => await
|
36
|
+
(async (idProps) => await credentialDefaultProvider(idProps?.__config || {})()),
|
38
37
|
signer: new AwsSdkSigV4Signer(),
|
39
38
|
},
|
40
39
|
{
|
@@ -16,5 +16,8 @@ export declare const getDefaultRoleAssumerWithWebIdentity: (stsOptions?: Pick<ST
|
|
16
16
|
* dependencies.
|
17
17
|
*
|
18
18
|
* @internal
|
19
|
+
*
|
20
|
+
* @deprecated this is no longer needed. Use the defaultProvider directly,
|
21
|
+
* which will load STS if needed.
|
19
22
|
*/
|
20
23
|
export declare const decorateDefaultCredentialProvider: (provider: DefaultCredentialProvider) => DefaultCredentialProvider;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
1
2
|
import { NoAuthSigner } from "@smithy/core";
|
2
3
|
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
3
4
|
import { IdentityProviderConfig } from "@smithy/types";
|
@@ -9,13 +10,17 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
9
10
|
runtime: string;
|
10
11
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
11
12
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
12
|
-
credentialDefaultProvider:
|
13
|
+
credentialDefaultProvider: any;
|
13
14
|
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
14
|
-
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | {
|
15
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
16
|
+
schemeId: string;
|
17
|
+
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | ((idProps: Record<string, any> | undefined) => Promise<any>);
|
18
|
+
signer: AwsSdkSigV4Signer;
|
19
|
+
} | {
|
15
20
|
schemeId: string;
|
16
21
|
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
|
17
22
|
signer: NoAuthSigner;
|
18
|
-
}[];
|
23
|
+
})[];
|
19
24
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
20
25
|
region: string | import("@smithy/types").Provider<string>;
|
21
26
|
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const defaultProvider: any;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
1
2
|
import { NoAuthSigner } from "@smithy/core";
|
2
3
|
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
3
4
|
import { IdentityProviderConfig } from "@smithy/types";
|
@@ -8,25 +9,36 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
8
9
|
import("@smithy/smithy-client").ResolvedDefaultsMode
|
9
10
|
>;
|
10
11
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
11
|
-
credentialDefaultProvider:
|
12
|
-
input: any
|
13
|
-
) => import("@smithy/types").AwsCredentialIdentityProvider;
|
12
|
+
credentialDefaultProvider: any;
|
14
13
|
defaultUserAgentProvider: import("@smithy/types").Provider<
|
15
14
|
import("@smithy/types").UserAgent
|
16
15
|
>;
|
17
16
|
httpAuthSchemes:
|
18
17
|
| import("@smithy/types").HttpAuthScheme[]
|
19
|
-
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
import("@smithy/types").
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
18
|
+
| (
|
19
|
+
| {
|
20
|
+
schemeId: string;
|
21
|
+
identityProvider: (
|
22
|
+
ipc: IdentityProviderConfig
|
23
|
+
) =>
|
24
|
+
| import("@smithy/types").IdentityProvider<
|
25
|
+
import("@smithy/types").Identity
|
26
|
+
>
|
27
|
+
| ((idProps: Record<string, any> | undefined) => Promise<any>);
|
28
|
+
signer: AwsSdkSigV4Signer;
|
29
|
+
}
|
30
|
+
| {
|
31
|
+
schemeId: string;
|
32
|
+
identityProvider: (
|
33
|
+
ipc: IdentityProviderConfig
|
34
|
+
) =>
|
35
|
+
| import("@smithy/types").IdentityProvider<
|
36
|
+
import("@smithy/types").Identity
|
37
|
+
>
|
38
|
+
| (() => Promise<{}>);
|
39
|
+
signer: NoAuthSigner;
|
40
|
+
}
|
41
|
+
)[];
|
30
42
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
31
43
|
region: string | import("@smithy/types").Provider<string>;
|
32
44
|
requestHandler:
|
@@ -1,13 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/client-sts",
|
3
3
|
"description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
4
|
-
"version": "3.
|
4
|
+
"version": "3.504.0",
|
5
5
|
"scripts": {
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sts",
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
9
9
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
10
|
-
"build:types": "tsc -p tsconfig.types.json",
|
10
|
+
"build:types": "rimraf ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json",
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
12
12
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
13
13
|
"extract:docs": "api-extractor run --local",
|
@@ -23,16 +23,15 @@
|
|
23
23
|
"@aws-crypto/sha256-browser": "3.0.0",
|
24
24
|
"@aws-crypto/sha256-js": "3.0.0",
|
25
25
|
"@aws-sdk/core": "3.496.0",
|
26
|
-
"@aws-sdk/
|
27
|
-
"@aws-sdk/middleware-
|
28
|
-
"@aws-sdk/middleware-
|
29
|
-
"@aws-sdk/middleware-
|
30
|
-
"@aws-sdk/
|
31
|
-
"@aws-sdk/
|
32
|
-
"@aws-sdk/
|
33
|
-
"@aws-sdk/util-
|
34
|
-
"@aws-sdk/util-user-agent-
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.496.0",
|
26
|
+
"@aws-sdk/middleware-host-header": "3.502.0",
|
27
|
+
"@aws-sdk/middleware-logger": "3.502.0",
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.502.0",
|
30
|
+
"@aws-sdk/region-config-resolver": "3.502.0",
|
31
|
+
"@aws-sdk/types": "3.502.0",
|
32
|
+
"@aws-sdk/util-endpoints": "3.502.0",
|
33
|
+
"@aws-sdk/util-user-agent-browser": "3.502.0",
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.502.0",
|
36
35
|
"@smithy/config-resolver": "^2.1.1",
|
37
36
|
"@smithy/core": "^1.3.1",
|
38
37
|
"@smithy/fetch-http-handler": "^2.4.1",
|
@@ -88,6 +87,9 @@
|
|
88
87
|
"url": "https://aws.amazon.com/javascript/"
|
89
88
|
},
|
90
89
|
"license": "Apache-2.0",
|
90
|
+
"peerDependencies": {
|
91
|
+
"@aws-sdk/credential-provider-node": "^3.504.0"
|
92
|
+
},
|
91
93
|
"browser": {
|
92
94
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
93
95
|
},
|
@@ -36,7 +36,9 @@ var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
|
|
36
36
|
var ENV_SESSION = "AWS_SESSION_TOKEN";
|
37
37
|
var ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
|
38
38
|
var ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
|
39
|
-
var fromEnv = /* @__PURE__ */ __name(() => async () => {
|
39
|
+
var fromEnv = /* @__PURE__ */ __name((init) => async () => {
|
40
|
+
var _a;
|
41
|
+
(_a = init == null ? void 0 : init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-env", "fromEnv");
|
40
42
|
const accessKeyId = process.env[ENV_KEY];
|
41
43
|
const secretAccessKey = process.env[ENV_SECRET];
|
42
44
|
const sessionToken = process.env[ENV_SESSION];
|
@@ -56,11 +58,11 @@ var fromEnv = /* @__PURE__ */ __name(() => async () => {
|
|
56
58
|
// Annotate the CommonJS export names for ESM import in node:
|
57
59
|
|
58
60
|
0 && (module.exports = {
|
59
|
-
ENV_CREDENTIAL_SCOPE,
|
60
|
-
ENV_EXPIRATION,
|
61
61
|
ENV_KEY,
|
62
62
|
ENV_SECRET,
|
63
63
|
ENV_SESSION,
|
64
|
+
ENV_EXPIRATION,
|
65
|
+
ENV_CREDENTIAL_SCOPE,
|
64
66
|
fromEnv
|
65
67
|
});
|
66
68
|
|
@@ -4,7 +4,8 @@ export const ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
|
|
4
4
|
export const ENV_SESSION = "AWS_SESSION_TOKEN";
|
5
5
|
export const ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
|
6
6
|
export const ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
|
7
|
-
export const fromEnv = () => async () => {
|
7
|
+
export const fromEnv = (init) => async () => {
|
8
|
+
init?.logger?.debug("@aws-sdk/credential-provider-env", "fromEnv");
|
8
9
|
const accessKeyId = process.env[ENV_KEY];
|
9
10
|
const secretAccessKey = process.env[ENV_SECRET];
|
10
11
|
const sessionToken = process.env[ENV_SESSION];
|
@@ -1,4 +1,7 @@
|
|
1
|
+
import type { CredentialProviderOptions } from "@aws-sdk/types";
|
1
2
|
import { AwsCredentialIdentityProvider } from "@smithy/types";
|
3
|
+
export interface FromEnvInit extends CredentialProviderOptions {
|
4
|
+
}
|
2
5
|
/**
|
3
6
|
* @internal
|
4
7
|
*/
|
@@ -26,4 +29,4 @@ export declare const ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
|
|
26
29
|
* `AWS_ACCESS_KEY_ID` or `AWS_SECRET_ACCESS_KEY` environment variable is not
|
27
30
|
* set in this process, the provider will return a rejected promise.
|
28
31
|
*/
|
29
|
-
export declare const fromEnv: () => AwsCredentialIdentityProvider;
|
32
|
+
export declare const fromEnv: (init?: FromEnvInit) => AwsCredentialIdentityProvider;
|
@@ -1,7 +1,11 @@
|
|
1
|
+
import { CredentialProviderOptions } from "@aws-sdk/types";
|
1
2
|
import { AwsCredentialIdentityProvider } from "@smithy/types";
|
3
|
+
export interface FromEnvInit extends CredentialProviderOptions {}
|
2
4
|
export declare const ENV_KEY = "AWS_ACCESS_KEY_ID";
|
3
5
|
export declare const ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
|
4
6
|
export declare const ENV_SESSION = "AWS_SESSION_TOKEN";
|
5
7
|
export declare const ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
|
6
8
|
export declare const ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
|
7
|
-
export declare const fromEnv: (
|
9
|
+
export declare const fromEnv: (
|
10
|
+
init?: FromEnvInit
|
11
|
+
) => AwsCredentialIdentityProvider;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/credential-provider-env",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.502.0",
|
4
4
|
"description": "AWS credential provider that sources credentials from known environment variables",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -24,7 +24,7 @@
|
|
24
24
|
},
|
25
25
|
"license": "Apache-2.0",
|
26
26
|
"dependencies": {
|
27
|
-
"@aws-sdk/types": "3.
|
27
|
+
"@aws-sdk/types": "3.502.0",
|
28
28
|
"@smithy/property-provider": "^2.1.1",
|
29
29
|
"@smithy/types": "^2.9.1",
|
30
30
|
"tslib": "^2.5.0"
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# @aws-sdk/credential-provider-http
|
2
|
+
|
3
|
+
[](https://www.npmjs.com/package/@aws-sdk/credential-provider-http)
|
4
|
+
[](https://www.npmjs.com/package/@aws-sdk/credential-provider-http)
|
5
|
+
|
6
|
+
> An internal transitively required package.
|
7
|
+
|
8
|
+
## Usage
|
9
|
+
|
10
|
+
See https://www.npmjs.com/package/@aws-sdk/credential-providers
|
@@ -0,0 +1,46 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.checkUrl = void 0;
|
4
|
+
const property_provider_1 = require("@smithy/property-provider");
|
5
|
+
const LOOPBACK_CIDR_IPv4 = "127.0.0.0/8";
|
6
|
+
const LOOPBACK_CIDR_IPv6 = "::1/128";
|
7
|
+
const ECS_CONTAINER_HOST = "169.254.170.2";
|
8
|
+
const EKS_CONTAINER_HOST_IPv4 = "169.254.170.23";
|
9
|
+
const EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]";
|
10
|
+
const checkUrl = (url) => {
|
11
|
+
if (url.protocol === "https:") {
|
12
|
+
return;
|
13
|
+
}
|
14
|
+
if (url.hostname === ECS_CONTAINER_HOST ||
|
15
|
+
url.hostname === EKS_CONTAINER_HOST_IPv4 ||
|
16
|
+
url.hostname === EKS_CONTAINER_HOST_IPv6) {
|
17
|
+
return;
|
18
|
+
}
|
19
|
+
if (url.hostname.includes("[")) {
|
20
|
+
if (url.hostname === "[::1]" || url.hostname === "[0000:0000:0000:0000:0000:0000:0000:0001]") {
|
21
|
+
return;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
else {
|
25
|
+
if (url.hostname === "localhost") {
|
26
|
+
return;
|
27
|
+
}
|
28
|
+
const ipComponents = url.hostname.split(".");
|
29
|
+
const inRange = (component) => {
|
30
|
+
const num = parseInt(component, 10);
|
31
|
+
return 0 <= num && num <= 255;
|
32
|
+
};
|
33
|
+
if (ipComponents[0] === "127" &&
|
34
|
+
inRange(ipComponents[1]) &&
|
35
|
+
inRange(ipComponents[2]) &&
|
36
|
+
inRange(ipComponents[3]) &&
|
37
|
+
ipComponents.length === 4) {
|
38
|
+
return;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
throw new property_provider_1.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
|
42
|
+
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
43
|
+
- ECS container host 169.254.170.2
|
44
|
+
- EKS container host 169.254.170.23 or [fd00:ec2::23]`);
|
45
|
+
};
|
46
|
+
exports.checkUrl = checkUrl;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.fromHttp = void 0;
|
4
|
+
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
5
|
+
const property_provider_1 = require("@smithy/property-provider");
|
6
|
+
const checkUrl_1 = require("./checkUrl");
|
7
|
+
const requestHelpers_1 = require("./requestHelpers");
|
8
|
+
const retry_wrapper_1 = require("./retry-wrapper");
|
9
|
+
const fromHttp = (options) => {
|
10
|
+
var _a, _b, _c;
|
11
|
+
(_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug("@aws-sdk/credential-provider-http", "fromHttp");
|
12
|
+
let host;
|
13
|
+
const full = options.credentialsFullUri;
|
14
|
+
if (full) {
|
15
|
+
host = full;
|
16
|
+
}
|
17
|
+
else {
|
18
|
+
throw new property_provider_1.CredentialsProviderError("No HTTP credential provider host provided.");
|
19
|
+
}
|
20
|
+
const url = new URL(host);
|
21
|
+
(0, checkUrl_1.checkUrl)(url);
|
22
|
+
const requestHandler = new fetch_http_handler_1.FetchHttpHandler();
|
23
|
+
return (0, retry_wrapper_1.retryWrapper)(async () => {
|
24
|
+
const request = (0, requestHelpers_1.createGetRequest)(url);
|
25
|
+
if (options.authorizationToken) {
|
26
|
+
request.headers.Authorization = options.authorizationToken;
|
27
|
+
}
|
28
|
+
const result = await requestHandler.handle(request);
|
29
|
+
return (0, requestHelpers_1.getCredentials)(result.response);
|
30
|
+
}, (_b = options.maxRetries) !== null && _b !== void 0 ? _b : 3, (_c = options.timeout) !== null && _c !== void 0 ? _c : 1000);
|
31
|
+
};
|
32
|
+
exports.fromHttp = fromHttp;
|
@@ -0,0 +1,65 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.fromHttp = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const node_http_handler_1 = require("@smithy/node-http-handler");
|
6
|
+
const property_provider_1 = require("@smithy/property-provider");
|
7
|
+
const promises_1 = tslib_1.__importDefault(require("fs/promises"));
|
8
|
+
const checkUrl_1 = require("./checkUrl");
|
9
|
+
const requestHelpers_1 = require("./requestHelpers");
|
10
|
+
const retry_wrapper_1 = require("./retry-wrapper");
|
11
|
+
const AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
|
12
|
+
const DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2";
|
13
|
+
const AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
|
14
|
+
const AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE";
|
15
|
+
const AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN";
|
16
|
+
const fromHttp = (options) => {
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
18
|
+
(_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug("@aws-sdk/credential-provider-http", "fromHttp");
|
19
|
+
let host;
|
20
|
+
const relative = (_b = options.awsContainerCredentialsRelativeUri) !== null && _b !== void 0 ? _b : process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];
|
21
|
+
const full = (_c = options.awsContainerCredentialsFullUri) !== null && _c !== void 0 ? _c : process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI];
|
22
|
+
const token = (_d = options.awsContainerAuthorizationToken) !== null && _d !== void 0 ? _d : process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN];
|
23
|
+
const tokenFile = (_e = options.awsContainerAuthorizationTokenFile) !== null && _e !== void 0 ? _e : process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE];
|
24
|
+
if (relative && full) {
|
25
|
+
console.warn("AWS SDK HTTP credentials provider:", "you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.");
|
26
|
+
console.warn("awsContainerCredentialsFullUri will take precedence.");
|
27
|
+
}
|
28
|
+
if (token && tokenFile) {
|
29
|
+
console.warn("AWS SDK HTTP credentials provider:", "you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.");
|
30
|
+
console.warn("awsContainerAuthorizationToken will take precedence.");
|
31
|
+
}
|
32
|
+
if (full) {
|
33
|
+
host = full;
|
34
|
+
}
|
35
|
+
else if (relative) {
|
36
|
+
host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`;
|
37
|
+
}
|
38
|
+
else {
|
39
|
+
throw new property_provider_1.CredentialsProviderError(`No HTTP credential provider host provided.
|
40
|
+
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`);
|
41
|
+
}
|
42
|
+
const url = new URL(host);
|
43
|
+
(0, checkUrl_1.checkUrl)(url);
|
44
|
+
const requestHandler = new node_http_handler_1.NodeHttpHandler({
|
45
|
+
requestTimeout: (_f = options.timeout) !== null && _f !== void 0 ? _f : 1000,
|
46
|
+
connectionTimeout: (_g = options.timeout) !== null && _g !== void 0 ? _g : 1000,
|
47
|
+
});
|
48
|
+
return (0, retry_wrapper_1.retryWrapper)(async () => {
|
49
|
+
const request = (0, requestHelpers_1.createGetRequest)(url);
|
50
|
+
if (token) {
|
51
|
+
request.headers.Authorization = token;
|
52
|
+
}
|
53
|
+
else if (tokenFile) {
|
54
|
+
request.headers.Authorization = (await promises_1.default.readFile(tokenFile)).toString();
|
55
|
+
}
|
56
|
+
try {
|
57
|
+
const result = await requestHandler.handle(request);
|
58
|
+
return (0, requestHelpers_1.getCredentials)(result.response);
|
59
|
+
}
|
60
|
+
catch (e) {
|
61
|
+
throw new property_provider_1.CredentialsProviderError(String(e));
|
62
|
+
}
|
63
|
+
}, (_h = options.maxRetries) !== null && _h !== void 0 ? _h : 3, (_j = options.timeout) !== null && _j !== void 0 ? _j : 1000);
|
64
|
+
};
|
65
|
+
exports.fromHttp = fromHttp;
|
@@ -0,0 +1,59 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getCredentials = exports.createGetRequest = void 0;
|
4
|
+
const property_provider_1 = require("@smithy/property-provider");
|
5
|
+
const protocol_http_1 = require("@smithy/protocol-http");
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
7
|
+
const util_stream_1 = require("@smithy/util-stream");
|
8
|
+
function createGetRequest(url) {
|
9
|
+
return new protocol_http_1.HttpRequest({
|
10
|
+
protocol: url.protocol,
|
11
|
+
hostname: url.hostname,
|
12
|
+
port: Number(url.port),
|
13
|
+
path: url.pathname,
|
14
|
+
query: Array.from(url.searchParams.entries()).reduce((acc, [k, v]) => {
|
15
|
+
acc[k] = v;
|
16
|
+
return acc;
|
17
|
+
}, {}),
|
18
|
+
fragment: url.hash,
|
19
|
+
});
|
20
|
+
}
|
21
|
+
exports.createGetRequest = createGetRequest;
|
22
|
+
async function getCredentials(response) {
|
23
|
+
var _a, _b;
|
24
|
+
const contentType = (_b = (_a = response === null || response === void 0 ? void 0 : response.headers["content-type"]) !== null && _a !== void 0 ? _a : response === null || response === void 0 ? void 0 : response.headers["Content-Type"]) !== null && _b !== void 0 ? _b : "";
|
25
|
+
if (!contentType.includes("json")) {
|
26
|
+
console.warn("HTTP credential provider response header content-type was not application/json. Observed: " + contentType + ".");
|
27
|
+
}
|
28
|
+
const stream = (0, util_stream_1.sdkStreamMixin)(response.body);
|
29
|
+
const str = await stream.transformToString();
|
30
|
+
if (response.statusCode === 200) {
|
31
|
+
const parsed = JSON.parse(str);
|
32
|
+
if (typeof parsed.AccessKeyId !== "string" ||
|
33
|
+
typeof parsed.SecretAccessKey !== "string" ||
|
34
|
+
typeof parsed.Token !== "string" ||
|
35
|
+
typeof parsed.Expiration !== "string") {
|
36
|
+
throw new property_provider_1.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: " +
|
37
|
+
"{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }");
|
38
|
+
}
|
39
|
+
return {
|
40
|
+
accessKeyId: parsed.AccessKeyId,
|
41
|
+
secretAccessKey: parsed.SecretAccessKey,
|
42
|
+
sessionToken: parsed.Token,
|
43
|
+
expiration: (0, smithy_client_1.parseRfc3339DateTime)(parsed.Expiration),
|
44
|
+
};
|
45
|
+
}
|
46
|
+
if (response.statusCode >= 400 && response.statusCode < 500) {
|
47
|
+
let parsedBody = {};
|
48
|
+
try {
|
49
|
+
parsedBody = JSON.parse(str);
|
50
|
+
}
|
51
|
+
catch (e) { }
|
52
|
+
throw Object.assign(new property_provider_1.CredentialsProviderError(`Server responded with status: ${response.statusCode}`), {
|
53
|
+
Code: parsedBody.Code,
|
54
|
+
Message: parsedBody.Message,
|
55
|
+
});
|
56
|
+
}
|
57
|
+
throw new property_provider_1.CredentialsProviderError(`Server responded with status: ${response.statusCode}`);
|
58
|
+
}
|
59
|
+
exports.getCredentials = getCredentials;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.retryWrapper = void 0;
|
4
|
+
const retryWrapper = (toRetry, maxRetries, delayMs) => {
|
5
|
+
return async () => {
|
6
|
+
for (let i = 0; i < maxRetries; ++i) {
|
7
|
+
try {
|
8
|
+
return await toRetry();
|
9
|
+
}
|
10
|
+
catch (e) {
|
11
|
+
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
12
|
+
}
|
13
|
+
}
|
14
|
+
return await toRetry();
|
15
|
+
};
|
16
|
+
};
|
17
|
+
exports.retryWrapper = retryWrapper;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
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; } });
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.fromHttp = void 0;
|
4
|
+
var fromHttp_1 = require("./fromHttp/fromHttp");
|
5
|
+
Object.defineProperty(exports, "fromHttp", { enumerable: true, get: function () { return fromHttp_1.fromHttp; } });
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { CredentialsProviderError } from "@smithy/property-provider";
|
2
|
+
const LOOPBACK_CIDR_IPv4 = "127.0.0.0/8";
|
3
|
+
const LOOPBACK_CIDR_IPv6 = "::1/128";
|
4
|
+
const ECS_CONTAINER_HOST = "169.254.170.2";
|
5
|
+
const EKS_CONTAINER_HOST_IPv4 = "169.254.170.23";
|
6
|
+
const EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]";
|
7
|
+
export const checkUrl = (url) => {
|
8
|
+
if (url.protocol === "https:") {
|
9
|
+
return;
|
10
|
+
}
|
11
|
+
if (url.hostname === ECS_CONTAINER_HOST ||
|
12
|
+
url.hostname === EKS_CONTAINER_HOST_IPv4 ||
|
13
|
+
url.hostname === EKS_CONTAINER_HOST_IPv6) {
|
14
|
+
return;
|
15
|
+
}
|
16
|
+
if (url.hostname.includes("[")) {
|
17
|
+
if (url.hostname === "[::1]" || url.hostname === "[0000:0000:0000:0000:0000:0000:0000:0001]") {
|
18
|
+
return;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
else {
|
22
|
+
if (url.hostname === "localhost") {
|
23
|
+
return;
|
24
|
+
}
|
25
|
+
const ipComponents = url.hostname.split(".");
|
26
|
+
const inRange = (component) => {
|
27
|
+
const num = parseInt(component, 10);
|
28
|
+
return 0 <= num && num <= 255;
|
29
|
+
};
|
30
|
+
if (ipComponents[0] === "127" &&
|
31
|
+
inRange(ipComponents[1]) &&
|
32
|
+
inRange(ipComponents[2]) &&
|
33
|
+
inRange(ipComponents[3]) &&
|
34
|
+
ipComponents.length === 4) {
|
35
|
+
return;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
throw new CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
|
39
|
+
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
40
|
+
- ECS container host 169.254.170.2
|
41
|
+
- EKS container host 169.254.170.23 or [fd00:ec2::23]`);
|
42
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { FetchHttpHandler } from "@smithy/fetch-http-handler";
|
2
|
+
import { CredentialsProviderError } from "@smithy/property-provider";
|
3
|
+
import { checkUrl } from "./checkUrl";
|
4
|
+
import { createGetRequest, getCredentials } from "./requestHelpers";
|
5
|
+
import { retryWrapper } from "./retry-wrapper";
|
6
|
+
export const fromHttp = (options) => {
|
7
|
+
options.logger?.debug("@aws-sdk/credential-provider-http", "fromHttp");
|
8
|
+
let host;
|
9
|
+
const full = options.credentialsFullUri;
|
10
|
+
if (full) {
|
11
|
+
host = full;
|
12
|
+
}
|
13
|
+
else {
|
14
|
+
throw new CredentialsProviderError("No HTTP credential provider host provided.");
|
15
|
+
}
|
16
|
+
const url = new URL(host);
|
17
|
+
checkUrl(url);
|
18
|
+
const requestHandler = new FetchHttpHandler();
|
19
|
+
return retryWrapper(async () => {
|
20
|
+
const request = createGetRequest(url);
|
21
|
+
if (options.authorizationToken) {
|
22
|
+
request.headers.Authorization = options.authorizationToken;
|
23
|
+
}
|
24
|
+
const result = await requestHandler.handle(request);
|
25
|
+
return getCredentials(result.response);
|
26
|
+
}, options.maxRetries ?? 3, options.timeout ?? 1000);
|
27
|
+
};
|