@cdk8s/awscdk-resolver 0.0.54 → 0.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/README.md +88 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/CreateGeneratedTemplateCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DeleteGeneratedTemplateCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeGeneratedTemplateCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeResourceScanCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/GetGeneratedTemplateCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListGeneratedTemplatesCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListResourceScanRelatedResourcesCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListResourceScanResourcesCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListResourceScansCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/StartResourceScanCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/UpdateGeneratedTemplateCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1677 -73
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/models_1.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListGeneratedTemplatesPaginator.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListResourceScanRelatedResourcesPaginator.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListResourceScanResourcesPaginator.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListResourceScansPaginator.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/CloudFormation.js +22 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/CreateGeneratedTemplateCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/DeleteGeneratedTemplateCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/DescribeGeneratedTemplateCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/DescribeResourceScanCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/GetGeneratedTemplateCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListGeneratedTemplatesCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListResourceScanRelatedResourcesCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListResourceScanResourcesCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListResourceScansCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/StartResourceScanCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/UpdateGeneratedTemplateCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/index.js +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/index.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_0.js +104 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_1.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListGeneratedTemplatesPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListResourceScanRelatedResourcesPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListResourceScanResourcesPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListResourceScansPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/index.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/protocols/Aws_query.js +1322 -92
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +77 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +13 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateGeneratedTemplateCommand.d.ts +116 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeleteGeneratedTemplateCommand.d.ts +75 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeGeneratedTemplateCommand.d.ts +135 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeResourceScanCommand.d.ts +168 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/GetGeneratedTemplateCommand.d.ts +100 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListGeneratedTemplatesCommand.d.ts +112 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScanRelatedResourcesCommand.d.ts +145 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScanResourcesCommand.d.ts +147 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScansCommand.d.ts +97 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/StartResourceScanCommand.d.ts +91 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/StopStackSetOperationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/TestTypeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateGeneratedTemplateCommand.d.ts +156 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackInstancesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateTerminationProtectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ValidateTemplateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/index.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +4075 -3877
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_1.d.ts +974 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListGeneratedTemplatesPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListResourceScanRelatedResourcesPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListResourceScanResourcesPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListResourceScansPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/protocols/Aws_query.d.ts +99 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormation.d.ts +187 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormationClient.d.ts +66 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/CreateGeneratedTemplateCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeleteGeneratedTemplateCommand.d.ts +26 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeGeneratedTemplateCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeResourceScanCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/GetGeneratedTemplateCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListGeneratedTemplatesCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScanRelatedResourcesCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScanResourcesCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScansCommand.d.ts +29 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/StartResourceScanCommand.d.ts +29 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/StopStackSetOperationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/TestTypeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateGeneratedTemplateCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackInstancesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateTerminationProtectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ValidateTemplateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_0.d.ts +250 -99
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_1.d.ts +132 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListGeneratedTemplatesPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListResourceScanRelatedResourcesPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListResourceScanResourcesPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListResourceScansPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/protocols/Aws_query.d.ts +132 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +6 -2
- package/node_modules/@aws-sdk/client-cloudformation/package.json +13 -13
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +14 -13
- package/node_modules/@aws-sdk/client-sso/package.json +10 -10
- package/node_modules/@aws-sdk/client-sso-oidc/LICENSE +201 -0
- package/node_modules/@aws-sdk/client-sso-oidc/README.md +274 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDC.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDCClient.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenWithIAMCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/RegisterClientCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/StartDeviceAuthorizationCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/index.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/credentialDefaultProvider.js +29 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/EndpointParameters.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js +7 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/extensionConfiguration.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +1115 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/SSOOIDCServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/index.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/models_0.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/protocols/Aws_restJson1.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.browser.js +39 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +49 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.native.js +15 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js +24 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeExtensions.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDC.js +15 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +38 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenWithIAMCommand.js +27 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/RegisterClientCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/StartDeviceAuthorizationCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/index.js +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/credentialDefaultProvider.js +3 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/EndpointParameters.js +14 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/endpointResolver.js +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/ruleset.js +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/extensionConfiguration.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js +6 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/SSOOIDCServiceException.js +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/index.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/models_0.js +217 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +553 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.browser.js +34 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js +44 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.native.js +11 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.shared.js +20 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeExtensions.js +18 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDC.d.ts +75 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +210 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenCommand.d.ts +161 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenWithIAMCommand.d.ts +243 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +107 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +110 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/credentialDefaultProvider.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/EndpointParameters.d.ts +40 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/extensionConfiguration.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/index.d.ts +51 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/SSOOIDCServiceException.d.ts +13 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +734 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/protocols/Aws_restJson1.d.ts +38 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +46 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +46 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +45 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.shared.d.ts +19 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeExtensions.d.ts +17 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDC.d.ts +73 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +142 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +26 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +29 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/credentialDefaultProvider.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/index.d.ts +9 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/SSOOIDCServiceException.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/models_0.d.ts +201 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +53 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +103 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js +1 -29
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +1 -29
- package/node_modules/@aws-sdk/client-sts/dist-cjs/credentialDefaultProvider.js +29 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js +1 -78
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1412 -72
- package/node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js +1 -12
- package/node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js +1 -149
- package/node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js +1 -1084
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +3 -4
- package/node_modules/@aws-sdk/client-sts/dist-es/credentialDefaultProvider.js +3 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +3 -4
- package/node_modules/@aws-sdk/client-sts/dist-types/credentialDefaultProvider.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/defaultRoleAssumers.d.ts +3 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +8 -3
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/credentialDefaultProvider.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +26 -14
- package/node_modules/@aws-sdk/client-sts/package.json +14 -12
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +5 -3
- package/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-env/dist-types/fromEnv.d.ts +4 -1
- package/node_modules/@aws-sdk/credential-provider-env/dist-types/ts3.4/fromEnv.d.ts +5 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/README.md +10 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +46 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +32 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +65 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttpTypes.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +59 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +17 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js +42 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.browser.js +27 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +59 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttpTypes.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js +53 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js +13 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/index.browser.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/checkUrl.d.ts +7 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.browser.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttpTypes.d.ts +69 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/requestHelpers.d.ts +11 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/retry-wrapper.d.ts +10 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/index.browser.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/index.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/checkUrl.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttp.browser.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttp.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttpTypes.d.ts +18 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/requestHelpers.d.ts +7 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/retry-wrapper.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/index.browser.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/index.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/package.json +67 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +71 -43
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/loadSts.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/loadSts.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +4 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js +4 -6
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +2 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js +10 -9
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js +9 -6
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +8 -4
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/loadSts.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveCredentialSource.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProcessCredentials.d.ts +1 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveSsoCredentials.d.ts +6 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveStaticCredentials.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts +8 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/loadSts.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveCredentialSource.d.ts +4 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProcessCredentials.d.ts +1 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveSsoCredentials.d.ts +6 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveStaticCredentials.d.ts +3 -1
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +7 -6
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +24 -2
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +11 -1
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js +5 -2
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/defaultProvider.d.ts +17 -14
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/remoteProvider.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/defaultProvider.d.ts +5 -2
- package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -7
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/fromProcess.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/fromProcess.d.ts +4 -1
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +31 -7
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +5 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/loadSso.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +7 -5
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +4 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/loadSso.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/fromSSO.d.ts +6 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/loadSso.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/resolveSSOCredentials.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +5 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +7 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/loadSts.js +5 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +6 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/loadSts.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromTokenFile.d.ts +4 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromWebToken.d.ts +14 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/loadSts.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromTokenFile.d.ts +7 -2
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromWebToken.d.ts +12 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/loadSts.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -2
- package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/middleware-signing/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +4 -4
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +27 -24
- package/node_modules/@aws-sdk/token-providers/dist-cjs/loadSsoOidc.js +1 -0
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +1 -0
- package/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +2 -1
- package/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +3 -3
- package/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-es/index.js +0 -1
- package/node_modules/@aws-sdk/token-providers/dist-es/loadSsoOidc.js +2 -0
- package/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +3 -3
- package/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +2 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +2 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts +0 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/loadSsoOidc.d.ts +2 -0
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +7 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromStatic.d.ts +7 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +0 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/loadSsoOidc.d.ts +2 -0
- package/node_modules/@aws-sdk/token-providers/package.json +6 -43
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +3 -171
- package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +15 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +4 -0
- package/node_modules/@aws-sdk/types/package.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +4 -24
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-browser.js +0 -1032
- package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js +0 -1038
- package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-browser.js +0 -1010
- package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-node.js +0 -1017
- package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-browser.d.ts +0 -191
- package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-node.d.ts +0 -191
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-browser.d.ts +0 -235
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-node.d.ts +0 -235
@@ -0,0 +1,553 @@
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
3
|
+
import { AccessDeniedException, AuthorizationPendingException, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidClientMetadataException, InvalidGrantException, InvalidRequestException, InvalidRequestRegionException, InvalidScopeException, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException, } from "../models/models_0";
|
4
|
+
import { SSOOIDCServiceException as __BaseException } from "../models/SSOOIDCServiceException";
|
5
|
+
export const se_CreateTokenCommand = async (input, context) => {
|
6
|
+
const b = rb(input, context);
|
7
|
+
const headers = {
|
8
|
+
"content-type": "application/json",
|
9
|
+
};
|
10
|
+
b.bp("/token");
|
11
|
+
let body;
|
12
|
+
body = JSON.stringify(take(input, {
|
13
|
+
clientId: [],
|
14
|
+
clientSecret: [],
|
15
|
+
code: [],
|
16
|
+
deviceCode: [],
|
17
|
+
grantType: [],
|
18
|
+
redirectUri: [],
|
19
|
+
refreshToken: [],
|
20
|
+
scope: (_) => _json(_),
|
21
|
+
}));
|
22
|
+
b.m("POST").h(headers).b(body);
|
23
|
+
return b.build();
|
24
|
+
};
|
25
|
+
export const se_CreateTokenWithIAMCommand = async (input, context) => {
|
26
|
+
const b = rb(input, context);
|
27
|
+
const headers = {
|
28
|
+
"content-type": "application/json",
|
29
|
+
};
|
30
|
+
b.bp("/token");
|
31
|
+
const query = map({
|
32
|
+
[_ai]: [, "t"],
|
33
|
+
});
|
34
|
+
let body;
|
35
|
+
body = JSON.stringify(take(input, {
|
36
|
+
assertion: [],
|
37
|
+
clientId: [],
|
38
|
+
code: [],
|
39
|
+
grantType: [],
|
40
|
+
redirectUri: [],
|
41
|
+
refreshToken: [],
|
42
|
+
requestedTokenType: [],
|
43
|
+
scope: (_) => _json(_),
|
44
|
+
subjectToken: [],
|
45
|
+
subjectTokenType: [],
|
46
|
+
}));
|
47
|
+
b.m("POST").h(headers).q(query).b(body);
|
48
|
+
return b.build();
|
49
|
+
};
|
50
|
+
export const se_RegisterClientCommand = async (input, context) => {
|
51
|
+
const b = rb(input, context);
|
52
|
+
const headers = {
|
53
|
+
"content-type": "application/json",
|
54
|
+
};
|
55
|
+
b.bp("/client/register");
|
56
|
+
let body;
|
57
|
+
body = JSON.stringify(take(input, {
|
58
|
+
clientName: [],
|
59
|
+
clientType: [],
|
60
|
+
scopes: (_) => _json(_),
|
61
|
+
}));
|
62
|
+
b.m("POST").h(headers).b(body);
|
63
|
+
return b.build();
|
64
|
+
};
|
65
|
+
export const se_StartDeviceAuthorizationCommand = async (input, context) => {
|
66
|
+
const b = rb(input, context);
|
67
|
+
const headers = {
|
68
|
+
"content-type": "application/json",
|
69
|
+
};
|
70
|
+
b.bp("/device_authorization");
|
71
|
+
let body;
|
72
|
+
body = JSON.stringify(take(input, {
|
73
|
+
clientId: [],
|
74
|
+
clientSecret: [],
|
75
|
+
startUrl: [],
|
76
|
+
}));
|
77
|
+
b.m("POST").h(headers).b(body);
|
78
|
+
return b.build();
|
79
|
+
};
|
80
|
+
export const de_CreateTokenCommand = async (output, context) => {
|
81
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
82
|
+
return de_CreateTokenCommandError(output, context);
|
83
|
+
}
|
84
|
+
const contents = map({
|
85
|
+
$metadata: deserializeMetadata(output),
|
86
|
+
});
|
87
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
88
|
+
const doc = take(data, {
|
89
|
+
accessToken: __expectString,
|
90
|
+
expiresIn: __expectInt32,
|
91
|
+
idToken: __expectString,
|
92
|
+
refreshToken: __expectString,
|
93
|
+
tokenType: __expectString,
|
94
|
+
});
|
95
|
+
Object.assign(contents, doc);
|
96
|
+
return contents;
|
97
|
+
};
|
98
|
+
const de_CreateTokenCommandError = async (output, context) => {
|
99
|
+
const parsedOutput = {
|
100
|
+
...output,
|
101
|
+
body: await parseErrorBody(output.body, context),
|
102
|
+
};
|
103
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
104
|
+
switch (errorCode) {
|
105
|
+
case "AccessDeniedException":
|
106
|
+
case "com.amazonaws.ssooidc#AccessDeniedException":
|
107
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
108
|
+
case "AuthorizationPendingException":
|
109
|
+
case "com.amazonaws.ssooidc#AuthorizationPendingException":
|
110
|
+
throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
|
111
|
+
case "ExpiredTokenException":
|
112
|
+
case "com.amazonaws.ssooidc#ExpiredTokenException":
|
113
|
+
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
114
|
+
case "InternalServerException":
|
115
|
+
case "com.amazonaws.ssooidc#InternalServerException":
|
116
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
117
|
+
case "InvalidClientException":
|
118
|
+
case "com.amazonaws.ssooidc#InvalidClientException":
|
119
|
+
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
120
|
+
case "InvalidGrantException":
|
121
|
+
case "com.amazonaws.ssooidc#InvalidGrantException":
|
122
|
+
throw await de_InvalidGrantExceptionRes(parsedOutput, context);
|
123
|
+
case "InvalidRequestException":
|
124
|
+
case "com.amazonaws.ssooidc#InvalidRequestException":
|
125
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
126
|
+
case "InvalidScopeException":
|
127
|
+
case "com.amazonaws.ssooidc#InvalidScopeException":
|
128
|
+
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
129
|
+
case "SlowDownException":
|
130
|
+
case "com.amazonaws.ssooidc#SlowDownException":
|
131
|
+
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
132
|
+
case "UnauthorizedClientException":
|
133
|
+
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
134
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
135
|
+
case "UnsupportedGrantTypeException":
|
136
|
+
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
137
|
+
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
|
138
|
+
default:
|
139
|
+
const parsedBody = parsedOutput.body;
|
140
|
+
return throwDefaultError({
|
141
|
+
output,
|
142
|
+
parsedBody,
|
143
|
+
errorCode,
|
144
|
+
});
|
145
|
+
}
|
146
|
+
};
|
147
|
+
export const de_CreateTokenWithIAMCommand = async (output, context) => {
|
148
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
149
|
+
return de_CreateTokenWithIAMCommandError(output, context);
|
150
|
+
}
|
151
|
+
const contents = map({
|
152
|
+
$metadata: deserializeMetadata(output),
|
153
|
+
});
|
154
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
155
|
+
const doc = take(data, {
|
156
|
+
accessToken: __expectString,
|
157
|
+
expiresIn: __expectInt32,
|
158
|
+
idToken: __expectString,
|
159
|
+
issuedTokenType: __expectString,
|
160
|
+
refreshToken: __expectString,
|
161
|
+
scope: _json,
|
162
|
+
tokenType: __expectString,
|
163
|
+
});
|
164
|
+
Object.assign(contents, doc);
|
165
|
+
return contents;
|
166
|
+
};
|
167
|
+
const de_CreateTokenWithIAMCommandError = async (output, context) => {
|
168
|
+
const parsedOutput = {
|
169
|
+
...output,
|
170
|
+
body: await parseErrorBody(output.body, context),
|
171
|
+
};
|
172
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
173
|
+
switch (errorCode) {
|
174
|
+
case "AccessDeniedException":
|
175
|
+
case "com.amazonaws.ssooidc#AccessDeniedException":
|
176
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
177
|
+
case "AuthorizationPendingException":
|
178
|
+
case "com.amazonaws.ssooidc#AuthorizationPendingException":
|
179
|
+
throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
|
180
|
+
case "ExpiredTokenException":
|
181
|
+
case "com.amazonaws.ssooidc#ExpiredTokenException":
|
182
|
+
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
183
|
+
case "InternalServerException":
|
184
|
+
case "com.amazonaws.ssooidc#InternalServerException":
|
185
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
186
|
+
case "InvalidClientException":
|
187
|
+
case "com.amazonaws.ssooidc#InvalidClientException":
|
188
|
+
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
189
|
+
case "InvalidGrantException":
|
190
|
+
case "com.amazonaws.ssooidc#InvalidGrantException":
|
191
|
+
throw await de_InvalidGrantExceptionRes(parsedOutput, context);
|
192
|
+
case "InvalidRequestException":
|
193
|
+
case "com.amazonaws.ssooidc#InvalidRequestException":
|
194
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
195
|
+
case "InvalidRequestRegionException":
|
196
|
+
case "com.amazonaws.ssooidc#InvalidRequestRegionException":
|
197
|
+
throw await de_InvalidRequestRegionExceptionRes(parsedOutput, context);
|
198
|
+
case "InvalidScopeException":
|
199
|
+
case "com.amazonaws.ssooidc#InvalidScopeException":
|
200
|
+
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
201
|
+
case "SlowDownException":
|
202
|
+
case "com.amazonaws.ssooidc#SlowDownException":
|
203
|
+
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
204
|
+
case "UnauthorizedClientException":
|
205
|
+
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
206
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
207
|
+
case "UnsupportedGrantTypeException":
|
208
|
+
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
209
|
+
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
|
210
|
+
default:
|
211
|
+
const parsedBody = parsedOutput.body;
|
212
|
+
return throwDefaultError({
|
213
|
+
output,
|
214
|
+
parsedBody,
|
215
|
+
errorCode,
|
216
|
+
});
|
217
|
+
}
|
218
|
+
};
|
219
|
+
export const de_RegisterClientCommand = async (output, context) => {
|
220
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
221
|
+
return de_RegisterClientCommandError(output, context);
|
222
|
+
}
|
223
|
+
const contents = map({
|
224
|
+
$metadata: deserializeMetadata(output),
|
225
|
+
});
|
226
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
227
|
+
const doc = take(data, {
|
228
|
+
authorizationEndpoint: __expectString,
|
229
|
+
clientId: __expectString,
|
230
|
+
clientIdIssuedAt: __expectLong,
|
231
|
+
clientSecret: __expectString,
|
232
|
+
clientSecretExpiresAt: __expectLong,
|
233
|
+
tokenEndpoint: __expectString,
|
234
|
+
});
|
235
|
+
Object.assign(contents, doc);
|
236
|
+
return contents;
|
237
|
+
};
|
238
|
+
const de_RegisterClientCommandError = async (output, context) => {
|
239
|
+
const parsedOutput = {
|
240
|
+
...output,
|
241
|
+
body: await parseErrorBody(output.body, context),
|
242
|
+
};
|
243
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
244
|
+
switch (errorCode) {
|
245
|
+
case "InternalServerException":
|
246
|
+
case "com.amazonaws.ssooidc#InternalServerException":
|
247
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
248
|
+
case "InvalidClientMetadataException":
|
249
|
+
case "com.amazonaws.ssooidc#InvalidClientMetadataException":
|
250
|
+
throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context);
|
251
|
+
case "InvalidRequestException":
|
252
|
+
case "com.amazonaws.ssooidc#InvalidRequestException":
|
253
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
254
|
+
case "InvalidScopeException":
|
255
|
+
case "com.amazonaws.ssooidc#InvalidScopeException":
|
256
|
+
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
257
|
+
default:
|
258
|
+
const parsedBody = parsedOutput.body;
|
259
|
+
return throwDefaultError({
|
260
|
+
output,
|
261
|
+
parsedBody,
|
262
|
+
errorCode,
|
263
|
+
});
|
264
|
+
}
|
265
|
+
};
|
266
|
+
export const de_StartDeviceAuthorizationCommand = async (output, context) => {
|
267
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
268
|
+
return de_StartDeviceAuthorizationCommandError(output, context);
|
269
|
+
}
|
270
|
+
const contents = map({
|
271
|
+
$metadata: deserializeMetadata(output),
|
272
|
+
});
|
273
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
274
|
+
const doc = take(data, {
|
275
|
+
deviceCode: __expectString,
|
276
|
+
expiresIn: __expectInt32,
|
277
|
+
interval: __expectInt32,
|
278
|
+
userCode: __expectString,
|
279
|
+
verificationUri: __expectString,
|
280
|
+
verificationUriComplete: __expectString,
|
281
|
+
});
|
282
|
+
Object.assign(contents, doc);
|
283
|
+
return contents;
|
284
|
+
};
|
285
|
+
const de_StartDeviceAuthorizationCommandError = async (output, context) => {
|
286
|
+
const parsedOutput = {
|
287
|
+
...output,
|
288
|
+
body: await parseErrorBody(output.body, context),
|
289
|
+
};
|
290
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
291
|
+
switch (errorCode) {
|
292
|
+
case "InternalServerException":
|
293
|
+
case "com.amazonaws.ssooidc#InternalServerException":
|
294
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
295
|
+
case "InvalidClientException":
|
296
|
+
case "com.amazonaws.ssooidc#InvalidClientException":
|
297
|
+
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
298
|
+
case "InvalidRequestException":
|
299
|
+
case "com.amazonaws.ssooidc#InvalidRequestException":
|
300
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
301
|
+
case "SlowDownException":
|
302
|
+
case "com.amazonaws.ssooidc#SlowDownException":
|
303
|
+
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
304
|
+
case "UnauthorizedClientException":
|
305
|
+
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
306
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
307
|
+
default:
|
308
|
+
const parsedBody = parsedOutput.body;
|
309
|
+
return throwDefaultError({
|
310
|
+
output,
|
311
|
+
parsedBody,
|
312
|
+
errorCode,
|
313
|
+
});
|
314
|
+
}
|
315
|
+
};
|
316
|
+
const throwDefaultError = withBaseException(__BaseException);
|
317
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
318
|
+
const contents = map({});
|
319
|
+
const data = parsedOutput.body;
|
320
|
+
const doc = take(data, {
|
321
|
+
error: __expectString,
|
322
|
+
error_description: __expectString,
|
323
|
+
});
|
324
|
+
Object.assign(contents, doc);
|
325
|
+
const exception = new AccessDeniedException({
|
326
|
+
$metadata: deserializeMetadata(parsedOutput),
|
327
|
+
...contents,
|
328
|
+
});
|
329
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
330
|
+
};
|
331
|
+
const de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => {
|
332
|
+
const contents = map({});
|
333
|
+
const data = parsedOutput.body;
|
334
|
+
const doc = take(data, {
|
335
|
+
error: __expectString,
|
336
|
+
error_description: __expectString,
|
337
|
+
});
|
338
|
+
Object.assign(contents, doc);
|
339
|
+
const exception = new AuthorizationPendingException({
|
340
|
+
$metadata: deserializeMetadata(parsedOutput),
|
341
|
+
...contents,
|
342
|
+
});
|
343
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
344
|
+
};
|
345
|
+
const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
|
346
|
+
const contents = map({});
|
347
|
+
const data = parsedOutput.body;
|
348
|
+
const doc = take(data, {
|
349
|
+
error: __expectString,
|
350
|
+
error_description: __expectString,
|
351
|
+
});
|
352
|
+
Object.assign(contents, doc);
|
353
|
+
const exception = new ExpiredTokenException({
|
354
|
+
$metadata: deserializeMetadata(parsedOutput),
|
355
|
+
...contents,
|
356
|
+
});
|
357
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
358
|
+
};
|
359
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
360
|
+
const contents = map({});
|
361
|
+
const data = parsedOutput.body;
|
362
|
+
const doc = take(data, {
|
363
|
+
error: __expectString,
|
364
|
+
error_description: __expectString,
|
365
|
+
});
|
366
|
+
Object.assign(contents, doc);
|
367
|
+
const exception = new InternalServerException({
|
368
|
+
$metadata: deserializeMetadata(parsedOutput),
|
369
|
+
...contents,
|
370
|
+
});
|
371
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
372
|
+
};
|
373
|
+
const de_InvalidClientExceptionRes = async (parsedOutput, context) => {
|
374
|
+
const contents = map({});
|
375
|
+
const data = parsedOutput.body;
|
376
|
+
const doc = take(data, {
|
377
|
+
error: __expectString,
|
378
|
+
error_description: __expectString,
|
379
|
+
});
|
380
|
+
Object.assign(contents, doc);
|
381
|
+
const exception = new InvalidClientException({
|
382
|
+
$metadata: deserializeMetadata(parsedOutput),
|
383
|
+
...contents,
|
384
|
+
});
|
385
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
386
|
+
};
|
387
|
+
const de_InvalidClientMetadataExceptionRes = async (parsedOutput, context) => {
|
388
|
+
const contents = map({});
|
389
|
+
const data = parsedOutput.body;
|
390
|
+
const doc = take(data, {
|
391
|
+
error: __expectString,
|
392
|
+
error_description: __expectString,
|
393
|
+
});
|
394
|
+
Object.assign(contents, doc);
|
395
|
+
const exception = new InvalidClientMetadataException({
|
396
|
+
$metadata: deserializeMetadata(parsedOutput),
|
397
|
+
...contents,
|
398
|
+
});
|
399
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
400
|
+
};
|
401
|
+
const de_InvalidGrantExceptionRes = async (parsedOutput, context) => {
|
402
|
+
const contents = map({});
|
403
|
+
const data = parsedOutput.body;
|
404
|
+
const doc = take(data, {
|
405
|
+
error: __expectString,
|
406
|
+
error_description: __expectString,
|
407
|
+
});
|
408
|
+
Object.assign(contents, doc);
|
409
|
+
const exception = new InvalidGrantException({
|
410
|
+
$metadata: deserializeMetadata(parsedOutput),
|
411
|
+
...contents,
|
412
|
+
});
|
413
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
414
|
+
};
|
415
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
416
|
+
const contents = map({});
|
417
|
+
const data = parsedOutput.body;
|
418
|
+
const doc = take(data, {
|
419
|
+
error: __expectString,
|
420
|
+
error_description: __expectString,
|
421
|
+
});
|
422
|
+
Object.assign(contents, doc);
|
423
|
+
const exception = new InvalidRequestException({
|
424
|
+
$metadata: deserializeMetadata(parsedOutput),
|
425
|
+
...contents,
|
426
|
+
});
|
427
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
428
|
+
};
|
429
|
+
const de_InvalidRequestRegionExceptionRes = async (parsedOutput, context) => {
|
430
|
+
const contents = map({});
|
431
|
+
const data = parsedOutput.body;
|
432
|
+
const doc = take(data, {
|
433
|
+
endpoint: __expectString,
|
434
|
+
error: __expectString,
|
435
|
+
error_description: __expectString,
|
436
|
+
region: __expectString,
|
437
|
+
});
|
438
|
+
Object.assign(contents, doc);
|
439
|
+
const exception = new InvalidRequestRegionException({
|
440
|
+
$metadata: deserializeMetadata(parsedOutput),
|
441
|
+
...contents,
|
442
|
+
});
|
443
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
444
|
+
};
|
445
|
+
const de_InvalidScopeExceptionRes = async (parsedOutput, context) => {
|
446
|
+
const contents = map({});
|
447
|
+
const data = parsedOutput.body;
|
448
|
+
const doc = take(data, {
|
449
|
+
error: __expectString,
|
450
|
+
error_description: __expectString,
|
451
|
+
});
|
452
|
+
Object.assign(contents, doc);
|
453
|
+
const exception = new InvalidScopeException({
|
454
|
+
$metadata: deserializeMetadata(parsedOutput),
|
455
|
+
...contents,
|
456
|
+
});
|
457
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
458
|
+
};
|
459
|
+
const de_SlowDownExceptionRes = async (parsedOutput, context) => {
|
460
|
+
const contents = map({});
|
461
|
+
const data = parsedOutput.body;
|
462
|
+
const doc = take(data, {
|
463
|
+
error: __expectString,
|
464
|
+
error_description: __expectString,
|
465
|
+
});
|
466
|
+
Object.assign(contents, doc);
|
467
|
+
const exception = new SlowDownException({
|
468
|
+
$metadata: deserializeMetadata(parsedOutput),
|
469
|
+
...contents,
|
470
|
+
});
|
471
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
472
|
+
};
|
473
|
+
const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
|
474
|
+
const contents = map({});
|
475
|
+
const data = parsedOutput.body;
|
476
|
+
const doc = take(data, {
|
477
|
+
error: __expectString,
|
478
|
+
error_description: __expectString,
|
479
|
+
});
|
480
|
+
Object.assign(contents, doc);
|
481
|
+
const exception = new UnauthorizedClientException({
|
482
|
+
$metadata: deserializeMetadata(parsedOutput),
|
483
|
+
...contents,
|
484
|
+
});
|
485
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
486
|
+
};
|
487
|
+
const de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => {
|
488
|
+
const contents = map({});
|
489
|
+
const data = parsedOutput.body;
|
490
|
+
const doc = take(data, {
|
491
|
+
error: __expectString,
|
492
|
+
error_description: __expectString,
|
493
|
+
});
|
494
|
+
Object.assign(contents, doc);
|
495
|
+
const exception = new UnsupportedGrantTypeException({
|
496
|
+
$metadata: deserializeMetadata(parsedOutput),
|
497
|
+
...contents,
|
498
|
+
});
|
499
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
500
|
+
};
|
501
|
+
const deserializeMetadata = (output) => ({
|
502
|
+
httpStatusCode: output.statusCode,
|
503
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
504
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
505
|
+
cfId: output.headers["x-amz-cf-id"],
|
506
|
+
});
|
507
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
508
|
+
const isSerializableHeaderValue = (value) => value !== undefined &&
|
509
|
+
value !== null &&
|
510
|
+
value !== "" &&
|
511
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
512
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
513
|
+
const _ai = "aws_iam";
|
514
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
515
|
+
if (encoded.length) {
|
516
|
+
return JSON.parse(encoded);
|
517
|
+
}
|
518
|
+
return {};
|
519
|
+
});
|
520
|
+
const parseErrorBody = async (errorBody, context) => {
|
521
|
+
const value = await parseBody(errorBody, context);
|
522
|
+
value.message = value.message ?? value.Message;
|
523
|
+
return value;
|
524
|
+
};
|
525
|
+
const loadRestJsonErrorCode = (output, data) => {
|
526
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
527
|
+
const sanitizeErrorCode = (rawValue) => {
|
528
|
+
let cleanValue = rawValue;
|
529
|
+
if (typeof cleanValue === "number") {
|
530
|
+
cleanValue = cleanValue.toString();
|
531
|
+
}
|
532
|
+
if (cleanValue.indexOf(",") >= 0) {
|
533
|
+
cleanValue = cleanValue.split(",")[0];
|
534
|
+
}
|
535
|
+
if (cleanValue.indexOf(":") >= 0) {
|
536
|
+
cleanValue = cleanValue.split(":")[0];
|
537
|
+
}
|
538
|
+
if (cleanValue.indexOf("#") >= 0) {
|
539
|
+
cleanValue = cleanValue.split("#")[1];
|
540
|
+
}
|
541
|
+
return cleanValue;
|
542
|
+
};
|
543
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
544
|
+
if (headerKey !== undefined) {
|
545
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
546
|
+
}
|
547
|
+
if (data.code !== undefined) {
|
548
|
+
return sanitizeErrorCode(data.code);
|
549
|
+
}
|
550
|
+
if (data["__type"] !== undefined) {
|
551
|
+
return sanitizeErrorCode(data["__type"]);
|
552
|
+
}
|
553
|
+
};
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import packageInfo from "../package.json";
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
3
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
6
|
+
import { invalidProvider } from "@smithy/invalid-dependency";
|
7
|
+
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
8
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
9
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
10
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
11
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
12
|
+
export const getRuntimeConfig = (config) => {
|
13
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
14
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
15
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
16
|
+
return {
|
17
|
+
...clientSharedValues,
|
18
|
+
...config,
|
19
|
+
runtime: "browser",
|
20
|
+
defaultsMode,
|
21
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
22
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
23
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
24
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
25
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
26
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
27
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
28
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
29
|
+
sha256: config?.sha256 ?? Sha256,
|
30
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
31
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
32
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
33
|
+
};
|
34
|
+
};
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import packageInfo from "../package.json";
|
2
|
+
import { defaultProvider as credentialDefaultProvider } from "./credentialDefaultProvider";
|
3
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
4
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
5
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
6
|
+
import { Hash } from "@smithy/hash-node";
|
7
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
8
|
+
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
10
|
+
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
11
|
+
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
12
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
13
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
14
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
15
|
+
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
16
|
+
export const getRuntimeConfig = (config) => {
|
17
|
+
emitWarningIfUnsupportedVersion(process.version);
|
18
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
19
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
20
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
21
|
+
awsCheckVersion(process.version);
|
22
|
+
return {
|
23
|
+
...clientSharedValues,
|
24
|
+
...config,
|
25
|
+
runtime: "node",
|
26
|
+
defaultsMode,
|
27
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
28
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
29
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
30
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
31
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
32
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
33
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
34
|
+
retryMode: config?.retryMode ??
|
35
|
+
loadNodeConfig({
|
36
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
37
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
38
|
+
}),
|
39
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
40
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
41
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
42
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
43
|
+
};
|
44
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
2
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
3
|
+
export const getRuntimeConfig = (config) => {
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
5
|
+
return {
|
6
|
+
...browserDefaults,
|
7
|
+
...config,
|
8
|
+
runtime: "react-native",
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
10
|
+
};
|
11
|
+
};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { NoOpLogger } from "@smithy/smithy-client";
|
2
|
+
import { parseUrl } from "@smithy/url-parser";
|
3
|
+
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
4
|
+
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
5
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
6
|
+
export const getRuntimeConfig = (config) => {
|
7
|
+
return {
|
8
|
+
apiVersion: "2019-06-10",
|
9
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
10
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
11
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
12
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
13
|
+
extensions: config?.extensions ?? [],
|
14
|
+
logger: config?.logger ?? new NoOpLogger(),
|
15
|
+
serviceId: config?.serviceId ?? "SSO OIDC",
|
16
|
+
urlParser: config?.urlParser ?? parseUrl,
|
17
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
18
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
19
|
+
};
|
20
|
+
};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
2
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
3
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
4
|
+
const asPartial = (t) => t;
|
5
|
+
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
6
|
+
const extensionConfiguration = {
|
7
|
+
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
8
|
+
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
9
|
+
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
10
|
+
};
|
11
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
12
|
+
return {
|
13
|
+
...runtimeConfig,
|
14
|
+
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
15
|
+
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
16
|
+
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
17
|
+
};
|
18
|
+
};
|