@jjrawlins/cdk-iam-policy-builder-helper 0.0.79 → 0.0.81
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/cdkiampolicybuilderhelper/go.mod +1 -1
- package/cdkiampolicybuilderhelper/jsii/jsii.go +2 -2
- package/cdkiampolicybuilderhelper/version +1 -1
- package/lib/constructs/Actions.d.ts +45 -0
- package/lib/constructs/Actions.js +46 -1
- package/lib/constructs/ManagedPolicies.d.ts +4 -0
- package/lib/constructs/ManagedPolicies.js +5 -1
- package/methods_list.txt +43 -0
- package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +3367 -10560
- package/node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.shared.js +7 -0
- package/node_modules/@aws-sdk/client-iam/dist-es/IAMClient.js +2 -0
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/AddClientIDToOpenIDConnectProviderCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/AddRoleToInstanceProfileCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/AddUserToGroupCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/AttachGroupPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/AttachRolePolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/AttachUserPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ChangePasswordCommand.js +3 -10
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/CreateAccessKeyCommand.js +3 -10
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/CreateAccountAliasCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/CreateDelegationRequestCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/CreateGroupCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/CreateInstanceProfileCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/CreateLoginProfileCommand.js +3 -10
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/CreateOpenIDConnectProviderCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/CreatePolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/CreatePolicyVersionCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/CreateRoleCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/CreateSAMLProviderCommand.js +3 -10
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/CreateServiceLinkedRoleCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/CreateServiceSpecificCredentialCommand.js +3 -10
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/CreateUserCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/CreateVirtualMFADeviceCommand.js +3 -10
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeactivateMFADeviceCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteAccessKeyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteAccountAliasCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteAccountPasswordPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteGroupCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteGroupPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteInstanceProfileCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteLoginProfileCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteOpenIDConnectProviderCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeletePolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeletePolicyVersionCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteRoleCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteRolePermissionsBoundaryCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteRolePolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteSAMLProviderCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteSSHPublicKeyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteServerCertificateCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteServiceLinkedRoleCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteServiceSpecificCredentialCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteSigningCertificateCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteUserCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteUserPermissionsBoundaryCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteUserPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DeleteVirtualMFADeviceCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DetachGroupPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DetachRolePolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DetachUserPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DisableOrganizationsRootCredentialsManagementCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/DisableOrganizationsRootSessionsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/EnableMFADeviceCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/EnableOrganizationsRootCredentialsManagementCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/EnableOrganizationsRootSessionsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GenerateCredentialReportCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GenerateOrganizationsAccessReportCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GenerateServiceLastAccessedDetailsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetAccessKeyLastUsedCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetAccountAuthorizationDetailsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetAccountPasswordPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetAccountSummaryCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetContextKeysForCustomPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetContextKeysForPrincipalPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetCredentialReportCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetGroupCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetGroupPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetInstanceProfileCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetLoginProfileCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetMFADeviceCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetOpenIDConnectProviderCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetOrganizationsAccessReportCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetPolicyVersionCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetRoleCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetRolePolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetSAMLProviderCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetSSHPublicKeyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetServerCertificateCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetServiceLastAccessedDetailsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetServiceLastAccessedDetailsWithEntitiesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetServiceLinkedRoleDeletionStatusCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetUserCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetUserPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListAccessKeysCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListAccountAliasesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListAttachedGroupPoliciesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListAttachedRolePoliciesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListAttachedUserPoliciesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListEntitiesForPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListGroupPoliciesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListGroupsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListGroupsForUserCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListInstanceProfileTagsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListInstanceProfilesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListInstanceProfilesForRoleCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListMFADeviceTagsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListMFADevicesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListOpenIDConnectProviderTagsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListOpenIDConnectProvidersCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListOrganizationsFeaturesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListPoliciesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListPoliciesGrantingServiceAccessCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListPolicyTagsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListPolicyVersionsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListRolePoliciesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListRoleTagsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListRolesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListSAMLProviderTagsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListSAMLProvidersCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListSSHPublicKeysCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListServerCertificateTagsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListServerCertificatesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListServiceSpecificCredentialsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListSigningCertificatesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListUserPoliciesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListUserTagsCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListUsersCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ListVirtualMFADevicesCommand.js +3 -10
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/PutGroupPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/PutRolePermissionsBoundaryCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/PutRolePolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/PutUserPermissionsBoundaryCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/PutUserPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/RemoveClientIDFromOpenIDConnectProviderCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/RemoveRoleFromInstanceProfileCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/RemoveUserFromGroupCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ResetServiceSpecificCredentialCommand.js +3 -10
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/ResyncMFADeviceCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/SetDefaultPolicyVersionCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/SetSecurityTokenServicePreferencesCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/SimulateCustomPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/SimulatePrincipalPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/TagInstanceProfileCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/TagMFADeviceCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/TagOpenIDConnectProviderCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/TagPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/TagRoleCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/TagSAMLProviderCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/TagServerCertificateCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/TagUserCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UntagInstanceProfileCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UntagMFADeviceCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UntagOpenIDConnectProviderCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UntagPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UntagRoleCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UntagSAMLProviderCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UntagServerCertificateCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UntagUserCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UpdateAccessKeyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UpdateAccountPasswordPolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UpdateAssumeRolePolicyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UpdateGroupCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UpdateLoginProfileCommand.js +3 -10
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UpdateOpenIDConnectProviderThumbprintCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UpdateRoleCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UpdateRoleDescriptionCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UpdateSAMLProviderCommand.js +3 -10
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UpdateSSHPublicKeyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UpdateServerCertificateCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UpdateServiceSpecificCredentialCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UpdateSigningCertificateCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UpdateUserCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UploadSSHPublicKeyCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UploadServerCertificateCommand.js +3 -10
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/UploadSigningCertificateCommand.js +3 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/models/models_0.js +0 -54
- package/node_modules/@aws-sdk/client-iam/dist-es/models/models_1.js +0 -13
- package/node_modules/@aws-sdk/client-iam/dist-es/runtimeConfig.shared.js +7 -0
- package/node_modules/@aws-sdk/client-iam/dist-es/schemas/schemas_0.js +3353 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/IAMClient.d.ts +10 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/models/models_0.d.ts +0 -44
- package/node_modules/@aws-sdk/client-iam/dist-types/models/models_1.d.ts +0 -12
- package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/schemas/schemas_0.d.ts +568 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/IAMClient.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/models_0.d.ts +0 -31
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/models_1.d.ts +0 -9
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/schemas/schemas_0.d.ts +574 -0
- package/node_modules/@aws-sdk/client-iam/package.json +34 -34
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +277 -270
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js +3 -10
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountRolesCommand.js +3 -10
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountsCommand.js +3 -10
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/LogoutCommand.js +3 -10
- package/node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js +0 -26
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +265 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +10 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts +0 -24
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/schemas/schemas_0.d.ts +26 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/models_0.d.ts +0 -18
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/schemas/schemas_0.d.ts +32 -0
- package/node_modules/@aws-sdk/client-sso/package.json +32 -32
- package/node_modules/@aws-sdk/core/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +246 -310
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +207 -548
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +3 -10
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js +0 -13
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +211 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js +3 -10
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js +3 -10
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/models_0.js +0 -17
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +214 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +10 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/models_0.d.ts +0 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/schemas/schemas_0.d.ts +23 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STSClient.d.ts +10 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/models_0.d.ts +8 -24
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/schemas/schemas_0.d.ts +26 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/models_0.d.ts +0 -6
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +28 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/STSClient.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/models_0.d.ts +0 -10
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/schemas/schemas_0.d.ts +32 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
- package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/package.json +7 -7
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +43 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +7 -2
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +44 -3
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +7 -2
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/smithy-client/package.json +3 -3
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/package.json +3 -3
- package/node_modules/@aws-sdk/client-iam/dist-es/protocols/Aws_query.js +0 -9630
- package/node_modules/@aws-sdk/client-iam/dist-types/protocols/Aws_query.d.ts +0 -1487
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/protocols/Aws_query.d.ts +0 -1985
- package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +0 -210
- package/node_modules/@aws-sdk/client-sso/dist-types/protocols/Aws_restJson1.d.ts +0 -38
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -53
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js +0 -257
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/protocols/Aws_query.js +0 -528
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +0 -11
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/protocols/Aws_query.d.ts +0 -20
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +0 -17
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/protocols/Aws_query.d.ts +0 -29
|
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
|
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
7
|
var configResolver = require('@smithy/config-resolver');
|
|
8
8
|
var core = require('@smithy/core');
|
|
9
|
+
var schema = require('@smithy/core/schema');
|
|
9
10
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
11
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
12
|
var middlewareRetry = require('@smithy/middleware-retry');
|
|
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
14
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
15
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
-
var core$1 = require('@aws-sdk/core');
|
|
19
18
|
|
|
20
19
|
const resolveClientEndpointParameters = (options) => {
|
|
21
20
|
return Object.assign(options, {
|
|
@@ -91,6 +90,7 @@ class SSOClient extends smithyClient.Client {
|
|
|
91
90
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
91
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
92
|
this.config = _config_8;
|
|
93
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
94
94
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
95
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
96
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -110,14 +110,14 @@ class SSOClient extends smithyClient.Client {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class SSOServiceException extends smithyClient.ServiceException {
|
|
113
|
+
let SSOServiceException$1 = class SSOServiceException extends smithyClient.ServiceException {
|
|
114
114
|
constructor(options) {
|
|
115
115
|
super(options);
|
|
116
116
|
Object.setPrototypeOf(this, SSOServiceException.prototype);
|
|
117
117
|
}
|
|
118
|
-
}
|
|
118
|
+
};
|
|
119
119
|
|
|
120
|
-
class InvalidRequestException extends SSOServiceException {
|
|
120
|
+
let InvalidRequestException$1 = class InvalidRequestException extends SSOServiceException$1 {
|
|
121
121
|
name = "InvalidRequestException";
|
|
122
122
|
$fault = "client";
|
|
123
123
|
constructor(opts) {
|
|
@@ -128,8 +128,8 @@ class InvalidRequestException extends SSOServiceException {
|
|
|
128
128
|
});
|
|
129
129
|
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
130
130
|
}
|
|
131
|
-
}
|
|
132
|
-
class ResourceNotFoundException extends SSOServiceException {
|
|
131
|
+
};
|
|
132
|
+
let ResourceNotFoundException$1 = class ResourceNotFoundException extends SSOServiceException$1 {
|
|
133
133
|
name = "ResourceNotFoundException";
|
|
134
134
|
$fault = "client";
|
|
135
135
|
constructor(opts) {
|
|
@@ -140,8 +140,8 @@ class ResourceNotFoundException extends SSOServiceException {
|
|
|
140
140
|
});
|
|
141
141
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
142
142
|
}
|
|
143
|
-
}
|
|
144
|
-
class TooManyRequestsException extends SSOServiceException {
|
|
143
|
+
};
|
|
144
|
+
let TooManyRequestsException$1 = class TooManyRequestsException extends SSOServiceException$1 {
|
|
145
145
|
name = "TooManyRequestsException";
|
|
146
146
|
$fault = "client";
|
|
147
147
|
constructor(opts) {
|
|
@@ -152,8 +152,8 @@ class TooManyRequestsException extends SSOServiceException {
|
|
|
152
152
|
});
|
|
153
153
|
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
154
154
|
}
|
|
155
|
-
}
|
|
156
|
-
class UnauthorizedException extends SSOServiceException {
|
|
155
|
+
};
|
|
156
|
+
let UnauthorizedException$1 = class UnauthorizedException extends SSOServiceException$1 {
|
|
157
157
|
name = "UnauthorizedException";
|
|
158
158
|
$fault = "client";
|
|
159
159
|
constructor(opts) {
|
|
@@ -164,252 +164,280 @@ class UnauthorizedException extends SSOServiceException {
|
|
|
164
164
|
});
|
|
165
165
|
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
166
166
|
}
|
|
167
|
-
}
|
|
168
|
-
const GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({
|
|
169
|
-
...obj,
|
|
170
|
-
...(obj.accessToken && { accessToken: smithyClient.SENSITIVE_STRING }),
|
|
171
|
-
});
|
|
172
|
-
const RoleCredentialsFilterSensitiveLog = (obj) => ({
|
|
173
|
-
...obj,
|
|
174
|
-
...(obj.secretAccessKey && { secretAccessKey: smithyClient.SENSITIVE_STRING }),
|
|
175
|
-
...(obj.sessionToken && { sessionToken: smithyClient.SENSITIVE_STRING }),
|
|
176
|
-
});
|
|
177
|
-
const GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({
|
|
178
|
-
...obj,
|
|
179
|
-
...(obj.roleCredentials && { roleCredentials: RoleCredentialsFilterSensitiveLog(obj.roleCredentials) }),
|
|
180
|
-
});
|
|
181
|
-
const ListAccountRolesRequestFilterSensitiveLog = (obj) => ({
|
|
182
|
-
...obj,
|
|
183
|
-
...(obj.accessToken && { accessToken: smithyClient.SENSITIVE_STRING }),
|
|
184
|
-
});
|
|
185
|
-
const ListAccountsRequestFilterSensitiveLog = (obj) => ({
|
|
186
|
-
...obj,
|
|
187
|
-
...(obj.accessToken && { accessToken: smithyClient.SENSITIVE_STRING }),
|
|
188
|
-
});
|
|
189
|
-
const LogoutRequestFilterSensitiveLog = (obj) => ({
|
|
190
|
-
...obj,
|
|
191
|
-
...(obj.accessToken && { accessToken: smithyClient.SENSITIVE_STRING }),
|
|
192
|
-
});
|
|
193
|
-
|
|
194
|
-
const se_GetRoleCredentialsCommand = async (input, context) => {
|
|
195
|
-
const b = core.requestBuilder(input, context);
|
|
196
|
-
const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
|
|
197
|
-
[_xasbt]: input[_aT],
|
|
198
|
-
});
|
|
199
|
-
b.bp("/federation/credentials");
|
|
200
|
-
const query = smithyClient.map({
|
|
201
|
-
[_rn]: [, smithyClient.expectNonNull(input[_rN], `roleName`)],
|
|
202
|
-
[_ai]: [, smithyClient.expectNonNull(input[_aI], `accountId`)],
|
|
203
|
-
});
|
|
204
|
-
let body;
|
|
205
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
206
|
-
return b.build();
|
|
207
|
-
};
|
|
208
|
-
const se_ListAccountRolesCommand = async (input, context) => {
|
|
209
|
-
const b = core.requestBuilder(input, context);
|
|
210
|
-
const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
|
|
211
|
-
[_xasbt]: input[_aT],
|
|
212
|
-
});
|
|
213
|
-
b.bp("/assignment/roles");
|
|
214
|
-
const query = smithyClient.map({
|
|
215
|
-
[_nt]: [, input[_nT]],
|
|
216
|
-
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
217
|
-
[_ai]: [, smithyClient.expectNonNull(input[_aI], `accountId`)],
|
|
218
|
-
});
|
|
219
|
-
let body;
|
|
220
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
221
|
-
return b.build();
|
|
222
|
-
};
|
|
223
|
-
const se_ListAccountsCommand = async (input, context) => {
|
|
224
|
-
const b = core.requestBuilder(input, context);
|
|
225
|
-
const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
|
|
226
|
-
[_xasbt]: input[_aT],
|
|
227
|
-
});
|
|
228
|
-
b.bp("/assignment/accounts");
|
|
229
|
-
const query = smithyClient.map({
|
|
230
|
-
[_nt]: [, input[_nT]],
|
|
231
|
-
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
232
|
-
});
|
|
233
|
-
let body;
|
|
234
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
235
|
-
return b.build();
|
|
236
|
-
};
|
|
237
|
-
const se_LogoutCommand = async (input, context) => {
|
|
238
|
-
const b = core.requestBuilder(input, context);
|
|
239
|
-
const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
|
|
240
|
-
[_xasbt]: input[_aT],
|
|
241
|
-
});
|
|
242
|
-
b.bp("/logout");
|
|
243
|
-
let body;
|
|
244
|
-
b.m("POST").h(headers).b(body);
|
|
245
|
-
return b.build();
|
|
246
|
-
};
|
|
247
|
-
const de_GetRoleCredentialsCommand = async (output, context) => {
|
|
248
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
249
|
-
return de_CommandError(output, context);
|
|
250
|
-
}
|
|
251
|
-
const contents = smithyClient.map({
|
|
252
|
-
$metadata: deserializeMetadata(output),
|
|
253
|
-
});
|
|
254
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
255
|
-
const doc = smithyClient.take(data, {
|
|
256
|
-
roleCredentials: smithyClient._json,
|
|
257
|
-
});
|
|
258
|
-
Object.assign(contents, doc);
|
|
259
|
-
return contents;
|
|
260
|
-
};
|
|
261
|
-
const de_ListAccountRolesCommand = async (output, context) => {
|
|
262
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
263
|
-
return de_CommandError(output, context);
|
|
264
|
-
}
|
|
265
|
-
const contents = smithyClient.map({
|
|
266
|
-
$metadata: deserializeMetadata(output),
|
|
267
|
-
});
|
|
268
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
269
|
-
const doc = smithyClient.take(data, {
|
|
270
|
-
nextToken: smithyClient.expectString,
|
|
271
|
-
roleList: smithyClient._json,
|
|
272
|
-
});
|
|
273
|
-
Object.assign(contents, doc);
|
|
274
|
-
return contents;
|
|
275
|
-
};
|
|
276
|
-
const de_ListAccountsCommand = async (output, context) => {
|
|
277
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
278
|
-
return de_CommandError(output, context);
|
|
279
|
-
}
|
|
280
|
-
const contents = smithyClient.map({
|
|
281
|
-
$metadata: deserializeMetadata(output),
|
|
282
|
-
});
|
|
283
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
284
|
-
const doc = smithyClient.take(data, {
|
|
285
|
-
accountList: smithyClient._json,
|
|
286
|
-
nextToken: smithyClient.expectString,
|
|
287
|
-
});
|
|
288
|
-
Object.assign(contents, doc);
|
|
289
|
-
return contents;
|
|
290
|
-
};
|
|
291
|
-
const de_LogoutCommand = async (output, context) => {
|
|
292
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
293
|
-
return de_CommandError(output, context);
|
|
294
|
-
}
|
|
295
|
-
const contents = smithyClient.map({
|
|
296
|
-
$metadata: deserializeMetadata(output),
|
|
297
|
-
});
|
|
298
|
-
await smithyClient.collectBody(output.body, context);
|
|
299
|
-
return contents;
|
|
300
|
-
};
|
|
301
|
-
const de_CommandError = async (output, context) => {
|
|
302
|
-
const parsedOutput = {
|
|
303
|
-
...output,
|
|
304
|
-
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
305
|
-
};
|
|
306
|
-
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
307
|
-
switch (errorCode) {
|
|
308
|
-
case "InvalidRequestException":
|
|
309
|
-
case "com.amazonaws.sso#InvalidRequestException":
|
|
310
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput);
|
|
311
|
-
case "ResourceNotFoundException":
|
|
312
|
-
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
313
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
314
|
-
case "TooManyRequestsException":
|
|
315
|
-
case "com.amazonaws.sso#TooManyRequestsException":
|
|
316
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput);
|
|
317
|
-
case "UnauthorizedException":
|
|
318
|
-
case "com.amazonaws.sso#UnauthorizedException":
|
|
319
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput);
|
|
320
|
-
default:
|
|
321
|
-
const parsedBody = parsedOutput.body;
|
|
322
|
-
return throwDefaultError({
|
|
323
|
-
output,
|
|
324
|
-
parsedBody,
|
|
325
|
-
errorCode,
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
167
|
};
|
|
329
|
-
|
|
330
|
-
const
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
const
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
});
|
|
354
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
355
|
-
};
|
|
356
|
-
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
357
|
-
const contents = smithyClient.map({});
|
|
358
|
-
const data = parsedOutput.body;
|
|
359
|
-
const doc = smithyClient.take(data, {
|
|
360
|
-
message: smithyClient.expectString,
|
|
361
|
-
});
|
|
362
|
-
Object.assign(contents, doc);
|
|
363
|
-
const exception = new TooManyRequestsException({
|
|
364
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
365
|
-
...contents,
|
|
366
|
-
});
|
|
367
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
368
|
-
};
|
|
369
|
-
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
370
|
-
const contents = smithyClient.map({});
|
|
371
|
-
const data = parsedOutput.body;
|
|
372
|
-
const doc = smithyClient.take(data, {
|
|
373
|
-
message: smithyClient.expectString,
|
|
374
|
-
});
|
|
375
|
-
Object.assign(contents, doc);
|
|
376
|
-
const exception = new UnauthorizedException({
|
|
377
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
378
|
-
...contents,
|
|
379
|
-
});
|
|
380
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
381
|
-
};
|
|
382
|
-
const deserializeMetadata = (output) => ({
|
|
383
|
-
httpStatusCode: output.statusCode,
|
|
384
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
385
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
386
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
387
|
-
});
|
|
168
|
+
|
|
169
|
+
const _AI = "AccountInfo";
|
|
170
|
+
const _ALT = "AccountListType";
|
|
171
|
+
const _ATT = "AccessTokenType";
|
|
172
|
+
const _GRC = "GetRoleCredentials";
|
|
173
|
+
const _GRCR = "GetRoleCredentialsRequest";
|
|
174
|
+
const _GRCRe = "GetRoleCredentialsResponse";
|
|
175
|
+
const _IRE = "InvalidRequestException";
|
|
176
|
+
const _L = "Logout";
|
|
177
|
+
const _LA = "ListAccounts";
|
|
178
|
+
const _LAR = "ListAccountsRequest";
|
|
179
|
+
const _LARR = "ListAccountRolesRequest";
|
|
180
|
+
const _LARRi = "ListAccountRolesResponse";
|
|
181
|
+
const _LARi = "ListAccountsResponse";
|
|
182
|
+
const _LARis = "ListAccountRoles";
|
|
183
|
+
const _LR = "LogoutRequest";
|
|
184
|
+
const _RC = "RoleCredentials";
|
|
185
|
+
const _RI = "RoleInfo";
|
|
186
|
+
const _RLT = "RoleListType";
|
|
187
|
+
const _RNFE = "ResourceNotFoundException";
|
|
188
|
+
const _SAKT = "SecretAccessKeyType";
|
|
189
|
+
const _STT = "SessionTokenType";
|
|
190
|
+
const _TMRE = "TooManyRequestsException";
|
|
191
|
+
const _UE = "UnauthorizedException";
|
|
388
192
|
const _aI = "accountId";
|
|
193
|
+
const _aKI = "accessKeyId";
|
|
194
|
+
const _aL = "accountList";
|
|
195
|
+
const _aN = "accountName";
|
|
389
196
|
const _aT = "accessToken";
|
|
390
197
|
const _ai = "account_id";
|
|
198
|
+
const _c = "client";
|
|
199
|
+
const _e = "error";
|
|
200
|
+
const _eA = "emailAddress";
|
|
201
|
+
const _ex = "expiration";
|
|
202
|
+
const _h = "http";
|
|
203
|
+
const _hE = "httpError";
|
|
204
|
+
const _hH = "httpHeader";
|
|
205
|
+
const _hQ = "httpQuery";
|
|
206
|
+
const _m = "message";
|
|
391
207
|
const _mR = "maxResults";
|
|
392
208
|
const _mr = "max_result";
|
|
393
209
|
const _nT = "nextToken";
|
|
394
210
|
const _nt = "next_token";
|
|
211
|
+
const _rC = "roleCredentials";
|
|
212
|
+
const _rL = "roleList";
|
|
395
213
|
const _rN = "roleName";
|
|
396
214
|
const _rn = "role_name";
|
|
215
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sso";
|
|
216
|
+
const _sAK = "secretAccessKey";
|
|
217
|
+
const _sT = "sessionToken";
|
|
397
218
|
const _xasbt = "x-amz-sso_bearer_token";
|
|
219
|
+
const n0 = "com.amazonaws.sso";
|
|
220
|
+
var AccessTokenType = [0, n0, _ATT, 8, 0];
|
|
221
|
+
var SecretAccessKeyType = [0, n0, _SAKT, 8, 0];
|
|
222
|
+
var SessionTokenType = [0, n0, _STT, 8, 0];
|
|
223
|
+
var AccountInfo = [3, n0, _AI, 0, [_aI, _aN, _eA], [0, 0, 0]];
|
|
224
|
+
var GetRoleCredentialsRequest = [
|
|
225
|
+
3,
|
|
226
|
+
n0,
|
|
227
|
+
_GRCR,
|
|
228
|
+
0,
|
|
229
|
+
[_rN, _aI, _aT],
|
|
230
|
+
[
|
|
231
|
+
[
|
|
232
|
+
0,
|
|
233
|
+
{
|
|
234
|
+
[_hQ]: _rn,
|
|
235
|
+
},
|
|
236
|
+
],
|
|
237
|
+
[
|
|
238
|
+
0,
|
|
239
|
+
{
|
|
240
|
+
[_hQ]: _ai,
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
[
|
|
244
|
+
() => AccessTokenType,
|
|
245
|
+
{
|
|
246
|
+
[_hH]: _xasbt,
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
],
|
|
250
|
+
];
|
|
251
|
+
var GetRoleCredentialsResponse = [3, n0, _GRCRe, 0, [_rC], [[() => RoleCredentials, 0]]];
|
|
252
|
+
var InvalidRequestException = [
|
|
253
|
+
-3,
|
|
254
|
+
n0,
|
|
255
|
+
_IRE,
|
|
256
|
+
{
|
|
257
|
+
[_e]: _c,
|
|
258
|
+
[_hE]: 400,
|
|
259
|
+
},
|
|
260
|
+
[_m],
|
|
261
|
+
[0],
|
|
262
|
+
];
|
|
263
|
+
schema.TypeRegistry.for(n0).registerError(InvalidRequestException, InvalidRequestException$1);
|
|
264
|
+
var ListAccountRolesRequest = [
|
|
265
|
+
3,
|
|
266
|
+
n0,
|
|
267
|
+
_LARR,
|
|
268
|
+
0,
|
|
269
|
+
[_nT, _mR, _aT, _aI],
|
|
270
|
+
[
|
|
271
|
+
[
|
|
272
|
+
0,
|
|
273
|
+
{
|
|
274
|
+
[_hQ]: _nt,
|
|
275
|
+
},
|
|
276
|
+
],
|
|
277
|
+
[
|
|
278
|
+
1,
|
|
279
|
+
{
|
|
280
|
+
[_hQ]: _mr,
|
|
281
|
+
},
|
|
282
|
+
],
|
|
283
|
+
[
|
|
284
|
+
() => AccessTokenType,
|
|
285
|
+
{
|
|
286
|
+
[_hH]: _xasbt,
|
|
287
|
+
},
|
|
288
|
+
],
|
|
289
|
+
[
|
|
290
|
+
0,
|
|
291
|
+
{
|
|
292
|
+
[_hQ]: _ai,
|
|
293
|
+
},
|
|
294
|
+
],
|
|
295
|
+
],
|
|
296
|
+
];
|
|
297
|
+
var ListAccountRolesResponse = [3, n0, _LARRi, 0, [_nT, _rL], [0, () => RoleListType]];
|
|
298
|
+
var ListAccountsRequest = [
|
|
299
|
+
3,
|
|
300
|
+
n0,
|
|
301
|
+
_LAR,
|
|
302
|
+
0,
|
|
303
|
+
[_nT, _mR, _aT],
|
|
304
|
+
[
|
|
305
|
+
[
|
|
306
|
+
0,
|
|
307
|
+
{
|
|
308
|
+
[_hQ]: _nt,
|
|
309
|
+
},
|
|
310
|
+
],
|
|
311
|
+
[
|
|
312
|
+
1,
|
|
313
|
+
{
|
|
314
|
+
[_hQ]: _mr,
|
|
315
|
+
},
|
|
316
|
+
],
|
|
317
|
+
[
|
|
318
|
+
() => AccessTokenType,
|
|
319
|
+
{
|
|
320
|
+
[_hH]: _xasbt,
|
|
321
|
+
},
|
|
322
|
+
],
|
|
323
|
+
],
|
|
324
|
+
];
|
|
325
|
+
var ListAccountsResponse = [3, n0, _LARi, 0, [_nT, _aL], [0, () => AccountListType]];
|
|
326
|
+
var LogoutRequest = [
|
|
327
|
+
3,
|
|
328
|
+
n0,
|
|
329
|
+
_LR,
|
|
330
|
+
0,
|
|
331
|
+
[_aT],
|
|
332
|
+
[
|
|
333
|
+
[
|
|
334
|
+
() => AccessTokenType,
|
|
335
|
+
{
|
|
336
|
+
[_hH]: _xasbt,
|
|
337
|
+
},
|
|
338
|
+
],
|
|
339
|
+
],
|
|
340
|
+
];
|
|
341
|
+
var ResourceNotFoundException = [
|
|
342
|
+
-3,
|
|
343
|
+
n0,
|
|
344
|
+
_RNFE,
|
|
345
|
+
{
|
|
346
|
+
[_e]: _c,
|
|
347
|
+
[_hE]: 404,
|
|
348
|
+
},
|
|
349
|
+
[_m],
|
|
350
|
+
[0],
|
|
351
|
+
];
|
|
352
|
+
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
|
|
353
|
+
var RoleCredentials = [
|
|
354
|
+
3,
|
|
355
|
+
n0,
|
|
356
|
+
_RC,
|
|
357
|
+
0,
|
|
358
|
+
[_aKI, _sAK, _sT, _ex],
|
|
359
|
+
[0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1],
|
|
360
|
+
];
|
|
361
|
+
var RoleInfo = [3, n0, _RI, 0, [_rN, _aI], [0, 0]];
|
|
362
|
+
var TooManyRequestsException = [
|
|
363
|
+
-3,
|
|
364
|
+
n0,
|
|
365
|
+
_TMRE,
|
|
366
|
+
{
|
|
367
|
+
[_e]: _c,
|
|
368
|
+
[_hE]: 429,
|
|
369
|
+
},
|
|
370
|
+
[_m],
|
|
371
|
+
[0],
|
|
372
|
+
];
|
|
373
|
+
schema.TypeRegistry.for(n0).registerError(TooManyRequestsException, TooManyRequestsException$1);
|
|
374
|
+
var UnauthorizedException = [
|
|
375
|
+
-3,
|
|
376
|
+
n0,
|
|
377
|
+
_UE,
|
|
378
|
+
{
|
|
379
|
+
[_e]: _c,
|
|
380
|
+
[_hE]: 401,
|
|
381
|
+
},
|
|
382
|
+
[_m],
|
|
383
|
+
[0],
|
|
384
|
+
];
|
|
385
|
+
schema.TypeRegistry.for(n0).registerError(UnauthorizedException, UnauthorizedException$1);
|
|
386
|
+
var __Unit = "unit";
|
|
387
|
+
var SSOServiceException = [-3, _s, "SSOServiceException", 0, [], []];
|
|
388
|
+
schema.TypeRegistry.for(_s).registerError(SSOServiceException, SSOServiceException$1);
|
|
389
|
+
var AccountListType = [1, n0, _ALT, 0, () => AccountInfo];
|
|
390
|
+
var RoleListType = [1, n0, _RLT, 0, () => RoleInfo];
|
|
391
|
+
var GetRoleCredentials = [
|
|
392
|
+
9,
|
|
393
|
+
n0,
|
|
394
|
+
_GRC,
|
|
395
|
+
{
|
|
396
|
+
[_h]: ["GET", "/federation/credentials", 200],
|
|
397
|
+
},
|
|
398
|
+
() => GetRoleCredentialsRequest,
|
|
399
|
+
() => GetRoleCredentialsResponse,
|
|
400
|
+
];
|
|
401
|
+
var ListAccountRoles = [
|
|
402
|
+
9,
|
|
403
|
+
n0,
|
|
404
|
+
_LARis,
|
|
405
|
+
{
|
|
406
|
+
[_h]: ["GET", "/assignment/roles", 200],
|
|
407
|
+
},
|
|
408
|
+
() => ListAccountRolesRequest,
|
|
409
|
+
() => ListAccountRolesResponse,
|
|
410
|
+
];
|
|
411
|
+
var ListAccounts = [
|
|
412
|
+
9,
|
|
413
|
+
n0,
|
|
414
|
+
_LA,
|
|
415
|
+
{
|
|
416
|
+
[_h]: ["GET", "/assignment/accounts", 200],
|
|
417
|
+
},
|
|
418
|
+
() => ListAccountsRequest,
|
|
419
|
+
() => ListAccountsResponse,
|
|
420
|
+
];
|
|
421
|
+
var Logout = [
|
|
422
|
+
9,
|
|
423
|
+
n0,
|
|
424
|
+
_L,
|
|
425
|
+
{
|
|
426
|
+
[_h]: ["POST", "/logout", 200],
|
|
427
|
+
},
|
|
428
|
+
() => LogoutRequest,
|
|
429
|
+
() => __Unit,
|
|
430
|
+
];
|
|
398
431
|
|
|
399
432
|
class GetRoleCredentialsCommand extends smithyClient.Command
|
|
400
433
|
.classBuilder()
|
|
401
434
|
.ep(commonParams)
|
|
402
435
|
.m(function (Command, cs, config, o) {
|
|
403
|
-
return [
|
|
404
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
405
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
406
|
-
];
|
|
436
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
407
437
|
})
|
|
408
438
|
.s("SWBPortalService", "GetRoleCredentials", {})
|
|
409
439
|
.n("SSOClient", "GetRoleCredentialsCommand")
|
|
410
|
-
.
|
|
411
|
-
.ser(se_GetRoleCredentialsCommand)
|
|
412
|
-
.de(de_GetRoleCredentialsCommand)
|
|
440
|
+
.sc(GetRoleCredentials)
|
|
413
441
|
.build() {
|
|
414
442
|
}
|
|
415
443
|
|
|
@@ -417,16 +445,11 @@ class ListAccountRolesCommand extends smithyClient.Command
|
|
|
417
445
|
.classBuilder()
|
|
418
446
|
.ep(commonParams)
|
|
419
447
|
.m(function (Command, cs, config, o) {
|
|
420
|
-
return [
|
|
421
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
422
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
423
|
-
];
|
|
448
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
424
449
|
})
|
|
425
450
|
.s("SWBPortalService", "ListAccountRoles", {})
|
|
426
451
|
.n("SSOClient", "ListAccountRolesCommand")
|
|
427
|
-
.
|
|
428
|
-
.ser(se_ListAccountRolesCommand)
|
|
429
|
-
.de(de_ListAccountRolesCommand)
|
|
452
|
+
.sc(ListAccountRoles)
|
|
430
453
|
.build() {
|
|
431
454
|
}
|
|
432
455
|
|
|
@@ -434,16 +457,11 @@ class ListAccountsCommand extends smithyClient.Command
|
|
|
434
457
|
.classBuilder()
|
|
435
458
|
.ep(commonParams)
|
|
436
459
|
.m(function (Command, cs, config, o) {
|
|
437
|
-
return [
|
|
438
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
439
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
440
|
-
];
|
|
460
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
441
461
|
})
|
|
442
462
|
.s("SWBPortalService", "ListAccounts", {})
|
|
443
463
|
.n("SSOClient", "ListAccountsCommand")
|
|
444
|
-
.
|
|
445
|
-
.ser(se_ListAccountsCommand)
|
|
446
|
-
.de(de_ListAccountsCommand)
|
|
464
|
+
.sc(ListAccounts)
|
|
447
465
|
.build() {
|
|
448
466
|
}
|
|
449
467
|
|
|
@@ -451,16 +469,11 @@ class LogoutCommand extends smithyClient.Command
|
|
|
451
469
|
.classBuilder()
|
|
452
470
|
.ep(commonParams)
|
|
453
471
|
.m(function (Command, cs, config, o) {
|
|
454
|
-
return [
|
|
455
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
456
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
457
|
-
];
|
|
472
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
458
473
|
})
|
|
459
474
|
.s("SWBPortalService", "Logout", {})
|
|
460
475
|
.n("SSOClient", "LogoutCommand")
|
|
461
|
-
.
|
|
462
|
-
.ser(se_LogoutCommand)
|
|
463
|
-
.de(de_LogoutCommand)
|
|
476
|
+
.sc(Logout)
|
|
464
477
|
.build() {
|
|
465
478
|
}
|
|
466
479
|
|
|
@@ -487,21 +500,15 @@ Object.defineProperty(exports, "__Client", {
|
|
|
487
500
|
get: function () { return smithyClient.Client; }
|
|
488
501
|
});
|
|
489
502
|
exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand;
|
|
490
|
-
exports.
|
|
491
|
-
exports.GetRoleCredentialsResponseFilterSensitiveLog = GetRoleCredentialsResponseFilterSensitiveLog;
|
|
492
|
-
exports.InvalidRequestException = InvalidRequestException;
|
|
503
|
+
exports.InvalidRequestException = InvalidRequestException$1;
|
|
493
504
|
exports.ListAccountRolesCommand = ListAccountRolesCommand;
|
|
494
|
-
exports.ListAccountRolesRequestFilterSensitiveLog = ListAccountRolesRequestFilterSensitiveLog;
|
|
495
505
|
exports.ListAccountsCommand = ListAccountsCommand;
|
|
496
|
-
exports.ListAccountsRequestFilterSensitiveLog = ListAccountsRequestFilterSensitiveLog;
|
|
497
506
|
exports.LogoutCommand = LogoutCommand;
|
|
498
|
-
exports.
|
|
499
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
500
|
-
exports.RoleCredentialsFilterSensitiveLog = RoleCredentialsFilterSensitiveLog;
|
|
507
|
+
exports.ResourceNotFoundException = ResourceNotFoundException$1;
|
|
501
508
|
exports.SSO = SSO;
|
|
502
509
|
exports.SSOClient = SSOClient;
|
|
503
|
-
exports.SSOServiceException = SSOServiceException;
|
|
504
|
-
exports.TooManyRequestsException = TooManyRequestsException;
|
|
505
|
-
exports.UnauthorizedException = UnauthorizedException;
|
|
510
|
+
exports.SSOServiceException = SSOServiceException$1;
|
|
511
|
+
exports.TooManyRequestsException = TooManyRequestsException$1;
|
|
512
|
+
exports.UnauthorizedException = UnauthorizedException$1;
|
|
506
513
|
exports.paginateListAccountRoles = paginateListAccountRoles;
|
|
507
514
|
exports.paginateListAccounts = paginateListAccounts;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
5
6
|
const core_2 = require("@smithy/core");
|
|
6
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
8
|
const url_parser_1 = require("@smithy/url-parser");
|
|
@@ -31,6 +32,7 @@ const getRuntimeConfig = (config) => {
|
|
|
31
32
|
},
|
|
32
33
|
],
|
|
33
34
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
35
|
+
protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.sso" }),
|
|
34
36
|
serviceId: config?.serviceId ?? "SSO",
|
|
35
37
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
36
38
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
|
|
|
4
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
7
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
9
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
10
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
@@ -28,6 +29,7 @@ export class SSOClient extends __Client {
|
|
|
28
29
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
29
30
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
30
31
|
this.config = _config_8;
|
|
32
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
31
33
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
34
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
33
35
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|