UNPKG

@aws-sdk/client-account

Version:

AWS SDK for JavaScript Account Client for Node.js, Browser and React Native

367 lines (366 loc) 12.5 kB
const _AC = "AlternateContact"; const _ACD = "AccountCreatedDate"; const _ACT = "AlternateContactType"; const _ADE = "AccessDeniedException"; const _AI = "AccountId"; const _AL = "AddressLine"; const _ALd = "AddressLine1"; const _ALdd = "AddressLine2"; const _ALddr = "AddressLine3"; const _AN = "AccountName"; const _APEU = "AcceptPrimaryEmailUpdate"; const _APEUR = "AcceptPrimaryEmailUpdateRequest"; const _APEURc = "AcceptPrimaryEmailUpdateResponse"; const _AS = "AccountState"; const _C = "City"; const _CC = "CountryCode"; const _CE = "ConflictException"; const _CI = "ContactInformation"; const _CIPN = "ContactInformationPhoneNumber"; const _CN = "CompanyName"; const _DAC = "DeleteAlternateContact"; const _DACR = "DeleteAlternateContactRequest"; const _DOC = "DistrictOrCounty"; const _DR = "DisableRegion"; const _DRR = "DisableRegionRequest"; const _EA = "EmailAddress"; const _ER = "EnableRegion"; const _ERR = "EnableRegionRequest"; const _FN = "FullName"; const _GAC = "GetAlternateContact"; const _GACR = "GetAlternateContactRequest"; const _GACRe = "GetAlternateContactResponse"; const _GAI = "GetAccountInformation"; const _GAIR = "GetAccountInformationRequest"; const _GAIRe = "GetAccountInformationResponse"; const _GCAI = "GovCloudAccountId"; const _GCI = "GetContactInformation"; const _GCIR = "GetContactInformationRequest"; const _GCIRe = "GetContactInformationResponse"; const _GGCAI = "GetGovCloudAccountInformation"; const _GGCAIR = "GetGovCloudAccountInformationRequest"; const _GGCAIRe = "GetGovCloudAccountInformationResponse"; const _GPE = "GetPrimaryEmail"; const _GPER = "GetPrimaryEmailRequest"; const _GPERe = "GetPrimaryEmailResponse"; const _GROS = "GetRegionOptStatus"; const _GROSR = "GetRegionOptStatusRequest"; const _GROSRe = "GetRegionOptStatusResponse"; const _ISE = "InternalServerException"; const _LR = "ListRegions"; const _LRR = "ListRegionsRequest"; const _LRRi = "ListRegionsResponse"; const _MR = "MaxResults"; const _N = "Name"; const _NT = "NextToken"; const _O = "Otp"; const _PAC = "PutAlternateContact"; const _PACR = "PutAlternateContactRequest"; const _PAN = "PutAccountName"; const _PANR = "PutAccountNameRequest"; const _PC = "PostalCode"; const _PCI = "PutContactInformation"; const _PCIR = "PutContactInformationRequest"; const _PE = "PrimaryEmail"; const _PEA = "PrimaryEmailAddress"; const _PN = "PhoneNumber"; const _R = "Regions"; const _RN = "RegionName"; const _RNFE = "ResourceNotFoundException"; const _ROL = "RegionOptList"; const _ROS = "RegionOptStatus"; const _ROSC = "RegionOptStatusContains"; const _RUE = "ResourceUnavailableException"; const _Re = "Region"; const _S = "Status"; const _SAI = "StandardAccountId"; const _SOR = "StateOrRegion"; const _SPEU = "StartPrimaryEmailUpdate"; const _SPEUR = "StartPrimaryEmailUpdateRequest"; const _SPEURt = "StartPrimaryEmailUpdateResponse"; const _SS = "SensitiveString"; const _T = "Title"; const _TMRE = "TooManyRequestsException"; const _VE = "ValidationException"; const _VEF = "ValidationExceptionField"; const _VEFL = "ValidationExceptionFieldList"; const _WU = "WebsiteUrl"; const _c = "client"; const _e = "error"; const _eT = "errorType"; const _fL = "fieldList"; const _h = "http"; const _hE = "httpError"; const _hH = "httpHeader"; const _m = "message"; const _n = "name"; const _r = "reason"; const _s = "smithy.ts.sdk.synthetic.com.amazonaws.account"; const _se = "server"; const _xaE = "x-amzn-ErrorType"; const n0 = "com.amazonaws.account"; import { TypeRegistry } from "@smithy/core/schema"; import { AccountServiceException } from "../models/AccountServiceException"; import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ResourceUnavailableException, TooManyRequestsException, ValidationException, } from "../models/errors"; const _s_registry = TypeRegistry.for(_s); export var AccountServiceException$ = [-3, _s, "AccountServiceException", 0, [], []]; _s_registry.registerError(AccountServiceException$, AccountServiceException); const n0_registry = TypeRegistry.for(n0); export var AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c, [_hE]: 403 }, [_m, _eT], [0, [0, { [_hH]: _xaE }]], 1 ]; n0_registry.registerError(AccessDeniedException$, AccessDeniedException); export var ConflictException$ = [-3, n0, _CE, { [_e]: _c, [_hE]: 409 }, [_m, _eT], [0, [0, { [_hH]: _xaE }]], 1 ]; n0_registry.registerError(ConflictException$, ConflictException); export var InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_m, _eT], [0, [0, { [_hH]: _xaE }]], 1 ]; n0_registry.registerError(InternalServerException$, InternalServerException); export var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m, _eT], [0, [0, { [_hH]: _xaE }]], 1 ]; n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException); export var ResourceUnavailableException$ = [-3, n0, _RUE, { [_e]: _c, [_hE]: 424 }, [_m, _eT], [0, [0, { [_hH]: _xaE }]], 1 ]; n0_registry.registerError(ResourceUnavailableException$, ResourceUnavailableException); export var TooManyRequestsException$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_m, _eT], [0, [0, { [_hH]: _xaE }]], 1 ]; n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException); export var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_m, _r, _fL], [[() => SensitiveString, 0], 0, [() => ValidationExceptionFieldList, 0]], 1 ]; n0_registry.registerError(ValidationException$, ValidationException); export const errorTypeRegistries = [ _s_registry, n0_registry, ]; var AccountName = [0, n0, _AN, 8, 0]; var AddressLine = [0, n0, _AL, 8, 0]; var City = [0, n0, _C, 8, 0]; var CompanyName = [0, n0, _CN, 8, 0]; var ContactInformationPhoneNumber = [0, n0, _CIPN, 8, 0]; var CountryCode = [0, n0, _CC, 8, 0]; var DistrictOrCounty = [0, n0, _DOC, 8, 0]; var EmailAddress = [0, n0, _EA, 8, 0]; var FullName = [0, n0, _FN, 8, 0]; var Name = [0, n0, _N, 8, 0]; var Otp = [0, n0, _O, 8, 0]; var PhoneNumber = [0, n0, _PN, 8, 0]; var PostalCode = [0, n0, _PC, 8, 0]; var PrimaryEmailAddress = [0, n0, _PEA, 8, 0]; var SensitiveString = [0, n0, _SS, 8, 0]; var StateOrRegion = [0, n0, _SOR, 8, 0]; var Title = [0, n0, _T, 8, 0]; var WebsiteUrl = [0, n0, _WU, 8, 0]; export var AcceptPrimaryEmailUpdateRequest$ = [3, n0, _APEUR, 0, [_AI, _PE, _O], [0, [() => PrimaryEmailAddress, 0], [() => Otp, 0]], 3 ]; export var AcceptPrimaryEmailUpdateResponse$ = [3, n0, _APEURc, 0, [_S], [0] ]; export var AlternateContact$ = [3, n0, _AC, 0, [_N, _T, _EA, _PN, _ACT], [[() => Name, 0], [() => Title, 0], [() => EmailAddress, 0], [() => PhoneNumber, 0], 0] ]; export var ContactInformation$ = [3, n0, _CI, 0, [_FN, _ALd, _C, _PC, _CC, _PN, _ALdd, _ALddr, _SOR, _DOC, _CN, _WU], [[() => FullName, 0], [() => AddressLine, 0], [() => City, 0], [() => PostalCode, 0], [() => CountryCode, 0], [() => ContactInformationPhoneNumber, 0], [() => AddressLine, 0], [() => AddressLine, 0], [() => StateOrRegion, 0], [() => DistrictOrCounty, 0], [() => CompanyName, 0], [() => WebsiteUrl, 0]], 6 ]; export var DeleteAlternateContactRequest$ = [3, n0, _DACR, 0, [_ACT, _AI], [0, 0], 1 ]; export var DisableRegionRequest$ = [3, n0, _DRR, 0, [_RN, _AI], [0, 0], 1 ]; export var EnableRegionRequest$ = [3, n0, _ERR, 0, [_RN, _AI], [0, 0], 1 ]; export var GetAccountInformationRequest$ = [3, n0, _GAIR, 0, [_AI], [0] ]; export var GetAccountInformationResponse$ = [3, n0, _GAIRe, 0, [_AI, _AN, _ACD, _AS], [0, [() => AccountName, 0], 5, 0] ]; export var GetAlternateContactRequest$ = [3, n0, _GACR, 0, [_ACT, _AI], [0, 0], 1 ]; export var GetAlternateContactResponse$ = [3, n0, _GACRe, 0, [_AC], [[() => AlternateContact$, 0]] ]; export var GetContactInformationRequest$ = [3, n0, _GCIR, 0, [_AI], [0] ]; export var GetContactInformationResponse$ = [3, n0, _GCIRe, 0, [_CI], [[() => ContactInformation$, 0]] ]; export var GetGovCloudAccountInformationRequest$ = [3, n0, _GGCAIR, 0, [_SAI], [0] ]; export var GetGovCloudAccountInformationResponse$ = [3, n0, _GGCAIRe, 0, [_GCAI, _AS], [0, 0], 2 ]; export var GetPrimaryEmailRequest$ = [3, n0, _GPER, 0, [_AI], [0], 1 ]; export var GetPrimaryEmailResponse$ = [3, n0, _GPERe, 0, [_PE], [[() => PrimaryEmailAddress, 0]] ]; export var GetRegionOptStatusRequest$ = [3, n0, _GROSR, 0, [_RN, _AI], [0, 0], 1 ]; export var GetRegionOptStatusResponse$ = [3, n0, _GROSRe, 0, [_RN, _ROS], [0, 0] ]; export var ListRegionsRequest$ = [3, n0, _LRR, 0, [_AI, _MR, _NT, _ROSC], [0, 1, 0, 64 | 0] ]; export var ListRegionsResponse$ = [3, n0, _LRRi, 0, [_NT, _R], [0, () => RegionOptList] ]; export var PutAccountNameRequest$ = [3, n0, _PANR, 0, [_AN, _AI], [[() => AccountName, 0], 0], 1 ]; export var PutAlternateContactRequest$ = [3, n0, _PACR, 0, [_N, _T, _EA, _PN, _ACT, _AI], [[() => Name, 0], [() => Title, 0], [() => EmailAddress, 0], [() => PhoneNumber, 0], 0, 0], 5 ]; export var PutContactInformationRequest$ = [3, n0, _PCIR, 0, [_CI, _AI], [[() => ContactInformation$, 0], 0], 1 ]; export var Region$ = [3, n0, _Re, 0, [_RN, _ROS], [0, 0] ]; export var StartPrimaryEmailUpdateRequest$ = [3, n0, _SPEUR, 0, [_AI, _PE], [0, [() => PrimaryEmailAddress, 0]], 2 ]; export var StartPrimaryEmailUpdateResponse$ = [3, n0, _SPEURt, 0, [_S], [0] ]; export var ValidationExceptionField$ = [3, n0, _VEF, 0, [_n, _m], [0, [() => SensitiveString, 0]], 2 ]; var __Unit = "unit"; var RegionOptList = [1, n0, _ROL, 0, () => Region$ ]; var RegionOptStatusList = 64 | 0; var ValidationExceptionFieldList = [1, n0, _VEFL, 0, [() => ValidationExceptionField$, 0] ]; export var AcceptPrimaryEmailUpdate$ = [9, n0, _APEU, { [_h]: ["POST", "/acceptPrimaryEmailUpdate", 200] }, () => AcceptPrimaryEmailUpdateRequest$, () => AcceptPrimaryEmailUpdateResponse$ ]; export var DeleteAlternateContact$ = [9, n0, _DAC, { [_h]: ["POST", "/deleteAlternateContact", 200] }, () => DeleteAlternateContactRequest$, () => __Unit ]; export var DisableRegion$ = [9, n0, _DR, { [_h]: ["POST", "/disableRegion", 200] }, () => DisableRegionRequest$, () => __Unit ]; export var EnableRegion$ = [9, n0, _ER, { [_h]: ["POST", "/enableRegion", 200] }, () => EnableRegionRequest$, () => __Unit ]; export var GetAccountInformation$ = [9, n0, _GAI, { [_h]: ["POST", "/getAccountInformation", 200] }, () => GetAccountInformationRequest$, () => GetAccountInformationResponse$ ]; export var GetAlternateContact$ = [9, n0, _GAC, { [_h]: ["POST", "/getAlternateContact", 200] }, () => GetAlternateContactRequest$, () => GetAlternateContactResponse$ ]; export var GetContactInformation$ = [9, n0, _GCI, { [_h]: ["POST", "/getContactInformation", 200] }, () => GetContactInformationRequest$, () => GetContactInformationResponse$ ]; export var GetGovCloudAccountInformation$ = [9, n0, _GGCAI, { [_h]: ["POST", "/getGovCloudAccountInformation", 200] }, () => GetGovCloudAccountInformationRequest$, () => GetGovCloudAccountInformationResponse$ ]; export var GetPrimaryEmail$ = [9, n0, _GPE, { [_h]: ["POST", "/getPrimaryEmail", 200] }, () => GetPrimaryEmailRequest$, () => GetPrimaryEmailResponse$ ]; export var GetRegionOptStatus$ = [9, n0, _GROS, { [_h]: ["POST", "/getRegionOptStatus", 200] }, () => GetRegionOptStatusRequest$, () => GetRegionOptStatusResponse$ ]; export var ListRegions$ = [9, n0, _LR, { [_h]: ["POST", "/listRegions", 200] }, () => ListRegionsRequest$, () => ListRegionsResponse$ ]; export var PutAccountName$ = [9, n0, _PAN, { [_h]: ["POST", "/putAccountName", 200] }, () => PutAccountNameRequest$, () => __Unit ]; export var PutAlternateContact$ = [9, n0, _PAC, { [_h]: ["POST", "/putAlternateContact", 200] }, () => PutAlternateContactRequest$, () => __Unit ]; export var PutContactInformation$ = [9, n0, _PCI, { [_h]: ["POST", "/putContactInformation", 200] }, () => PutContactInformationRequest$, () => __Unit ]; export var StartPrimaryEmailUpdate$ = [9, n0, _SPEU, { [_h]: ["POST", "/startPrimaryEmailUpdate", 200] }, () => StartPrimaryEmailUpdateRequest$, () => StartPrimaryEmailUpdateResponse$ ];