@cdklabs/cdk-ecs-codedeploy 0.0.240 → 0.0.242
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/.jsii.tabl.json +1 -1
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.d.ts +6 -2
- package/node_modules/@aws-sdk/client-codedeploy/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 +6 -6
- 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
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { fromEnv } from "@aws-sdk/credential-provider-env";
|
|
2
|
-
import { fromContainerMetadata, fromInstanceMetadata } from "@smithy/credential-provider-imds";
|
|
3
1
|
import { CredentialsProviderError } from "@smithy/property-provider";
|
|
4
2
|
export const resolveCredentialSource = (credentialSource, profileName) => {
|
|
5
3
|
const sourceProvidersMap = {
|
|
6
|
-
EcsContainer: fromContainerMetadata,
|
|
7
|
-
Ec2InstanceMetadata: fromInstanceMetadata,
|
|
8
|
-
Environment: fromEnv,
|
|
4
|
+
EcsContainer: (options) => import("@smithy/credential-provider-imds").then(({ fromContainerMetadata }) => fromContainerMetadata(options)),
|
|
5
|
+
Ec2InstanceMetadata: (options) => import("@smithy/credential-provider-imds").then(({ fromInstanceMetadata }) => fromInstanceMetadata(options)),
|
|
6
|
+
Environment: (options) => import("@aws-sdk/credential-provider-env").then(({ fromEnv }) => fromEnv(options)),
|
|
9
7
|
};
|
|
10
8
|
if (credentialSource in sourceProvidersMap) {
|
|
11
|
-
return sourceProvidersMap[credentialSource]
|
|
9
|
+
return sourceProvidersMap[credentialSource];
|
|
12
10
|
}
|
|
13
11
|
else {
|
|
14
12
|
throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, ` +
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { fromProcess } from "@aws-sdk/credential-provider-process";
|
|
2
1
|
export const isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
|
|
3
|
-
export const resolveProcessCredentials = async (options, profile) => fromProcess({
|
|
2
|
+
export const resolveProcessCredentials = async (options, profile) => import("@aws-sdk/credential-provider-process").then(({ fromProcess }) => fromProcess({
|
|
4
3
|
...options,
|
|
5
4
|
profile,
|
|
6
|
-
})();
|
|
5
|
+
})());
|
|
@@ -7,13 +7,13 @@ import { isWebIdentityProfile, resolveWebIdentityCredentials } from "./resolveWe
|
|
|
7
7
|
export const resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}) => {
|
|
8
8
|
const data = profiles[profileName];
|
|
9
9
|
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
|
|
10
|
-
return resolveStaticCredentials(data);
|
|
10
|
+
return resolveStaticCredentials(data, options);
|
|
11
11
|
}
|
|
12
12
|
if (isAssumeRoleProfile(data)) {
|
|
13
13
|
return resolveAssumeRoleCredentials(profileName, profiles, options, visitedProfiles);
|
|
14
14
|
}
|
|
15
15
|
if (isStaticCredsProfile(data)) {
|
|
16
|
-
return resolveStaticCredentials(data);
|
|
16
|
+
return resolveStaticCredentials(data, options);
|
|
17
17
|
}
|
|
18
18
|
if (isWebIdentityProfile(data)) {
|
|
19
19
|
return resolveWebIdentityCredentials(data, options);
|
|
@@ -22,7 +22,7 @@ export const resolveProfileData = async (profileName, profiles, options, visited
|
|
|
22
22
|
return resolveProcessCredentials(options, profileName);
|
|
23
23
|
}
|
|
24
24
|
if (isSsoProfile(data)) {
|
|
25
|
-
return resolveSsoCredentials(
|
|
25
|
+
return await resolveSsoCredentials(profileName, options);
|
|
26
26
|
}
|
|
27
27
|
throw new CredentialsProviderError(`Profile ${profileName} could not be found or parsed in shared credentials file.`);
|
|
28
28
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export const resolveSsoCredentials = (data) => {
|
|
4
|
-
const { sso_start_url, sso_account_id, sso_session, sso_region, sso_role_name } = validateSsoProfile(data);
|
|
1
|
+
export const resolveSsoCredentials = async (profile, options = {}) => {
|
|
2
|
+
const { fromSSO } = await import("@aws-sdk/credential-provider-sso");
|
|
5
3
|
return fromSSO({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
ssoSession: sso_session,
|
|
9
|
-
ssoRegion: sso_region,
|
|
10
|
-
ssoRoleName: sso_role_name,
|
|
4
|
+
profile,
|
|
5
|
+
logger: options.logger,
|
|
11
6
|
})();
|
|
12
7
|
};
|
|
8
|
+
export const isSsoProfile = (arg) => arg &&
|
|
9
|
+
(typeof arg.sso_start_url === "string" ||
|
|
10
|
+
typeof arg.sso_account_id === "string" ||
|
|
11
|
+
typeof arg.sso_session === "string" ||
|
|
12
|
+
typeof arg.sso_region === "string" ||
|
|
13
|
+
typeof arg.sso_role_name === "string");
|
|
@@ -3,9 +3,12 @@ export const isStaticCredsProfile = (arg) => Boolean(arg) &&
|
|
|
3
3
|
typeof arg.aws_access_key_id === "string" &&
|
|
4
4
|
typeof arg.aws_secret_access_key === "string" &&
|
|
5
5
|
["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1;
|
|
6
|
-
export const resolveStaticCredentials = (profile) =>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
export const resolveStaticCredentials = (profile, options) => {
|
|
7
|
+
options?.logger?.debug("@aws-sdk/credential-provider-ini", "resolveStaticCredentials");
|
|
8
|
+
return Promise.resolve({
|
|
9
|
+
accessKeyId: profile.aws_access_key_id,
|
|
10
|
+
secretAccessKey: profile.aws_secret_access_key,
|
|
11
|
+
sessionToken: profile.aws_session_token,
|
|
12
|
+
credentialScope: profile.aws_credential_scope,
|
|
13
|
+
});
|
|
14
|
+
};
|
package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { fromTokenFile } from "@aws-sdk/credential-provider-web-identity";
|
|
2
1
|
export const isWebIdentityProfile = (arg) => Boolean(arg) &&
|
|
3
2
|
typeof arg === "object" &&
|
|
4
3
|
typeof arg.web_identity_token_file === "string" &&
|
|
5
4
|
typeof arg.role_arn === "string" &&
|
|
6
5
|
["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
|
|
7
|
-
export const resolveWebIdentityCredentials = async (profile, options) => fromTokenFile({
|
|
6
|
+
export const resolveWebIdentityCredentials = async (profile, options) => import("@aws-sdk/credential-provider-web-identity").then(({ fromTokenFile }) => fromTokenFile({
|
|
8
7
|
webIdentityTokenFile: profile.web_identity_token_file,
|
|
9
8
|
roleArn: profile.role_arn,
|
|
10
9
|
roleSessionName: profile.role_session_name,
|
|
11
10
|
roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
|
|
12
|
-
|
|
11
|
+
logger: options.logger,
|
|
12
|
+
})());
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { AssumeRoleWithWebIdentityParams } from "@aws-sdk/credential-provider-web-identity";
|
|
1
|
+
import type { AssumeRoleWithWebIdentityParams } from "@aws-sdk/credential-provider-web-identity";
|
|
2
|
+
import type { CredentialProviderOptions } from "@aws-sdk/types";
|
|
2
3
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
3
|
-
import { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types";
|
|
4
|
+
import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, Pluggable } from "@smithy/types";
|
|
5
|
+
import type { STSClientConfig } from "./loadSts";
|
|
4
6
|
import { AssumeRoleParams } from "./resolveAssumeRoleCredentials";
|
|
5
7
|
/**
|
|
6
|
-
* @
|
|
8
|
+
* @public
|
|
7
9
|
*/
|
|
8
|
-
export interface FromIniInit extends SourceProfileInit {
|
|
10
|
+
export interface FromIniInit extends SourceProfileInit, CredentialProviderOptions {
|
|
9
11
|
/**
|
|
10
12
|
* A function that returns a promise fulfilled with an MFA token code for
|
|
11
13
|
* the provided MFA Serial code. If a profile requires an MFA code and
|
|
@@ -31,6 +33,8 @@ export interface FromIniInit extends SourceProfileInit {
|
|
|
31
33
|
* @param params
|
|
32
34
|
*/
|
|
33
35
|
roleAssumerWithWebIdentity?: (params: AssumeRoleWithWebIdentityParams) => Promise<AwsCredentialIdentity>;
|
|
36
|
+
clientConfig?: STSClientConfig;
|
|
37
|
+
clientPlugins?: Pluggable<any, any>[];
|
|
34
38
|
}
|
|
35
39
|
/**
|
|
36
40
|
* @internal
|
package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ParsedIniData } from "@smithy/types";
|
|
1
|
+
import { AwsCredentialIdentity, ParsedIniData } from "@smithy/types";
|
|
2
2
|
import { FromIniInit } from "./fromIni";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
@@ -41,4 +41,4 @@ export declare const isAssumeRoleProfile: (arg: any) => boolean;
|
|
|
41
41
|
/**
|
|
42
42
|
* @internal
|
|
43
43
|
*/
|
|
44
|
-
export declare const resolveAssumeRoleCredentials: (profileName: string, profiles: ParsedIniData, options: FromIniInit, visitedProfiles?: Record<string, true>) => Promise<
|
|
44
|
+
export declare const resolveAssumeRoleCredentials: (profileName: string, profiles: ParsedIniData, options: FromIniInit, visitedProfiles?: Record<string, true>) => Promise<AwsCredentialIdentity>;
|
package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveCredentialSource.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CredentialProviderOptions } from "@aws-sdk/types";
|
|
1
2
|
import { AwsCredentialIdentityProvider } from "@smithy/types";
|
|
2
3
|
/**
|
|
3
4
|
* @internal
|
|
@@ -8,4 +9,4 @@ import { AwsCredentialIdentityProvider } from "@smithy/types";
|
|
|
8
9
|
* fromIni() provider. The source credential needs to be refreshed every time
|
|
9
10
|
* fromIni() is called.
|
|
10
11
|
*/
|
|
11
|
-
export declare const resolveCredentialSource: (credentialSource: string, profileName: string) => AwsCredentialIdentityProvider
|
|
12
|
+
export declare const resolveCredentialSource: (credentialSource: string, profileName: string) => (options?: CredentialProviderOptions) => Promise<AwsCredentialIdentityProvider>;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { SsoProfile } from "@aws-sdk/credential-provider-sso";
|
|
1
|
+
import type { SsoProfile } from "@aws-sdk/credential-provider-sso";
|
|
2
|
+
import type { CredentialProviderOptions } from "@aws-sdk/types";
|
|
3
|
+
import type { Profile } from "@smithy/types";
|
|
2
4
|
/**
|
|
3
5
|
* @internal
|
|
4
6
|
*/
|
|
5
|
-
export
|
|
7
|
+
export declare const resolveSsoCredentials: (profile: string, options?: CredentialProviderOptions) => Promise<import("@aws-sdk/types").AwsCredentialIdentity>;
|
|
6
8
|
/**
|
|
7
9
|
* @internal
|
|
10
|
+
* duplicated from \@aws-sdk/credential-provider-sso to defer import.
|
|
8
11
|
*/
|
|
9
|
-
export declare const
|
|
12
|
+
export declare const isSsoProfile: (arg: Profile) => arg is Partial<SsoProfile>;
|
package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveStaticCredentials.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsCredentialIdentity, Profile } from "@smithy/types";
|
|
2
|
+
import { FromIniInit } from "./fromIni";
|
|
2
3
|
/**
|
|
3
4
|
* @internal
|
|
4
5
|
*/
|
|
@@ -15,4 +16,4 @@ export declare const isStaticCredsProfile: (arg: any) => arg is StaticCredsProfi
|
|
|
15
16
|
/**
|
|
16
17
|
* @internal
|
|
17
18
|
*/
|
|
18
|
-
export declare const resolveStaticCredentials: (profile: StaticCredsProfile) => Promise<AwsCredentialIdentity>;
|
|
19
|
+
export declare const resolveStaticCredentials: (profile: StaticCredsProfile, options?: FromIniInit) => Promise<AwsCredentialIdentity>;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { AssumeRoleWithWebIdentityParams } from "@aws-sdk/credential-provider-web-identity";
|
|
2
|
+
import { CredentialProviderOptions } from "@aws-sdk/types";
|
|
2
3
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
3
4
|
import {
|
|
4
5
|
AwsCredentialIdentity,
|
|
5
6
|
AwsCredentialIdentityProvider,
|
|
7
|
+
Pluggable,
|
|
6
8
|
} from "@smithy/types";
|
|
9
|
+
import { STSClientConfig } from "./loadSts";
|
|
7
10
|
import { AssumeRoleParams } from "./resolveAssumeRoleCredentials";
|
|
8
|
-
export interface FromIniInit
|
|
11
|
+
export interface FromIniInit
|
|
12
|
+
extends SourceProfileInit,
|
|
13
|
+
CredentialProviderOptions {
|
|
9
14
|
mfaCodeProvider?: (mfaSerial: string) => Promise<string>;
|
|
10
15
|
roleAssumer?: (
|
|
11
16
|
sourceCreds: AwsCredentialIdentity,
|
|
@@ -14,6 +19,8 @@ export interface FromIniInit extends SourceProfileInit {
|
|
|
14
19
|
roleAssumerWithWebIdentity?: (
|
|
15
20
|
params: AssumeRoleWithWebIdentityParams
|
|
16
21
|
) => Promise<AwsCredentialIdentity>;
|
|
22
|
+
clientConfig?: STSClientConfig;
|
|
23
|
+
clientPlugins?: Pluggable<any, any>[];
|
|
17
24
|
}
|
|
18
25
|
export declare const fromIni: (
|
|
19
26
|
init?: FromIniInit
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ParsedIniData } from "@smithy/types";
|
|
1
|
+
import { AwsCredentialIdentity, ParsedIniData } from "@smithy/types";
|
|
2
2
|
import { FromIniInit } from "./fromIni";
|
|
3
3
|
export interface AssumeRoleParams {
|
|
4
4
|
RoleArn: string;
|
|
@@ -14,4 +14,4 @@ export declare const resolveAssumeRoleCredentials: (
|
|
|
14
14
|
profiles: ParsedIniData,
|
|
15
15
|
options: FromIniInit,
|
|
16
16
|
visitedProfiles?: Record<string, true>
|
|
17
|
-
) => Promise<
|
|
17
|
+
) => Promise<AwsCredentialIdentity>;
|
package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveCredentialSource.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { CredentialProviderOptions } from "@aws-sdk/types";
|
|
1
2
|
import { AwsCredentialIdentityProvider } from "@smithy/types";
|
|
2
3
|
export declare const resolveCredentialSource: (
|
|
3
4
|
credentialSource: string,
|
|
4
5
|
profileName: string
|
|
5
|
-
) =>
|
|
6
|
+
) => (
|
|
7
|
+
options?: CredentialProviderOptions
|
|
8
|
+
) => Promise<AwsCredentialIdentityProvider>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Credentials } from "@aws-sdk/types";
|
|
2
|
-
import { Profile } from "@smithy/types";
|
|
1
|
+
import { Credentials, Profile } from "@aws-sdk/types";
|
|
3
2
|
import { FromIniInit } from "./fromIni";
|
|
4
3
|
export interface ProcessProfile extends Profile {
|
|
5
4
|
credential_process: string;
|
package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveSsoCredentials.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { SsoProfile } from "@aws-sdk/credential-provider-sso";
|
|
2
|
-
|
|
2
|
+
import { CredentialProviderOptions } from "@aws-sdk/types";
|
|
3
|
+
import { Profile } from "@smithy/types";
|
|
3
4
|
export declare const resolveSsoCredentials: (
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
profile: string,
|
|
6
|
+
options?: CredentialProviderOptions
|
|
7
|
+
) => Promise<import("@aws-sdk/types").AwsCredentialIdentity>;
|
|
8
|
+
export declare const isSsoProfile: (arg: Profile) => arg is Partial<SsoProfile>;
|
package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveStaticCredentials.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsCredentialIdentity, Profile } from "@smithy/types";
|
|
2
|
+
import { FromIniInit } from "./fromIni";
|
|
2
3
|
export interface StaticCredsProfile extends Profile {
|
|
3
4
|
aws_access_key_id: string;
|
|
4
5
|
aws_secret_access_key: string;
|
|
@@ -9,5 +10,6 @@ export declare const isStaticCredsProfile: (
|
|
|
9
10
|
arg: any
|
|
10
11
|
) => arg is StaticCredsProfile;
|
|
11
12
|
export declare const resolveStaticCredentials: (
|
|
12
|
-
profile: StaticCredsProfile
|
|
13
|
+
profile: StaticCredsProfile,
|
|
14
|
+
options?: FromIniInit
|
|
13
15
|
) => Promise<AwsCredentialIdentity>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-ini",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.503.1",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -24,11 +24,12 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/
|
|
28
|
-
"@aws-sdk/credential-provider-
|
|
29
|
-
"@aws-sdk/credential-provider-
|
|
30
|
-
"@aws-sdk/credential-provider-
|
|
31
|
-
"@aws-sdk/
|
|
27
|
+
"@aws-sdk/client-sts": "3.502.0",
|
|
28
|
+
"@aws-sdk/credential-provider-env": "3.502.0",
|
|
29
|
+
"@aws-sdk/credential-provider-process": "3.502.0",
|
|
30
|
+
"@aws-sdk/credential-provider-sso": "3.503.1",
|
|
31
|
+
"@aws-sdk/credential-provider-web-identity": "3.502.0",
|
|
32
|
+
"@aws-sdk/types": "3.502.0",
|
|
32
33
|
"@smithy/credential-provider-imds": "^2.2.1",
|
|
33
34
|
"@smithy/property-provider": "^2.1.1",
|
|
34
35
|
"@smithy/shared-ini-file-loader": "^2.3.1",
|
|
@@ -44,15 +44,19 @@ var import_shared_ini_file_loader = require("@smithy/shared-ini-file-loader");
|
|
|
44
44
|
var import_property_provider = require("@smithy/property-provider");
|
|
45
45
|
var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
|
|
46
46
|
var remoteProvider = /* @__PURE__ */ __name(async (init) => {
|
|
47
|
+
var _a, _b;
|
|
47
48
|
const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await Promise.resolve().then(() => __toESM(require("@smithy/credential-provider-imds")));
|
|
48
49
|
if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) {
|
|
49
|
-
|
|
50
|
+
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "remoteProvider::fromHttp/fromContainerMetadata");
|
|
51
|
+
const { fromHttp } = await Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-http")));
|
|
52
|
+
return (0, import_property_provider.chain)(fromHttp(init), fromContainerMetadata(init));
|
|
50
53
|
}
|
|
51
54
|
if (process.env[ENV_IMDS_DISABLED]) {
|
|
52
55
|
return async () => {
|
|
53
56
|
throw new import_property_provider.CredentialsProviderError("EC2 Instance Metadata Service access disabled");
|
|
54
57
|
};
|
|
55
58
|
}
|
|
59
|
+
(_b = init.logger) == null ? void 0 : _b.debug("@aws-sdk/credential-provider-node", "remoteProvider::fromInstanceMetadata");
|
|
56
60
|
return fromInstanceMetadata(init);
|
|
57
61
|
}, "remoteProvider");
|
|
58
62
|
|
|
@@ -61,27 +65,45 @@ var defaultProvider = /* @__PURE__ */ __name((init = {}) => (0, import_property_
|
|
|
61
65
|
(0, import_property_provider.chain)(
|
|
62
66
|
...init.profile || process.env[import_shared_ini_file_loader.ENV_PROFILE] ? [] : [
|
|
63
67
|
async () => {
|
|
68
|
+
var _a;
|
|
69
|
+
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromEnv");
|
|
64
70
|
const { fromEnv } = await Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-env")));
|
|
65
|
-
return fromEnv()();
|
|
71
|
+
return fromEnv(init)();
|
|
66
72
|
}
|
|
67
73
|
],
|
|
68
74
|
async () => {
|
|
75
|
+
var _a;
|
|
76
|
+
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromSSO");
|
|
77
|
+
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
78
|
+
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
79
|
+
throw new import_property_provider.CredentialsProviderError(
|
|
80
|
+
"Skipping SSO provider in default chain (inputs do not include SSO fields)."
|
|
81
|
+
);
|
|
82
|
+
}
|
|
69
83
|
const { fromSSO } = await Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-sso")));
|
|
70
84
|
return fromSSO(init)();
|
|
71
85
|
},
|
|
72
86
|
async () => {
|
|
87
|
+
var _a;
|
|
88
|
+
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromIni");
|
|
73
89
|
const { fromIni } = await Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-ini")));
|
|
74
90
|
return fromIni(init)();
|
|
75
91
|
},
|
|
76
92
|
async () => {
|
|
93
|
+
var _a;
|
|
94
|
+
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromProcess");
|
|
77
95
|
const { fromProcess } = await Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-process")));
|
|
78
96
|
return fromProcess(init)();
|
|
79
97
|
},
|
|
80
98
|
async () => {
|
|
99
|
+
var _a;
|
|
100
|
+
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromTokenFile");
|
|
81
101
|
const { fromTokenFile } = await Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-web-identity")));
|
|
82
102
|
return fromTokenFile(init)();
|
|
83
103
|
},
|
|
84
104
|
async () => {
|
|
105
|
+
var _a;
|
|
106
|
+
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::remoteProvider");
|
|
85
107
|
return (await remoteProvider(init))();
|
|
86
108
|
},
|
|
87
109
|
async () => {
|
|
@@ -5,22 +5,32 @@ export const defaultProvider = (init = {}) => memoize(chain(...(init.profile ||
|
|
|
5
5
|
? []
|
|
6
6
|
: [
|
|
7
7
|
async () => {
|
|
8
|
+
init.logger?.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromEnv");
|
|
8
9
|
const { fromEnv } = await import("@aws-sdk/credential-provider-env");
|
|
9
|
-
return fromEnv()();
|
|
10
|
+
return fromEnv(init)();
|
|
10
11
|
},
|
|
11
12
|
]), async () => {
|
|
13
|
+
init.logger?.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromSSO");
|
|
14
|
+
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
15
|
+
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
16
|
+
throw new CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).");
|
|
17
|
+
}
|
|
12
18
|
const { fromSSO } = await import("@aws-sdk/credential-provider-sso");
|
|
13
19
|
return fromSSO(init)();
|
|
14
20
|
}, async () => {
|
|
21
|
+
init.logger?.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromIni");
|
|
15
22
|
const { fromIni } = await import("@aws-sdk/credential-provider-ini");
|
|
16
23
|
return fromIni(init)();
|
|
17
24
|
}, async () => {
|
|
25
|
+
init.logger?.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromProcess");
|
|
18
26
|
const { fromProcess } = await import("@aws-sdk/credential-provider-process");
|
|
19
27
|
return fromProcess(init)();
|
|
20
28
|
}, async () => {
|
|
29
|
+
init.logger?.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromTokenFile");
|
|
21
30
|
const { fromTokenFile } = await import("@aws-sdk/credential-provider-web-identity");
|
|
22
31
|
return fromTokenFile(init)();
|
|
23
32
|
}, async () => {
|
|
33
|
+
init.logger?.debug("@aws-sdk/credential-provider-node", "defaultProvider::remoteProvider");
|
|
24
34
|
return (await remoteProvider(init))();
|
|
25
35
|
}, async () => {
|
|
26
36
|
throw new CredentialsProviderError("Could not load credentials from any providers", false);
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { CredentialsProviderError } from "@smithy/property-provider";
|
|
1
|
+
import { chain, CredentialsProviderError } from "@smithy/property-provider";
|
|
2
2
|
export const ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
|
|
3
3
|
export const remoteProvider = async (init) => {
|
|
4
4
|
const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await import("@smithy/credential-provider-imds");
|
|
5
5
|
if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) {
|
|
6
|
-
|
|
6
|
+
init.logger?.debug("@aws-sdk/credential-provider-node", "remoteProvider::fromHttp/fromContainerMetadata");
|
|
7
|
+
const { fromHttp } = await import("@aws-sdk/credential-provider-http");
|
|
8
|
+
return chain(fromHttp(init), fromContainerMetadata(init));
|
|
7
9
|
}
|
|
8
10
|
if (process.env[ENV_IMDS_DISABLED]) {
|
|
9
11
|
return async () => {
|
|
10
12
|
throw new CredentialsProviderError("EC2 Instance Metadata Service access disabled");
|
|
11
13
|
};
|
|
12
14
|
}
|
|
15
|
+
init.logger?.debug("@aws-sdk/credential-provider-node", "remoteProvider::fromInstanceMetadata");
|
|
13
16
|
return fromInstanceMetadata(init);
|
|
14
17
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type { FromIniInit } from "@aws-sdk/credential-provider-ini";
|
|
2
2
|
import type { FromProcessInit } from "@aws-sdk/credential-provider-process";
|
|
3
|
-
import type { FromSSOInit } from "@aws-sdk/credential-provider-sso";
|
|
3
|
+
import type { FromSSOInit, SsoCredentialsParameters } from "@aws-sdk/credential-provider-sso";
|
|
4
4
|
import type { FromTokenFileInit } from "@aws-sdk/credential-provider-web-identity";
|
|
5
5
|
import type { RemoteProviderInit } from "@smithy/credential-provider-imds";
|
|
6
6
|
import { AwsCredentialIdentity, MemoizedProvider } from "@smithy/types";
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export type DefaultProviderInit = FromIniInit & RemoteProviderInit & FromProcessInit & (FromSSOInit & Partial<SsoCredentialsParameters>) & FromTokenFileInit;
|
|
8
11
|
/**
|
|
9
12
|
* Creates a credential provider that will attempt to find credentials from the
|
|
10
13
|
* following sources (listed in order of precedence):
|
|
@@ -24,20 +27,20 @@ export type DefaultProviderInit = FromIniInit & RemoteProviderInit & FromProcess
|
|
|
24
27
|
* @param init Configuration that is passed to each individual
|
|
25
28
|
* provider
|
|
26
29
|
*
|
|
27
|
-
* @see {@link fromEnv}
|
|
28
|
-
* environment variables
|
|
29
|
-
* @see {@link fromSSO}
|
|
30
|
-
* resolved SSO token cache
|
|
31
|
-
* @see {@link fromTokenFile}
|
|
32
|
-
* token file
|
|
33
|
-
* @see {@link fromIni}
|
|
34
|
-
* files
|
|
35
|
-
* @see {@link fromProcess}
|
|
36
|
-
* credential_process in INI files
|
|
30
|
+
* @see {@link fromEnv} The function used to source credentials from
|
|
31
|
+
* environment variables.
|
|
32
|
+
* @see {@link fromSSO} The function used to source credentials from
|
|
33
|
+
* resolved SSO token cache.
|
|
34
|
+
* @see {@link fromTokenFile} The function used to source credentials from
|
|
35
|
+
* token file.
|
|
36
|
+
* @see {@link fromIni} The function used to source credentials from INI
|
|
37
|
+
* files.
|
|
38
|
+
* @see {@link fromProcess} The function used to sources credentials from
|
|
39
|
+
* credential_process in INI files.
|
|
37
40
|
* @see {@link fromInstanceMetadata} The function used to source credentials from the
|
|
38
|
-
*
|
|
41
|
+
* EC2 Instance Metadata Service.
|
|
39
42
|
* @see {@link fromContainerMetadata} The function used to source credentials from the
|
|
40
|
-
*
|
|
43
|
+
* ECS Container Metadata Service.
|
|
41
44
|
*/
|
|
42
45
|
export declare const defaultProvider: (init?: DefaultProviderInit) => MemoizedProvider<AwsCredentialIdentity>;
|
|
43
46
|
/**
|
package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/defaultProvider.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { FromIniInit } from "@aws-sdk/credential-provider-ini";
|
|
2
2
|
import { FromProcessInit } from "@aws-sdk/credential-provider-process";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
FromSSOInit,
|
|
5
|
+
SsoCredentialsParameters,
|
|
6
|
+
} from "@aws-sdk/credential-provider-sso";
|
|
4
7
|
import { FromTokenFileInit } from "@aws-sdk/credential-provider-web-identity";
|
|
5
8
|
import { RemoteProviderInit } from "@smithy/credential-provider-imds";
|
|
6
9
|
import { AwsCredentialIdentity, MemoizedProvider } from "@smithy/types";
|
|
7
10
|
export type DefaultProviderInit = FromIniInit &
|
|
8
11
|
RemoteProviderInit &
|
|
9
12
|
FromProcessInit &
|
|
10
|
-
FromSSOInit &
|
|
13
|
+
(FromSSOInit & Partial<SsoCredentialsParameters>) &
|
|
11
14
|
FromTokenFileInit;
|
|
12
15
|
export declare const defaultProvider: (
|
|
13
16
|
init?: DefaultProviderInit
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.503.1",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from a Node.JS environment. ",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=14.0.0"
|
|
@@ -27,12 +27,13 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@aws-sdk/credential-provider-env": "3.
|
|
31
|
-
"@aws-sdk/credential-provider-
|
|
32
|
-
"@aws-sdk/credential-provider-
|
|
33
|
-
"@aws-sdk/credential-provider-
|
|
34
|
-
"@aws-sdk/credential-provider-
|
|
35
|
-
"@aws-sdk/
|
|
30
|
+
"@aws-sdk/credential-provider-env": "3.502.0",
|
|
31
|
+
"@aws-sdk/credential-provider-http": "3.503.1",
|
|
32
|
+
"@aws-sdk/credential-provider-ini": "3.503.1",
|
|
33
|
+
"@aws-sdk/credential-provider-process": "3.502.0",
|
|
34
|
+
"@aws-sdk/credential-provider-sso": "3.503.1",
|
|
35
|
+
"@aws-sdk/credential-provider-web-identity": "3.502.0",
|
|
36
|
+
"@aws-sdk/types": "3.502.0",
|
|
36
37
|
"@smithy/credential-provider-imds": "^2.2.1",
|
|
37
38
|
"@smithy/property-provider": "^2.1.1",
|
|
38
39
|
"@smithy/shared-ini-file-loader": "^2.3.1",
|
|
@@ -85,6 +85,8 @@ var resolveProcessCredentials = /* @__PURE__ */ __name(async (profileName, profi
|
|
|
85
85
|
|
|
86
86
|
// src/fromProcess.ts
|
|
87
87
|
var fromProcess = /* @__PURE__ */ __name((init = {}) => async () => {
|
|
88
|
+
var _a;
|
|
89
|
+
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-process", "fromProcess");
|
|
88
90
|
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
|
|
89
91
|
return resolveProcessCredentials((0, import_shared_ini_file_loader.getProfileName)(init), profiles);
|
|
90
92
|
}, "fromProcess");
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getProfileName, parseKnownFiles } from "@smithy/shared-ini-file-loader";
|
|
2
2
|
import { resolveProcessCredentials } from "./resolveProcessCredentials";
|
|
3
3
|
export const fromProcess = (init = {}) => async () => {
|
|
4
|
+
init.logger?.debug("@aws-sdk/credential-provider-process", "fromProcess");
|
|
4
5
|
const profiles = await parseKnownFiles(init);
|
|
5
6
|
return resolveProcessCredentials(getProfileName(init), profiles);
|
|
6
7
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { CredentialProviderOptions } from "@aws-sdk/types";
|
|
1
2
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
2
3
|
import { AwsCredentialIdentityProvider } from "@smithy/types";
|
|
3
4
|
/**
|
|
4
5
|
* @internal
|
|
5
6
|
*/
|
|
6
|
-
export interface FromProcessInit extends SourceProfileInit {
|
|
7
|
+
export interface FromProcessInit extends SourceProfileInit, CredentialProviderOptions {
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
10
|
* @internal
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { CredentialProviderOptions } from "@aws-sdk/types";
|
|
1
2
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
2
3
|
import { AwsCredentialIdentityProvider } from "@smithy/types";
|
|
3
|
-
export interface FromProcessInit
|
|
4
|
+
export interface FromProcessInit
|
|
5
|
+
extends SourceProfileInit,
|
|
6
|
+
CredentialProviderOptions {}
|
|
4
7
|
export declare const fromProcess: (
|
|
5
8
|
init?: FromProcessInit
|
|
6
9
|
) => AwsCredentialIdentityProvider;
|