@cdk8s/awscdk-resolver 0.0.90 → 0.0.91
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/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +2 -17
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +5 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts +1 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +6 -4
- package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromWebToken.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromWebToken.d.ts +1 -2
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -2
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +14 -20
- package/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +4 -2
- package/package.json +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/LICENSE +0 -201
- package/node_modules/@aws-sdk/client-sso-oidc/README.md +0 -274
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js +0 -64
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/credentialDefaultProvider.js +0 -29
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js +0 -7
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +0 -1024
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.browser.js +0 -39
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +0 -49
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.native.js +0 -15
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js +0 -40
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDC.js +0 -15
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +0 -52
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/auth/httpAuthExtensionConfiguration.js +0 -38
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/auth/httpAuthSchemeProvider.js +0 -58
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenCommand.js +0 -25
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenWithIAMCommand.js +0 -25
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/RegisterClientCommand.js +0 -25
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/StartDeviceAuthorizationCommand.js +0 -25
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/index.js +0 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/credentialDefaultProvider.js +0 -3
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/EndpointParameters.js +0 -14
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/endpointResolver.js +0 -10
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/ruleset.js +0 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/extensionConfiguration.js +0 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js +0 -5
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/SSOOIDCServiceException.js +0 -8
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/index.js +0 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/models_0.js +0 -217
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +0 -409
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.browser.js +0 -34
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js +0 -44
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.native.js +0 -11
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.shared.js +0 -36
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeExtensions.js +0 -21
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDC.d.ts +0 -75
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +0 -212
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/auth/httpAuthExtensionConfiguration.d.ts +0 -29
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/auth/httpAuthSchemeProvider.d.ts +0 -61
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenCommand.d.ts +0 -162
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenWithIAMCommand.d.ts +0 -244
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +0 -108
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +0 -111
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/index.d.ts +0 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/credentialDefaultProvider.d.ts +0 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/EndpointParameters.d.ts +0 -40
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/endpointResolver.d.ts +0 -5
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/extensionConfiguration.d.ts +0 -9
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/index.d.ts +0 -50
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/SSOOIDCServiceException.d.ts +0 -13
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/index.d.ts +0 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +0 -734
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/protocols/Aws_restJson1.d.ts +0 -38
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +0 -53
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +0 -53
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +0 -52
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.shared.d.ts +0 -32
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeExtensions.d.ts +0 -17
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDC.d.ts +0 -73
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +0 -144
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +0 -32
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +0 -44
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +0 -35
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +0 -39
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +0 -38
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +0 -39
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/index.d.ts +0 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/credentialDefaultProvider.d.ts +0 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +0 -51
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/endpointResolver.d.ts +0 -8
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/extensionConfiguration.d.ts +0 -9
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/index.d.ts +0 -8
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/SSOOIDCServiceException.d.ts +0 -8
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/index.d.ts +0 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/models_0.d.ts +0 -201
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -53
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +0 -110
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +0 -108
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +0 -104
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.shared.d.ts +0 -49
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeExtensions.d.ts +0 -11
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +0 -102
- package/node_modules/@aws-sdk/client-sts/LICENSE +0 -201
- package/node_modules/@aws-sdk/client-sts/README.md +0 -273
- package/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +0 -56
- package/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
- package/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js +0 -67
- package/node_modules/@aws-sdk/client-sts/dist-cjs/credentialDefaultProvider.js +0 -29
- package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js +0 -20
- package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js +0 -7
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +0 -1457
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.browser.js +0 -39
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +0 -63
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.native.js +0 -15
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +0 -40
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js +0 -25
- package/node_modules/@aws-sdk/client-sts/dist-es/STS.js +0 -23
- package/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js +0 -52
- package/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthExtensionConfiguration.js +0 -38
- package/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthSchemeProvider.js +0 -60
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleCommand.js +0 -25
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js +0 -25
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +0 -25
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js +0 -24
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js +0 -24
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js +0 -24
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js +0 -25
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js +0 -25
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/index.js +0 -8
- package/node_modules/@aws-sdk/client-sts/dist-es/credentialDefaultProvider.js +0 -3
- package/node_modules/@aws-sdk/client-sts/dist-es/defaultRoleAssumers.js +0 -22
- package/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js +0 -67
- package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/EndpointParameters.js +0 -16
- package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js +0 -10
- package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/ruleset.js +0 -4
- package/node_modules/@aws-sdk/client-sts/dist-es/extensionConfiguration.js +0 -1
- package/node_modules/@aws-sdk/client-sts/dist-es/index.js +0 -6
- package/node_modules/@aws-sdk/client-sts/dist-es/models/STSServiceException.js +0 -8
- package/node_modules/@aws-sdk/client-sts/dist-es/models/index.js +0 -1
- package/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js +0 -130
- package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +0 -885
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.browser.js +0 -34
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +0 -58
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.native.js +0 -11
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js +0 -36
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeExtensions.js +0 -21
- package/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts +0 -71
- package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +0 -182
- package/node_modules/@aws-sdk/client-sts/dist-types/auth/httpAuthExtensionConfiguration.d.ts +0 -29
- package/node_modules/@aws-sdk/client-sts/dist-types/auth/httpAuthSchemeProvider.d.ts +0 -71
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts +0 -257
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +0 -282
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +0 -291
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +0 -115
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetAccessKeyInfoCommand.d.ts +0 -75
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetCallerIdentityCommand.d.ts +0 -116
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +0 -230
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +0 -154
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/index.d.ts +0 -8
- package/node_modules/@aws-sdk/client-sts/dist-types/credentialDefaultProvider.d.ts +0 -4
- package/node_modules/@aws-sdk/client-sts/dist-types/defaultRoleAssumers.d.ts +0 -23
- package/node_modules/@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers.d.ts +0 -43
- package/node_modules/@aws-sdk/client-sts/dist-types/endpoint/EndpointParameters.d.ts +0 -46
- package/node_modules/@aws-sdk/client-sts/dist-types/endpoint/endpointResolver.d.ts +0 -5
- package/node_modules/@aws-sdk/client-sts/dist-types/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/extensionConfiguration.d.ts +0 -9
- package/node_modules/@aws-sdk/client-sts/dist-types/index.d.ts +0 -17
- package/node_modules/@aws-sdk/client-sts/dist-types/models/STSServiceException.d.ts +0 -13
- package/node_modules/@aws-sdk/client-sts/dist-types/models/index.d.ts +0 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts +0 -1213
- package/node_modules/@aws-sdk/client-sts/dist-types/protocols/Aws_query.d.ts +0 -74
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +0 -54
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +0 -57
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +0 -53
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.shared.d.ts +0 -32
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeExtensions.d.ts +0 -17
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STS.d.ts +0 -143
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +0 -165
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +0 -32
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +0 -54
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +0 -35
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +0 -39
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +0 -39
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +0 -39
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +0 -38
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +0 -39
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +0 -39
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +0 -38
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/index.d.ts +0 -8
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/credentialDefaultProvider.d.ts +0 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultRoleAssumers.d.ts +0 -19
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +0 -33
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +0 -57
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/endpointResolver.d.ts +0 -8
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/extensionConfiguration.d.ts +0 -9
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/index.d.ts +0 -9
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/STSServiceException.d.ts +0 -8
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/index.d.ts +0 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/models_0.d.ts +0 -206
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/protocols/Aws_query.d.ts +0 -101
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +0 -116
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +0 -117
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +0 -110
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.shared.d.ts +0 -51
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeExtensions.d.ts +0 -11
- package/node_modules/@aws-sdk/client-sts/package.json +0 -104
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/loadSts.js +0 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/loadSts.js +0 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/loadSts.d.ts +0 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/loadSts.d.ts +0 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/loadSts.js +0 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/loadSts.js +0 -2
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/loadSts.d.ts +0 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/loadSts.d.ts +0 -3
- package/node_modules/@aws-sdk/token-providers/dist-cjs/loadSsoOidc.js +0 -1
- package/node_modules/@aws-sdk/token-providers/dist-es/loadSsoOidc.js +0 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/loadSsoOidc.d.ts +0 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/loadSsoOidc.d.ts +0 -2
@@ -1,273 +0,0 @@
|
|
1
|
-
<!-- generated file, do not edit directly -->
|
2
|
-
|
3
|
-
# @aws-sdk/client-sts
|
4
|
-
|
5
|
-
## Description
|
6
|
-
|
7
|
-
AWS SDK for JavaScript STS Client for Node.js, Browser and React Native.
|
8
|
-
|
9
|
-
<fullname>Security Token Service</fullname>
|
10
|
-
|
11
|
-
<p>Security Token Service (STS) enables you to request temporary, limited-privilege
|
12
|
-
credentials for users. This guide provides descriptions of the STS API. For
|
13
|
-
more information about using this service, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html">Temporary Security Credentials</a>.</p>
|
14
|
-
|
15
|
-
## Installing
|
16
|
-
|
17
|
-
To install the this package, simply type add or install @aws-sdk/client-sts
|
18
|
-
using your favorite package manager:
|
19
|
-
|
20
|
-
- `npm install @aws-sdk/client-sts`
|
21
|
-
- `yarn add @aws-sdk/client-sts`
|
22
|
-
- `pnpm add @aws-sdk/client-sts`
|
23
|
-
|
24
|
-
## Getting Started
|
25
|
-
|
26
|
-
### Import
|
27
|
-
|
28
|
-
The AWS SDK is modulized by clients and commands.
|
29
|
-
To send a request, you only need to import the `STSClient` and
|
30
|
-
the commands you need, for example `GetCallerIdentityCommand`:
|
31
|
-
|
32
|
-
```js
|
33
|
-
// ES5 example
|
34
|
-
const { STSClient, GetCallerIdentityCommand } = require("@aws-sdk/client-sts");
|
35
|
-
```
|
36
|
-
|
37
|
-
```ts
|
38
|
-
// ES6+ example
|
39
|
-
import { STSClient, GetCallerIdentityCommand } from "@aws-sdk/client-sts";
|
40
|
-
```
|
41
|
-
|
42
|
-
### Usage
|
43
|
-
|
44
|
-
To send a request, you:
|
45
|
-
|
46
|
-
- Initiate client with configuration (e.g. credentials, region).
|
47
|
-
- Initiate command with input parameters.
|
48
|
-
- Call `send` operation on client with command object as input.
|
49
|
-
- If you are using a custom http handler, you may call `destroy()` to close open connections.
|
50
|
-
|
51
|
-
```js
|
52
|
-
// a client can be shared by different commands.
|
53
|
-
const client = new STSClient({ region: "REGION" });
|
54
|
-
|
55
|
-
const params = {
|
56
|
-
/** input parameters */
|
57
|
-
};
|
58
|
-
const command = new GetCallerIdentityCommand(params);
|
59
|
-
```
|
60
|
-
|
61
|
-
#### Async/await
|
62
|
-
|
63
|
-
We recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
|
64
|
-
operator to wait for the promise returned by send operation as follows:
|
65
|
-
|
66
|
-
```js
|
67
|
-
// async/await.
|
68
|
-
try {
|
69
|
-
const data = await client.send(command);
|
70
|
-
// process data.
|
71
|
-
} catch (error) {
|
72
|
-
// error handling.
|
73
|
-
} finally {
|
74
|
-
// finally.
|
75
|
-
}
|
76
|
-
```
|
77
|
-
|
78
|
-
Async-await is clean, concise, intuitive, easy to debug and has better error handling
|
79
|
-
as compared to using Promise chains or callbacks.
|
80
|
-
|
81
|
-
#### Promises
|
82
|
-
|
83
|
-
You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining)
|
84
|
-
to execute send operation.
|
85
|
-
|
86
|
-
```js
|
87
|
-
client.send(command).then(
|
88
|
-
(data) => {
|
89
|
-
// process data.
|
90
|
-
},
|
91
|
-
(error) => {
|
92
|
-
// error handling.
|
93
|
-
}
|
94
|
-
);
|
95
|
-
```
|
96
|
-
|
97
|
-
Promises can also be called using `.catch()` and `.finally()` as follows:
|
98
|
-
|
99
|
-
```js
|
100
|
-
client
|
101
|
-
.send(command)
|
102
|
-
.then((data) => {
|
103
|
-
// process data.
|
104
|
-
})
|
105
|
-
.catch((error) => {
|
106
|
-
// error handling.
|
107
|
-
})
|
108
|
-
.finally(() => {
|
109
|
-
// finally.
|
110
|
-
});
|
111
|
-
```
|
112
|
-
|
113
|
-
#### Callbacks
|
114
|
-
|
115
|
-
We do not recommend using callbacks because of [callback hell](http://callbackhell.com/),
|
116
|
-
but they are supported by the send operation.
|
117
|
-
|
118
|
-
```js
|
119
|
-
// callbacks.
|
120
|
-
client.send(command, (err, data) => {
|
121
|
-
// process err and data.
|
122
|
-
});
|
123
|
-
```
|
124
|
-
|
125
|
-
#### v2 compatible style
|
126
|
-
|
127
|
-
The client can also send requests using v2 compatible style.
|
128
|
-
However, it results in a bigger bundle size and may be dropped in next major version. More details in the blog post
|
129
|
-
on [modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/)
|
130
|
-
|
131
|
-
```ts
|
132
|
-
import * as AWS from "@aws-sdk/client-sts";
|
133
|
-
const client = new AWS.STS({ region: "REGION" });
|
134
|
-
|
135
|
-
// async/await.
|
136
|
-
try {
|
137
|
-
const data = await client.getCallerIdentity(params);
|
138
|
-
// process data.
|
139
|
-
} catch (error) {
|
140
|
-
// error handling.
|
141
|
-
}
|
142
|
-
|
143
|
-
// Promises.
|
144
|
-
client
|
145
|
-
.getCallerIdentity(params)
|
146
|
-
.then((data) => {
|
147
|
-
// process data.
|
148
|
-
})
|
149
|
-
.catch((error) => {
|
150
|
-
// error handling.
|
151
|
-
});
|
152
|
-
|
153
|
-
// callbacks.
|
154
|
-
client.getCallerIdentity(params, (err, data) => {
|
155
|
-
// process err and data.
|
156
|
-
});
|
157
|
-
```
|
158
|
-
|
159
|
-
### Troubleshooting
|
160
|
-
|
161
|
-
When the service returns an exception, the error will include the exception information,
|
162
|
-
as well as response metadata (e.g. request id).
|
163
|
-
|
164
|
-
```js
|
165
|
-
try {
|
166
|
-
const data = await client.send(command);
|
167
|
-
// process data.
|
168
|
-
} catch (error) {
|
169
|
-
const { requestId, cfId, extendedRequestId } = error.$metadata;
|
170
|
-
console.log({ requestId, cfId, extendedRequestId });
|
171
|
-
/**
|
172
|
-
* The keys within exceptions are also parsed.
|
173
|
-
* You can access them by specifying exception names:
|
174
|
-
* if (error.name === 'SomeServiceException') {
|
175
|
-
* const value = error.specialKeyInException;
|
176
|
-
* }
|
177
|
-
*/
|
178
|
-
}
|
179
|
-
```
|
180
|
-
|
181
|
-
## Getting Help
|
182
|
-
|
183
|
-
Please use these community resources for getting help.
|
184
|
-
We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
|
185
|
-
|
186
|
-
- Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)
|
187
|
-
or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html).
|
188
|
-
- Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/)
|
189
|
-
on AWS Developer Blog.
|
190
|
-
- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`.
|
191
|
-
- Join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3).
|
192
|
-
- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose).
|
193
|
-
|
194
|
-
To test your universal JavaScript code in Node.js, browser and react-native environments,
|
195
|
-
visit our [code samples repo](https://github.com/aws-samples/aws-sdk-js-tests).
|
196
|
-
|
197
|
-
## Contributing
|
198
|
-
|
199
|
-
This client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/client-sts` package is updated.
|
200
|
-
To contribute to client you can check our [generate clients scripts](https://github.com/aws/aws-sdk-js-v3/tree/main/scripts/generate-clients).
|
201
|
-
|
202
|
-
## License
|
203
|
-
|
204
|
-
This SDK is distributed under the
|
205
|
-
[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),
|
206
|
-
see LICENSE for more information.
|
207
|
-
|
208
|
-
## Client Commands (Operations List)
|
209
|
-
|
210
|
-
<details>
|
211
|
-
<summary>
|
212
|
-
AssumeRole
|
213
|
-
</summary>
|
214
|
-
|
215
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sts/command/AssumeRoleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/AssumeRoleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/AssumeRoleCommandOutput/)
|
216
|
-
|
217
|
-
</details>
|
218
|
-
<details>
|
219
|
-
<summary>
|
220
|
-
AssumeRoleWithSAML
|
221
|
-
</summary>
|
222
|
-
|
223
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sts/command/AssumeRoleWithSAMLCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/AssumeRoleWithSAMLCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/AssumeRoleWithSAMLCommandOutput/)
|
224
|
-
|
225
|
-
</details>
|
226
|
-
<details>
|
227
|
-
<summary>
|
228
|
-
AssumeRoleWithWebIdentity
|
229
|
-
</summary>
|
230
|
-
|
231
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sts/command/AssumeRoleWithWebIdentityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/AssumeRoleWithWebIdentityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/AssumeRoleWithWebIdentityCommandOutput/)
|
232
|
-
|
233
|
-
</details>
|
234
|
-
<details>
|
235
|
-
<summary>
|
236
|
-
DecodeAuthorizationMessage
|
237
|
-
</summary>
|
238
|
-
|
239
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sts/command/DecodeAuthorizationMessageCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/DecodeAuthorizationMessageCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/DecodeAuthorizationMessageCommandOutput/)
|
240
|
-
|
241
|
-
</details>
|
242
|
-
<details>
|
243
|
-
<summary>
|
244
|
-
GetAccessKeyInfo
|
245
|
-
</summary>
|
246
|
-
|
247
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sts/command/GetAccessKeyInfoCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetAccessKeyInfoCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetAccessKeyInfoCommandOutput/)
|
248
|
-
|
249
|
-
</details>
|
250
|
-
<details>
|
251
|
-
<summary>
|
252
|
-
GetCallerIdentity
|
253
|
-
</summary>
|
254
|
-
|
255
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sts/command/GetCallerIdentityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetCallerIdentityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetCallerIdentityCommandOutput/)
|
256
|
-
|
257
|
-
</details>
|
258
|
-
<details>
|
259
|
-
<summary>
|
260
|
-
GetFederationToken
|
261
|
-
</summary>
|
262
|
-
|
263
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sts/command/GetFederationTokenCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetFederationTokenCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetFederationTokenCommandOutput/)
|
264
|
-
|
265
|
-
</details>
|
266
|
-
<details>
|
267
|
-
<summary>
|
268
|
-
GetSessionToken
|
269
|
-
</summary>
|
270
|
-
|
271
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sts/command/GetSessionTokenCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetSessionTokenCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetSessionTokenCommandOutput/)
|
272
|
-
|
273
|
-
</details>
|
@@ -1,56 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.STSClient = exports.__Client = void 0;
|
4
|
-
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
5
|
-
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
6
|
-
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
7
|
-
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
8
|
-
const config_resolver_1 = require("@smithy/config-resolver");
|
9
|
-
const core_1 = require("@smithy/core");
|
10
|
-
const middleware_content_length_1 = require("@smithy/middleware-content-length");
|
11
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
12
|
-
const middleware_retry_1 = require("@smithy/middleware-retry");
|
13
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
14
|
-
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
|
15
|
-
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
16
|
-
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
17
|
-
const runtimeConfig_1 = require("./runtimeConfig");
|
18
|
-
const runtimeExtensions_1 = require("./runtimeExtensions");
|
19
|
-
class STSClient extends smithy_client_1.Client {
|
20
|
-
constructor(...[configuration]) {
|
21
|
-
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
22
|
-
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
23
|
-
const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1);
|
24
|
-
const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
|
25
|
-
const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3);
|
26
|
-
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
27
|
-
const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
|
28
|
-
const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);
|
29
|
-
const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
|
30
|
-
super(_config_8);
|
31
|
-
this.config = _config_8;
|
32
|
-
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
33
|
-
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
34
|
-
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
35
|
-
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
36
|
-
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
37
|
-
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
38
|
-
this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
39
|
-
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
40
|
-
identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
|
41
|
-
}));
|
42
|
-
this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
|
43
|
-
}
|
44
|
-
destroy() {
|
45
|
-
super.destroy();
|
46
|
-
}
|
47
|
-
getDefaultHttpAuthSchemeParametersProvider() {
|
48
|
-
return httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider;
|
49
|
-
}
|
50
|
-
getIdentityProviderConfigProvider() {
|
51
|
-
return async (config) => new core_1.DefaultIdentityProviderConfig({
|
52
|
-
"aws.auth#sigv4": config.credentials,
|
53
|
-
});
|
54
|
-
}
|
55
|
-
}
|
56
|
-
exports.STSClient = STSClient;
|
@@ -1,43 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = void 0;
|
4
|
-
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
5
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
6
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
7
|
-
let _credentials = runtimeConfig.credentials;
|
8
|
-
return {
|
9
|
-
setHttpAuthScheme(httpAuthScheme) {
|
10
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
11
|
-
if (index === -1) {
|
12
|
-
_httpAuthSchemes.push(httpAuthScheme);
|
13
|
-
}
|
14
|
-
else {
|
15
|
-
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
16
|
-
}
|
17
|
-
},
|
18
|
-
httpAuthSchemes() {
|
19
|
-
return _httpAuthSchemes;
|
20
|
-
},
|
21
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
22
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
23
|
-
},
|
24
|
-
httpAuthSchemeProvider() {
|
25
|
-
return _httpAuthSchemeProvider;
|
26
|
-
},
|
27
|
-
setCredentials(credentials) {
|
28
|
-
_credentials = credentials;
|
29
|
-
},
|
30
|
-
credentials() {
|
31
|
-
return _credentials;
|
32
|
-
},
|
33
|
-
};
|
34
|
-
};
|
35
|
-
exports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;
|
36
|
-
const resolveHttpAuthRuntimeConfig = (config) => {
|
37
|
-
return {
|
38
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
39
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
40
|
-
credentials: config.credentials(),
|
41
|
-
};
|
42
|
-
};
|
43
|
-
exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
|
@@ -1,67 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.resolveHttpAuthSchemeConfig = exports.resolveStsAuthConfig = exports.defaultSTSHttpAuthSchemeProvider = exports.defaultSTSHttpAuthSchemeParametersProvider = void 0;
|
4
|
-
const core_1 = require("@aws-sdk/core");
|
5
|
-
const util_middleware_1 = require("@smithy/util-middleware");
|
6
|
-
const STSClient_1 = require("../STSClient");
|
7
|
-
const defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
8
|
-
return {
|
9
|
-
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
10
|
-
region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
|
11
|
-
(() => {
|
12
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
13
|
-
})(),
|
14
|
-
};
|
15
|
-
};
|
16
|
-
exports.defaultSTSHttpAuthSchemeParametersProvider = defaultSTSHttpAuthSchemeParametersProvider;
|
17
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
18
|
-
return {
|
19
|
-
schemeId: "aws.auth#sigv4",
|
20
|
-
signingProperties: {
|
21
|
-
name: "sts",
|
22
|
-
region: authParameters.region,
|
23
|
-
},
|
24
|
-
propertiesExtractor: (config, context) => ({
|
25
|
-
signingProperties: {
|
26
|
-
config,
|
27
|
-
context,
|
28
|
-
},
|
29
|
-
}),
|
30
|
-
};
|
31
|
-
}
|
32
|
-
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
33
|
-
return {
|
34
|
-
schemeId: "smithy.api#noAuth",
|
35
|
-
};
|
36
|
-
}
|
37
|
-
const defaultSTSHttpAuthSchemeProvider = (authParameters) => {
|
38
|
-
const options = [];
|
39
|
-
switch (authParameters.operation) {
|
40
|
-
case "AssumeRoleWithSAML": {
|
41
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
42
|
-
break;
|
43
|
-
}
|
44
|
-
case "AssumeRoleWithWebIdentity": {
|
45
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
46
|
-
break;
|
47
|
-
}
|
48
|
-
default: {
|
49
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
50
|
-
}
|
51
|
-
}
|
52
|
-
return options;
|
53
|
-
};
|
54
|
-
exports.defaultSTSHttpAuthSchemeProvider = defaultSTSHttpAuthSchemeProvider;
|
55
|
-
const resolveStsAuthConfig = (input) => ({
|
56
|
-
...input,
|
57
|
-
stsClientCtor: STSClient_1.STSClient,
|
58
|
-
});
|
59
|
-
exports.resolveStsAuthConfig = resolveStsAuthConfig;
|
60
|
-
const resolveHttpAuthSchemeConfig = (config) => {
|
61
|
-
const config_0 = (0, exports.resolveStsAuthConfig)(config);
|
62
|
-
const config_1 = (0, core_1.resolveAwsSdkSigV4Config)(config_0);
|
63
|
-
return {
|
64
|
-
...config_1,
|
65
|
-
};
|
66
|
-
};
|
67
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
@@ -1,29 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
-
}) : function(o, v) {
|
16
|
-
o["default"] = v;
|
17
|
-
});
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
-
if (mod && mod.__esModule) return mod;
|
20
|
-
var result = {};
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
-
__setModuleDefault(result, mod);
|
23
|
-
return result;
|
24
|
-
};
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.defaultProvider = void 0;
|
27
|
-
exports.defaultProvider = ((input) => {
|
28
|
-
return () => Promise.resolve().then(() => __importStar(require("@aws-sdk/credential-provider-node"))).then(({ defaultProvider }) => defaultProvider(input)());
|
29
|
-
});
|
@@ -1,20 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
4
|
-
const resolveClientEndpointParameters = (options) => {
|
5
|
-
return {
|
6
|
-
...options,
|
7
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
8
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
9
|
-
useGlobalEndpoint: options.useGlobalEndpoint ?? false,
|
10
|
-
defaultSigningName: "sts",
|
11
|
-
};
|
12
|
-
};
|
13
|
-
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
14
|
-
exports.commonParams = {
|
15
|
-
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
16
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
17
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
18
|
-
Region: { type: "builtInParams", name: "region" },
|
19
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
20
|
-
};
|
@@ -1,14 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.defaultEndpointResolver = void 0;
|
4
|
-
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
5
|
-
const util_endpoints_2 = require("@smithy/util-endpoints");
|
6
|
-
const ruleset_1 = require("./ruleset");
|
7
|
-
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
8
|
-
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
9
|
-
endpointParams: endpointParams,
|
10
|
-
logger: context.logger,
|
11
|
-
});
|
12
|
-
};
|
13
|
-
exports.defaultEndpointResolver = defaultEndpointResolver;
|
14
|
-
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ruleSet = void 0;
|
4
|
-
const F = "required", G = "type", H = "fn", I = "argv", J = "ref";
|
5
|
-
const a = false, b = true, c = "booleanEquals", d = "stringEquals", e = "sigv4", f = "sts", g = "us-east-1", h = "endpoint", i = "https://sts.{Region}.{PartitionResult#dnsSuffix}", j = "tree", k = "error", l = "getAttr", m = { [F]: false, [G]: "String" }, n = { [F]: true, "default": false, [G]: "Boolean" }, o = { [J]: "Endpoint" }, p = { [H]: "isSet", [I]: [{ [J]: "Region" }] }, q = { [J]: "Region" }, r = { [H]: "aws.partition", [I]: [q], "assign": "PartitionResult" }, s = { [J]: "UseFIPS" }, t = { [J]: "UseDualStack" }, u = { "url": "https://sts.amazonaws.com", "properties": { "authSchemes": [{ "name": e, "signingName": f, "signingRegion": g }] }, "headers": {} }, v = {}, w = { "conditions": [{ [H]: d, [I]: [q, "aws-global"] }], [h]: u, [G]: h }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }, A = { [J]: "PartitionResult" }, B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] }, C = [{ [H]: "isSet", [I]: [o] }], D = [x], E = [y];
|
6
|
-
const _data = { version: "1.0", parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] }, { [H]: "not", [I]: C }, p, r, { [H]: c, [I]: [s, a] }, { [H]: c, [I]: [t, a] }], rules: [{ conditions: [{ [H]: d, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: h }, w, { conditions: [{ [H]: d, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-east-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-2"] }], endpoint: u, [G]: h }, { endpoint: { url: i, properties: { authSchemes: [{ name: e, signingName: f, signingRegion: "{Region}" }] }, headers: v }, [G]: h }], [G]: j }, { conditions: C, rules: [{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k }, { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: h }], [G]: j }, { conditions: [p], rules: [{ conditions: [r], rules: [{ conditions: [x, y], rules: [{ conditions: [{ [H]: c, [I]: [b, z] }, B], rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }], [G]: j }, { conditions: D, rules: [{ conditions: [{ [H]: c, [I]: [z, b] }], rules: [{ conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: h }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }], [G]: j }, { conditions: E, rules: [{ conditions: [B], rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }], [G]: j }, w, { endpoint: { url: i, properties: v, headers: v }, [G]: h }], [G]: j }], [G]: j }, { error: "Invalid Configuration: Missing Region", [G]: k }] };
|
7
|
-
exports.ruleSet = _data;
|