@cdk8s/awscdk-resolver 0.0.54 → 0.0.55
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/dist-cjs/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +1 -2
- 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/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-ini/dist-cjs/index.js +69 -38
- 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 +8 -3
- 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 +2 -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 +5 -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 +2 -1
- 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 +22 -1
- 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 +2 -0
- 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/ts3.4/defaultProvider.d.ts +5 -2
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -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 +28 -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 +7 -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 +2 -3
- 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/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/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 +3 -3
- package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-browser.js +0 -1032
- package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js +0 -1038
- package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-browser.js +0 -1010
- package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-node.js +0 -1017
- package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-browser.d.ts +0 -191
- package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-node.d.ts +0 -191
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-browser.d.ts +0 -235
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-node.d.ts +0 -235
@@ -3,9 +3,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,11 @@
|
|
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
|
+
})());
|
@@ -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,11 @@
|
|
1
|
-
import { SsoProfile } from "@aws-sdk/credential-provider-sso";
|
1
|
+
import type { SsoProfile } from "@aws-sdk/credential-provider-sso";
|
2
|
+
import type { Profile } from "@smithy/types";
|
2
3
|
/**
|
3
4
|
* @internal
|
4
5
|
*/
|
5
|
-
export
|
6
|
+
export declare const resolveSsoCredentials: (data: Partial<SsoProfile>) => Promise<import("@smithy/types").AwsCredentialIdentity>;
|
6
7
|
/**
|
7
8
|
* @internal
|
9
|
+
* duplicated from \@aws-sdk/credential-provider-sso to defer import.
|
8
10
|
*/
|
9
|
-
export declare const
|
11
|
+
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,6 @@
|
|
1
1
|
import { SsoProfile } from "@aws-sdk/credential-provider-sso";
|
2
|
-
|
2
|
+
import { Profile } from "@smithy/types";
|
3
3
|
export declare const resolveSsoCredentials: (
|
4
4
|
data: Partial<SsoProfile>
|
5
5
|
) => Promise<import("@smithy/types").AwsCredentialIdentity>;
|
6
|
+
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.502.0",
|
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.502.0",
|
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,8 +44,10 @@ 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]) {
|
50
|
+
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "remoteProvider::fromContainerMetadata");
|
49
51
|
return fromContainerMetadata(init);
|
50
52
|
}
|
51
53
|
if (process.env[ENV_IMDS_DISABLED]) {
|
@@ -53,6 +55,7 @@ var remoteProvider = /* @__PURE__ */ __name(async (init) => {
|
|
53
55
|
throw new import_property_provider.CredentialsProviderError("EC2 Instance Metadata Service access disabled");
|
54
56
|
};
|
55
57
|
}
|
58
|
+
(_b = init.logger) == null ? void 0 : _b.debug("@aws-sdk/credential-provider-node", "remoteProvider::fromInstanceMetadata");
|
56
59
|
return fromInstanceMetadata(init);
|
57
60
|
}, "remoteProvider");
|
58
61
|
|
@@ -61,27 +64,45 @@ var defaultProvider = /* @__PURE__ */ __name((init = {}) => (0, import_property_
|
|
61
64
|
(0, import_property_provider.chain)(
|
62
65
|
...init.profile || process.env[import_shared_ini_file_loader.ENV_PROFILE] ? [] : [
|
63
66
|
async () => {
|
67
|
+
var _a;
|
68
|
+
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromEnv");
|
64
69
|
const { fromEnv } = await Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-env")));
|
65
|
-
return fromEnv()();
|
70
|
+
return fromEnv(init)();
|
66
71
|
}
|
67
72
|
],
|
68
73
|
async () => {
|
74
|
+
var _a;
|
75
|
+
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromSSO");
|
76
|
+
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName } = init;
|
77
|
+
if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
|
78
|
+
throw new import_property_provider.CredentialsProviderError(
|
79
|
+
"Skipping SSO provider in default chain (inputs do not include SSO fields)."
|
80
|
+
);
|
81
|
+
}
|
69
82
|
const { fromSSO } = await Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-sso")));
|
70
83
|
return fromSSO(init)();
|
71
84
|
},
|
72
85
|
async () => {
|
86
|
+
var _a;
|
87
|
+
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromIni");
|
73
88
|
const { fromIni } = await Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-ini")));
|
74
89
|
return fromIni(init)();
|
75
90
|
},
|
76
91
|
async () => {
|
92
|
+
var _a;
|
93
|
+
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromProcess");
|
77
94
|
const { fromProcess } = await Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-process")));
|
78
95
|
return fromProcess(init)();
|
79
96
|
},
|
80
97
|
async () => {
|
98
|
+
var _a;
|
99
|
+
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromTokenFile");
|
81
100
|
const { fromTokenFile } = await Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-web-identity")));
|
82
101
|
return fromTokenFile(init)();
|
83
102
|
},
|
84
103
|
async () => {
|
104
|
+
var _a;
|
105
|
+
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::remoteProvider");
|
85
106
|
return (await remoteProvider(init))();
|
86
107
|
},
|
87
108
|
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 } = init;
|
15
|
+
if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
|
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);
|
@@ -3,6 +3,7 @@ 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
|
+
init.logger?.debug("@aws-sdk/credential-provider-node", "remoteProvider::fromContainerMetadata");
|
6
7
|
return fromContainerMetadata(init);
|
7
8
|
}
|
8
9
|
if (process.env[ENV_IMDS_DISABLED]) {
|
@@ -10,5 +11,6 @@ export const remoteProvider = async (init) => {
|
|
10
11
|
throw new CredentialsProviderError("EC2 Instance Metadata Service access disabled");
|
11
12
|
};
|
12
13
|
}
|
14
|
+
init.logger?.debug("@aws-sdk/credential-provider-node", "remoteProvider::fromInstanceMetadata");
|
13
15
|
return fromInstanceMetadata(init);
|
14
16
|
};
|
@@ -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.502.0",
|
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,12 @@
|
|
27
27
|
},
|
28
28
|
"license": "Apache-2.0",
|
29
29
|
"dependencies": {
|
30
|
-
"@aws-sdk/credential-provider-env": "3.
|
31
|
-
"@aws-sdk/credential-provider-ini": "3.
|
32
|
-
"@aws-sdk/credential-provider-process": "3.
|
33
|
-
"@aws-sdk/credential-provider-sso": "3.
|
34
|
-
"@aws-sdk/credential-provider-web-identity": "3.
|
35
|
-
"@aws-sdk/types": "3.
|
30
|
+
"@aws-sdk/credential-provider-env": "3.502.0",
|
31
|
+
"@aws-sdk/credential-provider-ini": "3.502.0",
|
32
|
+
"@aws-sdk/credential-provider-process": "3.502.0",
|
33
|
+
"@aws-sdk/credential-provider-sso": "3.502.0",
|
34
|
+
"@aws-sdk/credential-provider-web-identity": "3.502.0",
|
35
|
+
"@aws-sdk/types": "3.502.0",
|
36
36
|
"@smithy/credential-provider-imds": "^2.2.1",
|
37
37
|
"@smithy/property-provider": "^2.1.1",
|
38
38
|
"@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;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/credential-provider-process",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.502.0",
|
4
4
|
"description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -24,7 +24,7 @@
|
|
24
24
|
},
|
25
25
|
"license": "Apache-2.0",
|
26
26
|
"dependencies": {
|
27
|
-
"@aws-sdk/types": "3.
|
27
|
+
"@aws-sdk/types": "3.502.0",
|
28
28
|
"@smithy/property-provider": "^2.1.1",
|
29
29
|
"@smithy/shared-ini-file-loader": "^2.3.1",
|
30
30
|
"@smithy/types": "^2.9.1",
|
@@ -3,6 +3,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
5
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
6
|
+
var __esm = (fn, res) => function __init() {
|
7
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
8
|
+
};
|
6
9
|
var __export = (target, all) => {
|
7
10
|
for (var name in all)
|
8
11
|
__defProp(target, name, { get: all[name], enumerable: true });
|
@@ -17,6 +20,19 @@ var __copyProps = (to, from, except, desc) => {
|
|
17
20
|
};
|
18
21
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
22
|
|
23
|
+
// src/loadSso.ts
|
24
|
+
var loadSso_exports = {};
|
25
|
+
__export(loadSso_exports, {
|
26
|
+
GetRoleCredentialsCommand: () => import_client_sso.GetRoleCredentialsCommand,
|
27
|
+
SSOClient: () => import_client_sso.SSOClient
|
28
|
+
});
|
29
|
+
var import_client_sso;
|
30
|
+
var init_loadSso = __esm({
|
31
|
+
"src/loadSso.ts"() {
|
32
|
+
import_client_sso = require("@aws-sdk/client-sso");
|
33
|
+
}
|
34
|
+
});
|
35
|
+
|
20
36
|
// src/index.ts
|
21
37
|
var src_exports = {};
|
22
38
|
__export(src_exports, {
|
@@ -34,7 +50,6 @@ module.exports = __toCommonJS(src_exports);
|
|
34
50
|
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");
|
35
51
|
|
36
52
|
// src/resolveSSOCredentials.ts
|
37
|
-
var import_client_sso = require("@aws-sdk/client-sso");
|
38
53
|
var import_token_providers = require("@aws-sdk/token-providers");
|
39
54
|
var import_property_provider = require("@smithy/property-provider");
|
40
55
|
var import_shared_ini_file_loader = require("@smithy/shared-ini-file-loader");
|
@@ -48,7 +63,6 @@ var resolveSSOCredentials = /* @__PURE__ */ __name(async ({
|
|
48
63
|
ssoClient,
|
49
64
|
profile
|
50
65
|
}) => {
|
51
|
-
var _a;
|
52
66
|
let token;
|
53
67
|
const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
|
54
68
|
if (ssoSession) {
|
@@ -78,11 +92,12 @@ var resolveSSOCredentials = /* @__PURE__ */ __name(async ({
|
|
78
92
|
);
|
79
93
|
}
|
80
94
|
const { accessToken } = token;
|
81
|
-
const
|
95
|
+
const { SSOClient: SSOClient2, GetRoleCredentialsCommand: GetRoleCredentialsCommand2 } = await Promise.resolve().then(() => (init_loadSso(), loadSso_exports));
|
96
|
+
const sso = ssoClient || new SSOClient2({ region: ssoRegion });
|
82
97
|
let ssoResp;
|
83
98
|
try {
|
84
99
|
ssoResp = await sso.send(
|
85
|
-
new
|
100
|
+
new GetRoleCredentialsCommand2({
|
86
101
|
accountId: ssoAccountId,
|
87
102
|
roleName: ssoRoleName,
|
88
103
|
accessToken
|
@@ -91,8 +106,7 @@ var resolveSSOCredentials = /* @__PURE__ */ __name(async ({
|
|
91
106
|
} catch (e) {
|
92
107
|
throw import_property_provider.CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN);
|
93
108
|
}
|
94
|
-
const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp;
|
95
|
-
const credentialScope = (_a = ssoResp == null ? void 0 : ssoResp.roleCredentials) == null ? void 0 : _a.credentialScope;
|
109
|
+
const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope } = {} } = ssoResp;
|
96
110
|
if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
|
97
111
|
throw new import_property_provider.CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN);
|
98
112
|
}
|
@@ -117,7 +131,14 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
117
131
|
|
118
132
|
// src/fromSSO.ts
|
119
133
|
var fromSSO = /* @__PURE__ */ __name((init = {}) => async () => {
|
120
|
-
|
134
|
+
var _a;
|
135
|
+
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-sso", "fromSSO");
|
136
|
+
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
137
|
+
let { ssoClient } = init;
|
138
|
+
if (!ssoClient) {
|
139
|
+
const { SSOClient: SSOClient2 } = await Promise.resolve().then(() => (init_loadSso(), loadSso_exports));
|
140
|
+
ssoClient = new SSOClient2(init.clientConfig ?? {});
|
141
|
+
}
|
121
142
|
const profileName = (0, import_shared_ini_file_loader.getProfileName)(init);
|
122
143
|
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
123
144
|
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
|
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = require("./index.js");
|