github.com/aavshr/aws-sdk-go@v1.41.3/service/organizations/errors.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package organizations
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeAWSOrganizationsNotInUseException for service response error code
    12  	// "AWSOrganizationsNotInUseException".
    13  	//
    14  	// Your account isn't a member of an organization. To make this request, you
    15  	// must use the credentials of an account that belongs to an organization.
    16  	ErrCodeAWSOrganizationsNotInUseException = "AWSOrganizationsNotInUseException"
    17  
    18  	// ErrCodeAccessDeniedException for service response error code
    19  	// "AccessDeniedException".
    20  	//
    21  	// You don't have permissions to perform the requested operation. The user or
    22  	// role that is making the request must have at least one IAM permissions policy
    23  	// attached that grants the required permissions. For more information, see
    24  	// Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html)
    25  	// in the IAM User Guide.
    26  	ErrCodeAccessDeniedException = "AccessDeniedException"
    27  
    28  	// ErrCodeAccessDeniedForDependencyException for service response error code
    29  	// "AccessDeniedForDependencyException".
    30  	//
    31  	// The operation that you attempted requires you to have the iam:CreateServiceLinkedRole
    32  	// for organizations.amazonaws.com permission so that AWS Organizations can
    33  	// create the required service-linked role. You don't have that permission.
    34  	ErrCodeAccessDeniedForDependencyException = "AccessDeniedForDependencyException"
    35  
    36  	// ErrCodeAccountAlreadyRegisteredException for service response error code
    37  	// "AccountAlreadyRegisteredException".
    38  	//
    39  	// The specified account is already a delegated administrator for this AWS service.
    40  	ErrCodeAccountAlreadyRegisteredException = "AccountAlreadyRegisteredException"
    41  
    42  	// ErrCodeAccountNotFoundException for service response error code
    43  	// "AccountNotFoundException".
    44  	//
    45  	// We can't find an AWS account with the AccountId that you specified, or the
    46  	// account whose credentials you used to make this request isn't a member of
    47  	// an organization.
    48  	ErrCodeAccountNotFoundException = "AccountNotFoundException"
    49  
    50  	// ErrCodeAccountNotRegisteredException for service response error code
    51  	// "AccountNotRegisteredException".
    52  	//
    53  	// The specified account is not a delegated administrator for this AWS service.
    54  	ErrCodeAccountNotRegisteredException = "AccountNotRegisteredException"
    55  
    56  	// ErrCodeAccountOwnerNotVerifiedException for service response error code
    57  	// "AccountOwnerNotVerifiedException".
    58  	//
    59  	// You can't invite an existing account to your organization until you verify
    60  	// that you own the email address associated with the management account. For
    61  	// more information, see Email Address Verification (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_create.html#about-email-verification)
    62  	// in the AWS Organizations User Guide.
    63  	ErrCodeAccountOwnerNotVerifiedException = "AccountOwnerNotVerifiedException"
    64  
    65  	// ErrCodeAlreadyInOrganizationException for service response error code
    66  	// "AlreadyInOrganizationException".
    67  	//
    68  	// This account is already a member of an organization. An account can belong
    69  	// to only one organization at a time.
    70  	ErrCodeAlreadyInOrganizationException = "AlreadyInOrganizationException"
    71  
    72  	// ErrCodeChildNotFoundException for service response error code
    73  	// "ChildNotFoundException".
    74  	//
    75  	// We can't find an organizational unit (OU) or AWS account with the ChildId
    76  	// that you specified.
    77  	ErrCodeChildNotFoundException = "ChildNotFoundException"
    78  
    79  	// ErrCodeConcurrentModificationException for service response error code
    80  	// "ConcurrentModificationException".
    81  	//
    82  	// The target of the operation is currently being modified by a different request.
    83  	// Try again later.
    84  	ErrCodeConcurrentModificationException = "ConcurrentModificationException"
    85  
    86  	// ErrCodeConstraintViolationException for service response error code
    87  	// "ConstraintViolationException".
    88  	//
    89  	// Performing this operation violates a minimum or maximum value limit. For
    90  	// example, attempting to remove the last service control policy (SCP) from
    91  	// an OU or root, inviting or creating too many accounts to the organization,
    92  	// or attaching too many policies to an account, OU, or root. This exception
    93  	// includes a reason that contains additional information about the violated
    94  	// limit:
    95  	//
    96  	// Some of the reasons in the following list might not be applicable to this
    97  	// specific API or operation.
    98  	//
    99  	//    * ACCOUNT_CANNOT_LEAVE_ORGANIZATION: You attempted to remove the management
   100  	//    account from the organization. You can't remove the management account.
   101  	//    Instead, after you remove all member accounts, delete the organization
   102  	//    itself.
   103  	//
   104  	//    * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account
   105  	//    from the organization that doesn't yet have enough information to exist
   106  	//    as a standalone account. This account requires you to first agree to the
   107  	//    AWS Customer Agreement. Follow the steps at Removing a member account
   108  	//    from your organization (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#orgs_manage_accounts_remove-from-master)in
   109  	//    the AWS Organizations User Guide.
   110  	//
   111  	//    * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove
   112  	//    an account from the organization that doesn't yet have enough information
   113  	//    to exist as a standalone account. This account requires you to first complete
   114  	//    phone verification. Follow the steps at Removing a member account from
   115  	//    your organization (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#orgs_manage_accounts_remove-from-master)
   116  	//    in the AWS Organizations User Guide.
   117  	//
   118  	//    * ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED: You attempted to exceed the number
   119  	//    of accounts that you can create in one day.
   120  	//
   121  	//    * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on
   122  	//    the number of accounts in an organization. If you need more accounts,
   123  	//    contact AWS Support (https://console.aws.amazon.com/support/home#/) to
   124  	//    request an increase in your limit. Or the number of invitations that you
   125  	//    tried to send would cause you to exceed the limit of accounts in your
   126  	//    organization. Send fewer invitations or contact AWS Support to request
   127  	//    an increase in the number of accounts. Deleted and closed accounts still
   128  	//    count toward your limit. If you get this exception when running a command
   129  	//    immediately after creating the organization, wait one hour and try again.
   130  	//    After an hour, if the command continues to fail with this error, contact
   131  	//    AWS Support (https://console.aws.amazon.com/support/home#/).
   132  	//
   133  	//    * CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You attempted to
   134  	//    register the management account of the organization as a delegated administrator
   135  	//    for an AWS service integrated with Organizations. You can designate only
   136  	//    a member account as a delegated administrator.
   137  	//
   138  	//    * CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: You attempted to remove
   139  	//    an account that is registered as a delegated administrator for a service
   140  	//    integrated with your organization. To complete this operation, you must
   141  	//    first deregister this account as a delegated administrator.
   142  	//
   143  	//    * CREATE_ORGANIZATION_IN_BILLING_MODE_UNSUPPORTED_REGION: To create an
   144  	//    organization in the specified region, you must enable all features mode.
   145  	//
   146  	//    * DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: You attempted to register
   147  	//    an AWS account as a delegated administrator for an AWS service that already
   148  	//    has a delegated administrator. To complete this operation, you must first
   149  	//    deregister any existing delegated administrators for this service.
   150  	//
   151  	//    * EMAIL_VERIFICATION_CODE_EXPIRED: The email verification code is only
   152  	//    valid for a limited period of time. You must resubmit the request and
   153  	//    generate a new verfication code.
   154  	//
   155  	//    * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
   156  	//    handshakes that you can send in one day.
   157  	//
   158  	//    * MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE: To create an account
   159  	//    in this organization, you first must migrate the organization's management
   160  	//    account to the marketplace that corresponds to the management account's
   161  	//    address. For example, accounts with India addresses must be associated
   162  	//    with the AISPL marketplace. All accounts in an organization must be associated
   163  	//    with the same marketplace.
   164  	//
   165  	//    * MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE: Applies only to the AWS Regions
   166  	//    in China. To create an organization, the master must have a valid business
   167  	//    license. For more information, contact customer support.
   168  	//
   169  	//    * MASTER_ACCOUNT_MISSING_CONTACT_INFO: To complete this operation, you
   170  	//    must first provide a valid contact address and phone number for the management
   171  	//    account. Then try the operation again.
   172  	//
   173  	//    * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the
   174  	//    management account must have an associated account in the AWS GovCloud
   175  	//    (US-West) Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html)
   176  	//    in the AWS GovCloud User Guide.
   177  	//
   178  	//    * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization
   179  	//    with this management account, you first must associate a valid payment
   180  	//    instrument, such as a credit card, with the account. Follow the steps
   181  	//    at To leave an organization when all required account information has
   182  	//    not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
   183  	//    in the AWS Organizations User Guide.
   184  	//
   185  	//    * MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted
   186  	//    to register more delegated administrators than allowed for the service
   187  	//    principal.
   188  	//
   189  	//    * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
   190  	//    number of policies of a certain type that can be attached to an entity
   191  	//    at one time.
   192  	//
   193  	//    * MAX_TAG_LIMIT_EXCEEDED: You have exceeded the number of tags allowed
   194  	//    on this resource.
   195  	//
   196  	//    * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation
   197  	//    with this member account, you first must associate a valid payment instrument,
   198  	//    such as a credit card, with the account. Follow the steps at To leave
   199  	//    an organization when all required account information has not yet been
   200  	//    provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info)
   201  	//    in the AWS Organizations User Guide.
   202  	//
   203  	//    * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
   204  	//    policy from an entity that would cause the entity to have fewer than the
   205  	//    minimum number of policies of a certain type required.
   206  	//
   207  	//    * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation
   208  	//    that requires the organization to be configured to support all features.
   209  	//    An organization that supports only consolidated billing features can't
   210  	//    perform this operation.
   211  	//
   212  	//    * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is
   213  	//    too many levels deep.
   214  	//
   215  	//    * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs
   216  	//    that you can have in an organization.
   217  	//
   218  	//    * POLICY_CONTENT_LIMIT_EXCEEDED: You attempted to create a policy that
   219  	//    is larger than the maximum size.
   220  	//
   221  	//    * POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
   222  	//    policies that you can have in an organization.
   223  	//
   224  	//    * TAG_POLICY_VIOLATION: You attempted to create or update a resource with
   225  	//    tags that are not compliant with the tag policy requirements for this
   226  	//    account.
   227  	ErrCodeConstraintViolationException = "ConstraintViolationException"
   228  
   229  	// ErrCodeCreateAccountStatusNotFoundException for service response error code
   230  	// "CreateAccountStatusNotFoundException".
   231  	//
   232  	// We can't find an create account request with the CreateAccountRequestId that
   233  	// you specified.
   234  	ErrCodeCreateAccountStatusNotFoundException = "CreateAccountStatusNotFoundException"
   235  
   236  	// ErrCodeDestinationParentNotFoundException for service response error code
   237  	// "DestinationParentNotFoundException".
   238  	//
   239  	// We can't find the destination container (a root or OU) with the ParentId
   240  	// that you specified.
   241  	ErrCodeDestinationParentNotFoundException = "DestinationParentNotFoundException"
   242  
   243  	// ErrCodeDuplicateAccountException for service response error code
   244  	// "DuplicateAccountException".
   245  	//
   246  	// That account is already present in the specified destination.
   247  	ErrCodeDuplicateAccountException = "DuplicateAccountException"
   248  
   249  	// ErrCodeDuplicateHandshakeException for service response error code
   250  	// "DuplicateHandshakeException".
   251  	//
   252  	// A handshake with the same action and target already exists. For example,
   253  	// if you invited an account to join your organization, the invited account
   254  	// might already have a pending invitation from this organization. If you intend
   255  	// to resend an invitation to an account, ensure that existing handshakes that
   256  	// might be considered duplicates are canceled or declined.
   257  	ErrCodeDuplicateHandshakeException = "DuplicateHandshakeException"
   258  
   259  	// ErrCodeDuplicateOrganizationalUnitException for service response error code
   260  	// "DuplicateOrganizationalUnitException".
   261  	//
   262  	// An OU with the same name already exists.
   263  	ErrCodeDuplicateOrganizationalUnitException = "DuplicateOrganizationalUnitException"
   264  
   265  	// ErrCodeDuplicatePolicyAttachmentException for service response error code
   266  	// "DuplicatePolicyAttachmentException".
   267  	//
   268  	// The selected policy is already attached to the specified target.
   269  	ErrCodeDuplicatePolicyAttachmentException = "DuplicatePolicyAttachmentException"
   270  
   271  	// ErrCodeDuplicatePolicyException for service response error code
   272  	// "DuplicatePolicyException".
   273  	//
   274  	// A policy with the same name already exists.
   275  	ErrCodeDuplicatePolicyException = "DuplicatePolicyException"
   276  
   277  	// ErrCodeEffectivePolicyNotFoundException for service response error code
   278  	// "EffectivePolicyNotFoundException".
   279  	//
   280  	// If you ran this action on the management account, this policy type is not
   281  	// enabled. If you ran the action on a member account, the account doesn't have
   282  	// an effective policy of this type. Contact the administrator of your organization
   283  	// about attaching a policy of this type to the account.
   284  	ErrCodeEffectivePolicyNotFoundException = "EffectivePolicyNotFoundException"
   285  
   286  	// ErrCodeFinalizingOrganizationException for service response error code
   287  	// "FinalizingOrganizationException".
   288  	//
   289  	// AWS Organizations couldn't perform the operation because your organization
   290  	// hasn't finished initializing. This can take up to an hour. Try again later.
   291  	// If after one hour you continue to receive this error, contact AWS Support
   292  	// (https://console.aws.amazon.com/support/home#/).
   293  	ErrCodeFinalizingOrganizationException = "FinalizingOrganizationException"
   294  
   295  	// ErrCodeHandshakeAlreadyInStateException for service response error code
   296  	// "HandshakeAlreadyInStateException".
   297  	//
   298  	// The specified handshake is already in the requested state. For example, you
   299  	// can't accept a handshake that was already accepted.
   300  	ErrCodeHandshakeAlreadyInStateException = "HandshakeAlreadyInStateException"
   301  
   302  	// ErrCodeHandshakeConstraintViolationException for service response error code
   303  	// "HandshakeConstraintViolationException".
   304  	//
   305  	// The requested operation would violate the constraint identified in the reason
   306  	// code.
   307  	//
   308  	// Some of the reasons in the following list might not be applicable to this
   309  	// specific API or operation:
   310  	//
   311  	//    * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on
   312  	//    the number of accounts in an organization. Note that deleted and closed
   313  	//    accounts still count toward your limit. If you get this exception immediately
   314  	//    after creating the organization, wait one hour and try again. If after
   315  	//    an hour it continues to fail with this error, contact AWS Support (https://console.aws.amazon.com/support/home#/).
   316  	//
   317  	//    * ALREADY_IN_AN_ORGANIZATION: The handshake request is invalid because
   318  	//    the invited account is already a member of an organization.
   319  	//
   320  	//    * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
   321  	//    handshakes that you can send in one day.
   322  	//
   323  	//    * INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: You can't issue new invitations
   324  	//    to join an organization while it's in the process of enabling all features.
   325  	//    You can resume inviting accounts after you finalize the process when all
   326  	//    accounts have agreed to the change.
   327  	//
   328  	//    * ORGANIZATION_ALREADY_HAS_ALL_FEATURES: The handshake request is invalid
   329  	//    because the organization has already enabled all features.
   330  	//
   331  	//    * ORGANIZATION_IS_ALREADY_PENDING_ALL_FEATURES_MIGRATION: The handshake
   332  	//    request is invalid because the organization has already started the process
   333  	//    to enable all features.
   334  	//
   335  	//    * ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD: The request failed because
   336  	//    the account is from a different marketplace than the accounts in the organization.
   337  	//    For example, accounts with India addresses must be associated with the
   338  	//    AISPL marketplace. All accounts in an organization must be from the same
   339  	//    marketplace.
   340  	//
   341  	//    * ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED: You attempted to
   342  	//    change the membership of an account too quickly after its previous change.
   343  	//
   344  	//    * PAYMENT_INSTRUMENT_REQUIRED: You can't complete the operation with an
   345  	//    account that doesn't have a payment instrument, such as a credit card,
   346  	//    associated with it.
   347  	ErrCodeHandshakeConstraintViolationException = "HandshakeConstraintViolationException"
   348  
   349  	// ErrCodeHandshakeNotFoundException for service response error code
   350  	// "HandshakeNotFoundException".
   351  	//
   352  	// We can't find a handshake with the HandshakeId that you specified.
   353  	ErrCodeHandshakeNotFoundException = "HandshakeNotFoundException"
   354  
   355  	// ErrCodeInvalidHandshakeTransitionException for service response error code
   356  	// "InvalidHandshakeTransitionException".
   357  	//
   358  	// You can't perform the operation on the handshake in its current state. For
   359  	// example, you can't cancel a handshake that was already accepted or accept
   360  	// a handshake that was already declined.
   361  	ErrCodeInvalidHandshakeTransitionException = "InvalidHandshakeTransitionException"
   362  
   363  	// ErrCodeInvalidInputException for service response error code
   364  	// "InvalidInputException".
   365  	//
   366  	// The requested operation failed because you provided invalid values for one
   367  	// or more of the request parameters. This exception includes a reason that
   368  	// contains additional information about the violated limit:
   369  	//
   370  	// Some of the reasons in the following list might not be applicable to this
   371  	// specific API or operation.
   372  	//
   373  	//    * DUPLICATE_TAG_KEY: Tag keys must be unique among the tags attached to
   374  	//    the same entity.
   375  	//
   376  	//    * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and
   377  	//    can't be modified.
   378  	//
   379  	//    * INPUT_REQUIRED: You must include a value for all required parameters.
   380  	//
   381  	//    * INVALID_EMAIL_ADDRESS_TARGET: You specified an invalid email address
   382  	//    for the invited account owner.
   383  	//
   384  	//    * INVALID_ENUM: You specified an invalid value.
   385  	//
   386  	//    * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type string.
   387  	//
   388  	//    * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
   389  	//    characters.
   390  	//
   391  	//    * INVALID_LIST_MEMBER: You provided a list to a parameter that contains
   392  	//    at least one invalid value.
   393  	//
   394  	//    * INVALID_PAGINATION_TOKEN: Get the value for the NextToken parameter
   395  	//    from the response to a previous call of the operation.
   396  	//
   397  	//    * INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account,
   398  	//    organization, or email) as a party.
   399  	//
   400  	//    * INVALID_PATTERN: You provided a value that doesn't match the required
   401  	//    pattern.
   402  	//
   403  	//    * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't
   404  	//    match the required pattern.
   405  	//
   406  	//    * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role
   407  	//    name can't begin with the reserved prefix AWSServiceRoleFor.
   408  	//
   409  	//    * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource
   410  	//    Name (ARN) for the organization.
   411  	//
   412  	//    * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID.
   413  	//
   414  	//    * INVALID_SYSTEM_TAGS_PARAMETER: You specified a tag key that is a system
   415  	//    tag. You can’t add, edit, or delete system tag keys because they're
   416  	//    reserved for AWS use. System tags don’t count against your tags per
   417  	//    resource limit.
   418  	//
   419  	//    * MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter
   420  	//    for the operation.
   421  	//
   422  	//    * MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer
   423  	//    than allowed.
   424  	//
   425  	//    * MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger
   426  	//    value than allowed.
   427  	//
   428  	//    * MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter
   429  	//    than allowed.
   430  	//
   431  	//    * MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller
   432  	//    value than allowed.
   433  	//
   434  	//    * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only
   435  	//    between entities in the same root.
   436  	//
   437  	//    * TARGET_NOT_SUPPORTED: You can't perform the specified operation on that
   438  	//    target entity.
   439  	//
   440  	//    * UNRECOGNIZED_SERVICE_PRINCIPAL: You specified a service principal that
   441  	//    isn't recognized.
   442  	ErrCodeInvalidInputException = "InvalidInputException"
   443  
   444  	// ErrCodeMalformedPolicyDocumentException for service response error code
   445  	// "MalformedPolicyDocumentException".
   446  	//
   447  	// The provided policy document doesn't meet the requirements of the specified
   448  	// policy type. For example, the syntax might be incorrect. For details about
   449  	// service control policy syntax, see Service Control Policy Syntax (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html)
   450  	// in the AWS Organizations User Guide.
   451  	ErrCodeMalformedPolicyDocumentException = "MalformedPolicyDocumentException"
   452  
   453  	// ErrCodeMasterCannotLeaveOrganizationException for service response error code
   454  	// "MasterCannotLeaveOrganizationException".
   455  	//
   456  	// You can't remove a management account from an organization. If you want the
   457  	// management account to become a member account in another organization, you
   458  	// must first delete the current organization of the management account.
   459  	ErrCodeMasterCannotLeaveOrganizationException = "MasterCannotLeaveOrganizationException"
   460  
   461  	// ErrCodeOrganizationNotEmptyException for service response error code
   462  	// "OrganizationNotEmptyException".
   463  	//
   464  	// The organization isn't empty. To delete an organization, you must first remove
   465  	// all accounts except the management account, delete all OUs, and delete all
   466  	// policies.
   467  	ErrCodeOrganizationNotEmptyException = "OrganizationNotEmptyException"
   468  
   469  	// ErrCodeOrganizationalUnitNotEmptyException for service response error code
   470  	// "OrganizationalUnitNotEmptyException".
   471  	//
   472  	// The specified OU is not empty. Move all accounts to another root or to other
   473  	// OUs, remove all child OUs, and try the operation again.
   474  	ErrCodeOrganizationalUnitNotEmptyException = "OrganizationalUnitNotEmptyException"
   475  
   476  	// ErrCodeOrganizationalUnitNotFoundException for service response error code
   477  	// "OrganizationalUnitNotFoundException".
   478  	//
   479  	// We can't find an OU with the OrganizationalUnitId that you specified.
   480  	ErrCodeOrganizationalUnitNotFoundException = "OrganizationalUnitNotFoundException"
   481  
   482  	// ErrCodeParentNotFoundException for service response error code
   483  	// "ParentNotFoundException".
   484  	//
   485  	// We can't find a root or OU with the ParentId that you specified.
   486  	ErrCodeParentNotFoundException = "ParentNotFoundException"
   487  
   488  	// ErrCodePolicyChangesInProgressException for service response error code
   489  	// "PolicyChangesInProgressException".
   490  	//
   491  	// Changes to the effective policy are in progress, and its contents can't be
   492  	// returned. Try the operation again later.
   493  	ErrCodePolicyChangesInProgressException = "PolicyChangesInProgressException"
   494  
   495  	// ErrCodePolicyInUseException for service response error code
   496  	// "PolicyInUseException".
   497  	//
   498  	// The policy is attached to one or more entities. You must detach it from all
   499  	// roots, OUs, and accounts before performing this operation.
   500  	ErrCodePolicyInUseException = "PolicyInUseException"
   501  
   502  	// ErrCodePolicyNotAttachedException for service response error code
   503  	// "PolicyNotAttachedException".
   504  	//
   505  	// The policy isn't attached to the specified target in the specified root.
   506  	ErrCodePolicyNotAttachedException = "PolicyNotAttachedException"
   507  
   508  	// ErrCodePolicyNotFoundException for service response error code
   509  	// "PolicyNotFoundException".
   510  	//
   511  	// We can't find a policy with the PolicyId that you specified.
   512  	ErrCodePolicyNotFoundException = "PolicyNotFoundException"
   513  
   514  	// ErrCodePolicyTypeAlreadyEnabledException for service response error code
   515  	// "PolicyTypeAlreadyEnabledException".
   516  	//
   517  	// The specified policy type is already enabled in the specified root.
   518  	ErrCodePolicyTypeAlreadyEnabledException = "PolicyTypeAlreadyEnabledException"
   519  
   520  	// ErrCodePolicyTypeNotAvailableForOrganizationException for service response error code
   521  	// "PolicyTypeNotAvailableForOrganizationException".
   522  	//
   523  	// You can't use the specified policy type with the feature set currently enabled
   524  	// for this organization. For example, you can enable SCPs only after you enable
   525  	// all features in the organization. For more information, see Managing AWS
   526  	// Organizations Policies (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html#enable_policies_on_root)in
   527  	// the AWS Organizations User Guide.
   528  	ErrCodePolicyTypeNotAvailableForOrganizationException = "PolicyTypeNotAvailableForOrganizationException"
   529  
   530  	// ErrCodePolicyTypeNotEnabledException for service response error code
   531  	// "PolicyTypeNotEnabledException".
   532  	//
   533  	// The specified policy type isn't currently enabled in this root. You can't
   534  	// attach policies of the specified type to entities in a root until you enable
   535  	// that type in the root. For more information, see Enabling All Features in
   536  	// Your Organization (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html)
   537  	// in the AWS Organizations User Guide.
   538  	ErrCodePolicyTypeNotEnabledException = "PolicyTypeNotEnabledException"
   539  
   540  	// ErrCodeRootNotFoundException for service response error code
   541  	// "RootNotFoundException".
   542  	//
   543  	// We can't find a root with the RootId that you specified.
   544  	ErrCodeRootNotFoundException = "RootNotFoundException"
   545  
   546  	// ErrCodeServiceException for service response error code
   547  	// "ServiceException".
   548  	//
   549  	// AWS Organizations can't complete your request because of an internal service
   550  	// error. Try again later.
   551  	ErrCodeServiceException = "ServiceException"
   552  
   553  	// ErrCodeSourceParentNotFoundException for service response error code
   554  	// "SourceParentNotFoundException".
   555  	//
   556  	// We can't find a source root or OU with the ParentId that you specified.
   557  	ErrCodeSourceParentNotFoundException = "SourceParentNotFoundException"
   558  
   559  	// ErrCodeTargetNotFoundException for service response error code
   560  	// "TargetNotFoundException".
   561  	//
   562  	// We can't find a root, OU, account, or policy with the TargetId that you specified.
   563  	ErrCodeTargetNotFoundException = "TargetNotFoundException"
   564  
   565  	// ErrCodeTooManyRequestsException for service response error code
   566  	// "TooManyRequestsException".
   567  	//
   568  	// You have sent too many requests in too short a period of time. The quota
   569  	// helps protect against denial-of-service attacks. Try again later.
   570  	//
   571  	// For information about quotas that affect AWS Organizations, see Quotas for
   572  	// AWS Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html)in
   573  	// the AWS Organizations User Guide.
   574  	ErrCodeTooManyRequestsException = "TooManyRequestsException"
   575  
   576  	// ErrCodeUnsupportedAPIEndpointException for service response error code
   577  	// "UnsupportedAPIEndpointException".
   578  	//
   579  	// This action isn't available in the current AWS Region.
   580  	ErrCodeUnsupportedAPIEndpointException = "UnsupportedAPIEndpointException"
   581  )
   582  
   583  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
   584  	"AWSOrganizationsNotInUseException":              newErrorAWSOrganizationsNotInUseException,
   585  	"AccessDeniedException":                          newErrorAccessDeniedException,
   586  	"AccessDeniedForDependencyException":             newErrorAccessDeniedForDependencyException,
   587  	"AccountAlreadyRegisteredException":              newErrorAccountAlreadyRegisteredException,
   588  	"AccountNotFoundException":                       newErrorAccountNotFoundException,
   589  	"AccountNotRegisteredException":                  newErrorAccountNotRegisteredException,
   590  	"AccountOwnerNotVerifiedException":               newErrorAccountOwnerNotVerifiedException,
   591  	"AlreadyInOrganizationException":                 newErrorAlreadyInOrganizationException,
   592  	"ChildNotFoundException":                         newErrorChildNotFoundException,
   593  	"ConcurrentModificationException":                newErrorConcurrentModificationException,
   594  	"ConstraintViolationException":                   newErrorConstraintViolationException,
   595  	"CreateAccountStatusNotFoundException":           newErrorCreateAccountStatusNotFoundException,
   596  	"DestinationParentNotFoundException":             newErrorDestinationParentNotFoundException,
   597  	"DuplicateAccountException":                      newErrorDuplicateAccountException,
   598  	"DuplicateHandshakeException":                    newErrorDuplicateHandshakeException,
   599  	"DuplicateOrganizationalUnitException":           newErrorDuplicateOrganizationalUnitException,
   600  	"DuplicatePolicyAttachmentException":             newErrorDuplicatePolicyAttachmentException,
   601  	"DuplicatePolicyException":                       newErrorDuplicatePolicyException,
   602  	"EffectivePolicyNotFoundException":               newErrorEffectivePolicyNotFoundException,
   603  	"FinalizingOrganizationException":                newErrorFinalizingOrganizationException,
   604  	"HandshakeAlreadyInStateException":               newErrorHandshakeAlreadyInStateException,
   605  	"HandshakeConstraintViolationException":          newErrorHandshakeConstraintViolationException,
   606  	"HandshakeNotFoundException":                     newErrorHandshakeNotFoundException,
   607  	"InvalidHandshakeTransitionException":            newErrorInvalidHandshakeTransitionException,
   608  	"InvalidInputException":                          newErrorInvalidInputException,
   609  	"MalformedPolicyDocumentException":               newErrorMalformedPolicyDocumentException,
   610  	"MasterCannotLeaveOrganizationException":         newErrorMasterCannotLeaveOrganizationException,
   611  	"OrganizationNotEmptyException":                  newErrorOrganizationNotEmptyException,
   612  	"OrganizationalUnitNotEmptyException":            newErrorOrganizationalUnitNotEmptyException,
   613  	"OrganizationalUnitNotFoundException":            newErrorOrganizationalUnitNotFoundException,
   614  	"ParentNotFoundException":                        newErrorParentNotFoundException,
   615  	"PolicyChangesInProgressException":               newErrorPolicyChangesInProgressException,
   616  	"PolicyInUseException":                           newErrorPolicyInUseException,
   617  	"PolicyNotAttachedException":                     newErrorPolicyNotAttachedException,
   618  	"PolicyNotFoundException":                        newErrorPolicyNotFoundException,
   619  	"PolicyTypeAlreadyEnabledException":              newErrorPolicyTypeAlreadyEnabledException,
   620  	"PolicyTypeNotAvailableForOrganizationException": newErrorPolicyTypeNotAvailableForOrganizationException,
   621  	"PolicyTypeNotEnabledException":                  newErrorPolicyTypeNotEnabledException,
   622  	"RootNotFoundException":                          newErrorRootNotFoundException,
   623  	"ServiceException":                               newErrorServiceException,
   624  	"SourceParentNotFoundException":                  newErrorSourceParentNotFoundException,
   625  	"TargetNotFoundException":                        newErrorTargetNotFoundException,
   626  	"TooManyRequestsException":                       newErrorTooManyRequestsException,
   627  	"UnsupportedAPIEndpointException":                newErrorUnsupportedAPIEndpointException,
   628  }