@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
@@ -0,0 +1,59 @@
|
|
1
|
+
import { NodeHttpHandler } from "@smithy/node-http-handler";
|
2
|
+
import { CredentialsProviderError } from "@smithy/property-provider";
|
3
|
+
import fs from "fs/promises";
|
4
|
+
import { checkUrl } from "./checkUrl";
|
5
|
+
import { createGetRequest, getCredentials } from "./requestHelpers";
|
6
|
+
import { retryWrapper } from "./retry-wrapper";
|
7
|
+
const AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
|
8
|
+
const DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2";
|
9
|
+
const AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
|
10
|
+
const AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE";
|
11
|
+
const AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN";
|
12
|
+
export const fromHttp = (options) => {
|
13
|
+
options.logger?.debug("@aws-sdk/credential-provider-http", "fromHttp");
|
14
|
+
let host;
|
15
|
+
const relative = options.awsContainerCredentialsRelativeUri ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];
|
16
|
+
const full = options.awsContainerCredentialsFullUri ?? process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI];
|
17
|
+
const token = options.awsContainerAuthorizationToken ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN];
|
18
|
+
const tokenFile = options.awsContainerAuthorizationTokenFile ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE];
|
19
|
+
if (relative && full) {
|
20
|
+
console.warn("AWS SDK HTTP credentials provider:", "you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.");
|
21
|
+
console.warn("awsContainerCredentialsFullUri will take precedence.");
|
22
|
+
}
|
23
|
+
if (token && tokenFile) {
|
24
|
+
console.warn("AWS SDK HTTP credentials provider:", "you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.");
|
25
|
+
console.warn("awsContainerAuthorizationToken will take precedence.");
|
26
|
+
}
|
27
|
+
if (full) {
|
28
|
+
host = full;
|
29
|
+
}
|
30
|
+
else if (relative) {
|
31
|
+
host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`;
|
32
|
+
}
|
33
|
+
else {
|
34
|
+
throw new CredentialsProviderError(`No HTTP credential provider host provided.
|
35
|
+
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`);
|
36
|
+
}
|
37
|
+
const url = new URL(host);
|
38
|
+
checkUrl(url);
|
39
|
+
const requestHandler = new NodeHttpHandler({
|
40
|
+
requestTimeout: options.timeout ?? 1000,
|
41
|
+
connectionTimeout: options.timeout ?? 1000,
|
42
|
+
});
|
43
|
+
return retryWrapper(async () => {
|
44
|
+
const request = createGetRequest(url);
|
45
|
+
if (token) {
|
46
|
+
request.headers.Authorization = token;
|
47
|
+
}
|
48
|
+
else if (tokenFile) {
|
49
|
+
request.headers.Authorization = (await fs.readFile(tokenFile)).toString();
|
50
|
+
}
|
51
|
+
try {
|
52
|
+
const result = await requestHandler.handle(request);
|
53
|
+
return getCredentials(result.response);
|
54
|
+
}
|
55
|
+
catch (e) {
|
56
|
+
throw new CredentialsProviderError(String(e));
|
57
|
+
}
|
58
|
+
}, options.maxRetries ?? 3, options.timeout ?? 1000);
|
59
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { CredentialsProviderError } from "@smithy/property-provider";
|
2
|
+
import { HttpRequest } from "@smithy/protocol-http";
|
3
|
+
import { parseRfc3339DateTime } from "@smithy/smithy-client";
|
4
|
+
import { sdkStreamMixin } from "@smithy/util-stream";
|
5
|
+
export function createGetRequest(url) {
|
6
|
+
return new HttpRequest({
|
7
|
+
protocol: url.protocol,
|
8
|
+
hostname: url.hostname,
|
9
|
+
port: Number(url.port),
|
10
|
+
path: url.pathname,
|
11
|
+
query: Array.from(url.searchParams.entries()).reduce((acc, [k, v]) => {
|
12
|
+
acc[k] = v;
|
13
|
+
return acc;
|
14
|
+
}, {}),
|
15
|
+
fragment: url.hash,
|
16
|
+
});
|
17
|
+
}
|
18
|
+
export async function getCredentials(response) {
|
19
|
+
const contentType = response?.headers["content-type"] ?? response?.headers["Content-Type"] ?? "";
|
20
|
+
if (!contentType.includes("json")) {
|
21
|
+
console.warn("HTTP credential provider response header content-type was not application/json. Observed: " + contentType + ".");
|
22
|
+
}
|
23
|
+
const stream = sdkStreamMixin(response.body);
|
24
|
+
const str = await stream.transformToString();
|
25
|
+
if (response.statusCode === 200) {
|
26
|
+
const parsed = JSON.parse(str);
|
27
|
+
if (typeof parsed.AccessKeyId !== "string" ||
|
28
|
+
typeof parsed.SecretAccessKey !== "string" ||
|
29
|
+
typeof parsed.Token !== "string" ||
|
30
|
+
typeof parsed.Expiration !== "string") {
|
31
|
+
throw new CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: " +
|
32
|
+
"{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }");
|
33
|
+
}
|
34
|
+
return {
|
35
|
+
accessKeyId: parsed.AccessKeyId,
|
36
|
+
secretAccessKey: parsed.SecretAccessKey,
|
37
|
+
sessionToken: parsed.Token,
|
38
|
+
expiration: parseRfc3339DateTime(parsed.Expiration),
|
39
|
+
};
|
40
|
+
}
|
41
|
+
if (response.statusCode >= 400 && response.statusCode < 500) {
|
42
|
+
let parsedBody = {};
|
43
|
+
try {
|
44
|
+
parsedBody = JSON.parse(str);
|
45
|
+
}
|
46
|
+
catch (e) { }
|
47
|
+
throw Object.assign(new CredentialsProviderError(`Server responded with status: ${response.statusCode}`), {
|
48
|
+
Code: parsedBody.Code,
|
49
|
+
Message: parsedBody.Message,
|
50
|
+
});
|
51
|
+
}
|
52
|
+
throw new CredentialsProviderError(`Server responded with status: ${response.statusCode}`);
|
53
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export const retryWrapper = (toRetry, maxRetries, delayMs) => {
|
2
|
+
return async () => {
|
3
|
+
for (let i = 0; i < maxRetries; ++i) {
|
4
|
+
try {
|
5
|
+
return await toRetry();
|
6
|
+
}
|
7
|
+
catch (e) {
|
8
|
+
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
9
|
+
}
|
10
|
+
}
|
11
|
+
return await toRetry();
|
12
|
+
};
|
13
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { fromHttp } from "./fromHttp/fromHttp.browser";
|
@@ -0,0 +1 @@
|
|
1
|
+
export { fromHttp } from "./fromHttp/fromHttp";
|
package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.browser.d.ts
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
import { AwsCredentialIdentityProvider } from "@smithy/types";
|
2
|
+
import type { FromHttpOptions } from "./fromHttpTypes";
|
3
|
+
/**
|
4
|
+
* Creates a provider that gets credentials via HTTP request.
|
5
|
+
*/
|
6
|
+
export declare const fromHttp: (options: FromHttpOptions) => AwsCredentialIdentityProvider;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { AwsCredentialIdentityProvider } from "@smithy/types";
|
2
|
+
import type { FromHttpOptions } from "./fromHttpTypes";
|
3
|
+
/**
|
4
|
+
* Creates a provider that gets credentials via HTTP request.
|
5
|
+
*/
|
6
|
+
export declare const fromHttp: (options: FromHttpOptions) => AwsCredentialIdentityProvider;
|
@@ -0,0 +1,69 @@
|
|
1
|
+
import type { CredentialProviderOptions } from "@aws-sdk/types";
|
2
|
+
/**
|
3
|
+
* @public
|
4
|
+
*
|
5
|
+
* Input for the fromHttp function in the HTTP Credentials Provider for Node.js.
|
6
|
+
*/
|
7
|
+
export interface FromHttpOptions extends CredentialProviderOptions {
|
8
|
+
/**
|
9
|
+
* If this value is provided, it will be used as-is.
|
10
|
+
*
|
11
|
+
* For browser environments, use instead {@link credentialsFullUri}.
|
12
|
+
*/
|
13
|
+
awsContainerCredentialsFullUri?: string;
|
14
|
+
/**
|
15
|
+
* If this value is provided instead of the full URI, it
|
16
|
+
* will be appended to the default link local host of 169.254.170.2.
|
17
|
+
*
|
18
|
+
* Not supported in browsers.
|
19
|
+
*/
|
20
|
+
awsContainerCredentialsRelativeUri?: string;
|
21
|
+
/**
|
22
|
+
* Will be read on each credentials request to
|
23
|
+
* add an Authorization request header value.
|
24
|
+
*
|
25
|
+
* Not supported in browsers.
|
26
|
+
*/
|
27
|
+
awsContainerAuthorizationTokenFile?: string;
|
28
|
+
/**
|
29
|
+
* An alternative to awsContainerAuthorizationTokenFile,
|
30
|
+
* this is the token value itself.
|
31
|
+
*
|
32
|
+
* For browser environments, use instead {@link authorizationToken}.
|
33
|
+
*/
|
34
|
+
awsContainerAuthorizationToken?: string;
|
35
|
+
/**
|
36
|
+
* BROWSER ONLY.
|
37
|
+
*
|
38
|
+
* In browsers, a relative URI is not allowed, and a full URI must be provided.
|
39
|
+
* HTTPS is required.
|
40
|
+
*
|
41
|
+
* This value is required for the browser environment.
|
42
|
+
*/
|
43
|
+
credentialsFullUri?: string;
|
44
|
+
/**
|
45
|
+
* BROWSER ONLY.
|
46
|
+
*
|
47
|
+
* Providing this value will set an "Authorization" request
|
48
|
+
* header value on the GET request.
|
49
|
+
*/
|
50
|
+
authorizationToken?: string;
|
51
|
+
/**
|
52
|
+
* Default is 3 retry attempts or 4 total attempts.
|
53
|
+
*/
|
54
|
+
maxRetries?: number;
|
55
|
+
/**
|
56
|
+
* Default is 1000ms. Time in milliseconds to spend waiting between retry attempts.
|
57
|
+
*/
|
58
|
+
timeout?: number;
|
59
|
+
}
|
60
|
+
/**
|
61
|
+
* @public
|
62
|
+
*/
|
63
|
+
export type HttpProviderCredentials = {
|
64
|
+
AccessKeyId: string;
|
65
|
+
SecretAccessKey: string;
|
66
|
+
Token: string;
|
67
|
+
AccountId?: string;
|
68
|
+
Expiration: string;
|
69
|
+
};
|
package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/requestHelpers.d.ts
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
import { AwsCredentialIdentity } from "@aws-sdk/types";
|
2
|
+
import { HttpRequest } from "@smithy/protocol-http";
|
3
|
+
import { HttpResponse } from "@smithy/types";
|
4
|
+
/**
|
5
|
+
* @internal
|
6
|
+
*/
|
7
|
+
export declare function createGetRequest(url: URL): HttpRequest;
|
8
|
+
/**
|
9
|
+
* @internal
|
10
|
+
*/
|
11
|
+
export declare function getCredentials(response: HttpResponse): Promise<AwsCredentialIdentity>;
|
package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/checkUrl.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export declare const checkUrl: (url: URL) => void;
|
package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttpTypes.d.ts
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
import { CredentialProviderOptions } from "@aws-sdk/types";
|
2
|
+
export interface FromHttpOptions extends CredentialProviderOptions {
|
3
|
+
awsContainerCredentialsFullUri?: string;
|
4
|
+
awsContainerCredentialsRelativeUri?: string;
|
5
|
+
awsContainerAuthorizationTokenFile?: string;
|
6
|
+
awsContainerAuthorizationToken?: string;
|
7
|
+
credentialsFullUri?: string;
|
8
|
+
authorizationToken?: string;
|
9
|
+
maxRetries?: number;
|
10
|
+
timeout?: number;
|
11
|
+
}
|
12
|
+
export type HttpProviderCredentials = {
|
13
|
+
AccessKeyId: string;
|
14
|
+
SecretAccessKey: string;
|
15
|
+
Token: string;
|
16
|
+
AccountId?: string;
|
17
|
+
Expiration: string;
|
18
|
+
};
|
package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/requestHelpers.d.ts
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
import { AwsCredentialIdentity } from "@aws-sdk/types";
|
2
|
+
import { HttpRequest } from "@smithy/protocol-http";
|
3
|
+
import { HttpResponse } from "@smithy/types";
|
4
|
+
export declare function createGetRequest(url: URL): HttpRequest;
|
5
|
+
export declare function getCredentials(
|
6
|
+
response: HttpResponse
|
7
|
+
): Promise<AwsCredentialIdentity>;
|
@@ -0,0 +1,67 @@
|
|
1
|
+
{
|
2
|
+
"name": "@aws-sdk/credential-provider-http",
|
3
|
+
"version": "3.503.1",
|
4
|
+
"description": "AWS credential provider for containers and HTTP sources",
|
5
|
+
"main": "./dist-cjs/index.js",
|
6
|
+
"module": "./dist-es/index.js",
|
7
|
+
"browser": "./dist-es/index.browser.js",
|
8
|
+
"react-native": "./dist-es/index.browser.js",
|
9
|
+
"scripts": {
|
10
|
+
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
11
|
+
"build:cjs": "node ../../scripts/compilation/inline credential-provider-http",
|
12
|
+
"build:es": "tsc -p tsconfig.es.json",
|
13
|
+
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
14
|
+
"build:types": "tsc -p tsconfig.types.json",
|
15
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
16
|
+
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
17
|
+
"test": "jest"
|
18
|
+
},
|
19
|
+
"keywords": [
|
20
|
+
"aws",
|
21
|
+
"credentials"
|
22
|
+
],
|
23
|
+
"author": {
|
24
|
+
"name": "AWS SDK for JavaScript Team",
|
25
|
+
"url": "https://aws.amazon.com/javascript/"
|
26
|
+
},
|
27
|
+
"license": "Apache-2.0",
|
28
|
+
"dependencies": {
|
29
|
+
"@aws-sdk/types": "3.502.0",
|
30
|
+
"@smithy/fetch-http-handler": "^2.4.1",
|
31
|
+
"@smithy/node-http-handler": "^2.3.1",
|
32
|
+
"@smithy/property-provider": "^2.1.1",
|
33
|
+
"@smithy/protocol-http": "^3.1.1",
|
34
|
+
"@smithy/smithy-client": "^2.3.1",
|
35
|
+
"@smithy/types": "^2.9.1",
|
36
|
+
"@smithy/util-stream": "^2.1.1",
|
37
|
+
"tslib": "^2.5.0"
|
38
|
+
},
|
39
|
+
"devDependencies": {
|
40
|
+
"@tsconfig/recommended": "1.0.1",
|
41
|
+
"@types/node": "^14.14.31",
|
42
|
+
"concurrently": "7.0.0",
|
43
|
+
"downlevel-dts": "0.10.1",
|
44
|
+
"rimraf": "3.0.2",
|
45
|
+
"typescript": "~4.9.5"
|
46
|
+
},
|
47
|
+
"types": "./dist-types/index.d.ts",
|
48
|
+
"engines": {
|
49
|
+
"node": ">=14.0.0"
|
50
|
+
},
|
51
|
+
"typesVersions": {
|
52
|
+
"<4.0": {
|
53
|
+
"dist-types/*": [
|
54
|
+
"dist-types/ts3.4/*"
|
55
|
+
]
|
56
|
+
}
|
57
|
+
},
|
58
|
+
"files": [
|
59
|
+
"dist-*/**"
|
60
|
+
],
|
61
|
+
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/credential-provider-http",
|
62
|
+
"repository": {
|
63
|
+
"type": "git",
|
64
|
+
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
65
|
+
"directory": "packages/credential-provider-http"
|
66
|
+
}
|
67
|
+
}
|
@@ -1,8 +1,13 @@
|
|
1
|
+
var __create = Object.create;
|
1
2
|
var __defProp = Object.defineProperty;
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
7
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
8
|
+
var __esm = (fn, res) => function __init() {
|
9
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
10
|
+
};
|
6
11
|
var __export = (target, all) => {
|
7
12
|
for (var name in all)
|
8
13
|
__defProp(target, name, { get: all[name], enumerable: true });
|
@@ -15,8 +20,28 @@ var __copyProps = (to, from, except, desc) => {
|
|
15
20
|
}
|
16
21
|
return to;
|
17
22
|
};
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
24
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
25
|
+
// file that has been converted to a CommonJS file using a Babel-
|
26
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
27
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
28
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
29
|
+
mod
|
30
|
+
));
|
18
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
32
|
|
33
|
+
// src/loadSts.ts
|
34
|
+
var loadSts_exports = {};
|
35
|
+
__export(loadSts_exports, {
|
36
|
+
getDefaultRoleAssumer: () => import_client_sts.getDefaultRoleAssumer
|
37
|
+
});
|
38
|
+
var import_client_sts;
|
39
|
+
var init_loadSts = __esm({
|
40
|
+
"src/loadSts.ts"() {
|
41
|
+
import_client_sts = require("@aws-sdk/client-sts");
|
42
|
+
}
|
43
|
+
});
|
44
|
+
|
20
45
|
// src/index.ts
|
21
46
|
var src_exports = {};
|
22
47
|
__export(src_exports, {
|
@@ -35,17 +60,15 @@ module.exports = __toCommonJS(src_exports);
|
|
35
60
|
var import_shared_ini_file_loader = require("@smithy/shared-ini-file-loader");
|
36
61
|
|
37
62
|
// src/resolveCredentialSource.ts
|
38
|
-
var import_credential_provider_env = require("@aws-sdk/credential-provider-env");
|
39
|
-
var import_credential_provider_imds = require("@smithy/credential-provider-imds");
|
40
63
|
var import_property_provider = require("@smithy/property-provider");
|
41
64
|
var resolveCredentialSource = /* @__PURE__ */ __name((credentialSource, profileName) => {
|
42
65
|
const sourceProvidersMap = {
|
43
|
-
EcsContainer:
|
44
|
-
Ec2InstanceMetadata:
|
45
|
-
Environment:
|
66
|
+
EcsContainer: (options) => Promise.resolve().then(() => __toESM(require("@smithy/credential-provider-imds"))).then(({ fromContainerMetadata }) => fromContainerMetadata(options)),
|
67
|
+
Ec2InstanceMetadata: (options) => Promise.resolve().then(() => __toESM(require("@smithy/credential-provider-imds"))).then(({ fromInstanceMetadata }) => fromInstanceMetadata(options)),
|
68
|
+
Environment: (options) => Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-env"))).then(({ fromEnv }) => fromEnv(options))
|
46
69
|
};
|
47
70
|
if (credentialSource in sourceProvidersMap) {
|
48
|
-
return sourceProvidersMap[credentialSource]
|
71
|
+
return sourceProvidersMap[credentialSource];
|
49
72
|
} else {
|
50
73
|
throw new import_property_provider.CredentialsProviderError(
|
51
74
|
`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`
|
@@ -58,12 +81,12 @@ var isAssumeRoleProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof
|
|
58
81
|
var isAssumeRoleWithSourceProfile = /* @__PURE__ */ __name((arg) => typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined", "isAssumeRoleWithSourceProfile");
|
59
82
|
var isAssumeRoleWithProviderProfile = /* @__PURE__ */ __name((arg) => typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined", "isAssumeRoleWithProviderProfile");
|
60
83
|
var resolveAssumeRoleCredentials = /* @__PURE__ */ __name(async (profileName, profiles, options, visitedProfiles = {}) => {
|
84
|
+
var _a;
|
85
|
+
(_a = options.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini", "resolveAssumeRoleCredentials (STS)");
|
61
86
|
const data = profiles[profileName];
|
62
87
|
if (!options.roleAssumer) {
|
63
|
-
|
64
|
-
|
65
|
-
false
|
66
|
-
);
|
88
|
+
const { getDefaultRoleAssumer: getDefaultRoleAssumer2 } = await Promise.resolve().then(() => (init_loadSts(), loadSts_exports));
|
89
|
+
options.roleAssumer = getDefaultRoleAssumer2(options.clientConfig, options.clientPlugins);
|
67
90
|
}
|
68
91
|
const { source_profile } = data;
|
69
92
|
if (source_profile && source_profile in visitedProfiles) {
|
@@ -75,7 +98,7 @@ var resolveAssumeRoleCredentials = /* @__PURE__ */ __name(async (profileName, pr
|
|
75
98
|
const sourceCredsProvider = source_profile ? resolveProfileData(source_profile, profiles, options, {
|
76
99
|
...visitedProfiles,
|
77
100
|
[source_profile]: true
|
78
|
-
}) : resolveCredentialSource(data.credential_source, profileName)();
|
101
|
+
}) : (await resolveCredentialSource(data.credential_source, profileName)(options))();
|
79
102
|
const params = {
|
80
103
|
RoleArn: data.role_arn,
|
81
104
|
RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`,
|
@@ -98,57 +121,60 @@ var resolveAssumeRoleCredentials = /* @__PURE__ */ __name(async (profileName, pr
|
|
98
121
|
}, "resolveAssumeRoleCredentials");
|
99
122
|
|
100
123
|
// src/resolveProcessCredentials.ts
|
101
|
-
var import_credential_provider_process = require("@aws-sdk/credential-provider-process");
|
102
124
|
var isProcessProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", "isProcessProfile");
|
103
|
-
var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => (
|
104
|
-
|
105
|
-
|
106
|
-
|
125
|
+
var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-process"))).then(
|
126
|
+
({ fromProcess }) => fromProcess({
|
127
|
+
...options,
|
128
|
+
profile
|
129
|
+
})()
|
130
|
+
), "resolveProcessCredentials");
|
107
131
|
|
108
132
|
// src/resolveSsoCredentials.ts
|
109
|
-
var
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
ssoStartUrl: sso_start_url,
|
115
|
-
ssoAccountId: sso_account_id,
|
116
|
-
ssoSession: sso_session,
|
117
|
-
ssoRegion: sso_region,
|
118
|
-
ssoRoleName: sso_role_name
|
133
|
+
var resolveSsoCredentials = /* @__PURE__ */ __name(async (profile, options = {}) => {
|
134
|
+
const { fromSSO } = await Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-sso")));
|
135
|
+
return fromSSO({
|
136
|
+
profile,
|
137
|
+
logger: options.logger
|
119
138
|
})();
|
120
139
|
}, "resolveSsoCredentials");
|
140
|
+
var isSsoProfile = /* @__PURE__ */ __name((arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string"), "isSsoProfile");
|
121
141
|
|
122
142
|
// src/resolveStaticCredentials.ts
|
123
143
|
var isStaticCredsProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1, "isStaticCredsProfile");
|
124
|
-
var resolveStaticCredentials = /* @__PURE__ */ __name((profile) =>
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
144
|
+
var resolveStaticCredentials = /* @__PURE__ */ __name((profile, options) => {
|
145
|
+
var _a;
|
146
|
+
(_a = options == null ? void 0 : options.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini", "resolveStaticCredentials");
|
147
|
+
return Promise.resolve({
|
148
|
+
accessKeyId: profile.aws_access_key_id,
|
149
|
+
secretAccessKey: profile.aws_secret_access_key,
|
150
|
+
sessionToken: profile.aws_session_token,
|
151
|
+
credentialScope: profile.aws_credential_scope
|
152
|
+
});
|
153
|
+
}, "resolveStaticCredentials");
|
130
154
|
|
131
155
|
// src/resolveWebIdentityCredentials.ts
|
132
|
-
var import_credential_provider_web_identity = require("@aws-sdk/credential-provider-web-identity");
|
133
156
|
var isWebIdentityProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1, "isWebIdentityProfile");
|
134
|
-
var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options) => (
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
157
|
+
var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options) => Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-web-identity"))).then(
|
158
|
+
({ fromTokenFile }) => fromTokenFile({
|
159
|
+
webIdentityTokenFile: profile.web_identity_token_file,
|
160
|
+
roleArn: profile.role_arn,
|
161
|
+
roleSessionName: profile.role_session_name,
|
162
|
+
roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
|
163
|
+
logger: options.logger
|
164
|
+
})()
|
165
|
+
), "resolveWebIdentityCredentials");
|
140
166
|
|
141
167
|
// src/resolveProfileData.ts
|
142
168
|
var resolveProfileData = /* @__PURE__ */ __name(async (profileName, profiles, options, visitedProfiles = {}) => {
|
143
169
|
const data = profiles[profileName];
|
144
170
|
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
|
145
|
-
return resolveStaticCredentials(data);
|
171
|
+
return resolveStaticCredentials(data, options);
|
146
172
|
}
|
147
173
|
if (isAssumeRoleProfile(data)) {
|
148
174
|
return resolveAssumeRoleCredentials(profileName, profiles, options, visitedProfiles);
|
149
175
|
}
|
150
176
|
if (isStaticCredsProfile(data)) {
|
151
|
-
return resolveStaticCredentials(data);
|
177
|
+
return resolveStaticCredentials(data, options);
|
152
178
|
}
|
153
179
|
if (isWebIdentityProfile(data)) {
|
154
180
|
return resolveWebIdentityCredentials(data, options);
|
@@ -156,14 +182,16 @@ var resolveProfileData = /* @__PURE__ */ __name(async (profileName, profiles, op
|
|
156
182
|
if (isProcessProfile(data)) {
|
157
183
|
return resolveProcessCredentials(options, profileName);
|
158
184
|
}
|
159
|
-
if (
|
160
|
-
return resolveSsoCredentials(
|
185
|
+
if (isSsoProfile(data)) {
|
186
|
+
return await resolveSsoCredentials(profileName, options);
|
161
187
|
}
|
162
188
|
throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} could not be found or parsed in shared credentials file.`);
|
163
189
|
}, "resolveProfileData");
|
164
190
|
|
165
191
|
// src/fromIni.ts
|
166
192
|
var fromIni = /* @__PURE__ */ __name((init = {}) => async () => {
|
193
|
+
var _a;
|
194
|
+
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini", "fromIni");
|
167
195
|
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
|
168
196
|
return resolveProfileData((0, import_shared_ini_file_loader.getProfileName)(init), profiles, init);
|
169
197
|
}, "fromIni");
|
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = require("./index.js");
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { getProfileName, parseKnownFiles } from "@smithy/shared-ini-file-loader";
|
2
2
|
import { resolveProfileData } from "./resolveProfileData";
|
3
3
|
export const fromIni = (init = {}) => async () => {
|
4
|
+
init.logger?.debug("@aws-sdk/credential-provider-ini", "fromIni");
|
4
5
|
const profiles = await parseKnownFiles(init);
|
5
6
|
return resolveProfileData(getProfileName(init), profiles, init);
|
6
7
|
};
|
package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
CHANGED
@@ -12,9 +12,11 @@ export const isAssumeRoleProfile = (arg) => Boolean(arg) &&
|
|
12
12
|
const isAssumeRoleWithSourceProfile = (arg) => typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined";
|
13
13
|
const isAssumeRoleWithProviderProfile = (arg) => typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined";
|
14
14
|
export const resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => {
|
15
|
+
options.logger?.debug("@aws-sdk/credential-provider-ini", "resolveAssumeRoleCredentials (STS)");
|
15
16
|
const data = profiles[profileName];
|
16
17
|
if (!options.roleAssumer) {
|
17
|
-
|
18
|
+
const { getDefaultRoleAssumer } = await import("./loadSts");
|
19
|
+
options.roleAssumer = getDefaultRoleAssumer(options.clientConfig, options.clientPlugins);
|
18
20
|
}
|
19
21
|
const { source_profile } = data;
|
20
22
|
if (source_profile && source_profile in visitedProfiles) {
|
@@ -27,7 +29,7 @@ export const resolveAssumeRoleCredentials = async (profileName, profiles, option
|
|
27
29
|
...visitedProfiles,
|
28
30
|
[source_profile]: true,
|
29
31
|
})
|
30
|
-
: resolveCredentialSource(data.credential_source, profileName)();
|
32
|
+
: (await resolveCredentialSource(data.credential_source, profileName)(options))();
|
31
33
|
const params = {
|
32
34
|
RoleArn: data.role_arn,
|
33
35
|
RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`,
|