logo
pub enum MoveAccountError {
    AWSOrganizationsNotInUse(String),
    AccessDenied(String),
    AccountNotFound(String),
    ConcurrentModification(String),
    DestinationParentNotFound(String),
    DuplicateAccount(String),
    InvalidInput(String),
    Service(String),
    SourceParentNotFound(String),
    TooManyRequests(String),
}
Expand description

Errors returned by MoveAccount

Variants

AWSOrganizationsNotInUse(String)

Your account isn't a member of an organization. To make this request, you must use the credentials of an account that belongs to an organization.

AccessDenied(String)

You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide.

AccountNotFound(String)

We can't find an AWS account with the AccountId that you specified, or the account whose credentials you used to make this request isn't a member of an organization.

ConcurrentModification(String)

The target of the operation is currently being modified by a different request. Try again later.

DestinationParentNotFound(String)

We can't find the destination container (a root or OU) with the ParentId that you specified.

DuplicateAccount(String)

That account is already present in the specified destination.

InvalidInput(String)

The requested operation failed because you provided invalid values for one or more of the request parameters. This exception includes a reason that contains additional information about the violated limit:

Some of the reasons in the following list might not be applicable to this specific API or operation.

  • DUPLICATETAGKEY: Tag keys must be unique among the tags attached to the same entity.

  • IMMUTABLEPOLICY: You specified a policy that is managed by AWS and can't be modified.

  • INPUTREQUIRED: You must include a value for all required parameters.

  • INVALIDEMAILADDRESSTARGET: You specified an invalid email address for the invited account owner.

  • INVALIDENUM: You specified an invalid value.

  • INVALIDENUMPOLICYTYPE: You specified an invalid policy type string.

  • INVALIDFULLNAMETARGET: You specified a full name that contains invalid characters.

  • INVALIDLISTMEMBER: You provided a list to a parameter that contains at least one invalid value.

  • INVALIDPAGINATIONTOKEN: Get the value for the NextToken parameter from the response to a previous call of the operation.

  • INVALIDPARTYTYPETARGET: You specified the wrong type of entity (account, organization, or email) as a party.

  • INVALIDPATTERN: You provided a value that doesn't match the required pattern.

  • INVALIDPATTERNTARGETID: You specified a policy target ID that doesn't match the required pattern.

  • INVALIDROLENAME: You provided a role name that isn't valid. A role name can't begin with the reserved prefix AWSServiceRoleFor.

  • INVALIDSYNTAXORGANIZATIONARN: You specified an invalid Amazon Resource Name (ARN) for the organization.

  • INVALIDSYNTAXPOLICYID: You specified an invalid policy ID.

  • INVALIDSYSTEMTAGSPARAMETER: You specified a tag key that is a system tag. You can’t add, edit, or delete system tag keys because they're reserved for AWS use. System tags don’t count against your tags per resource limit.

  • MAXFILTERLIMITEXCEEDED: You can specify only one filter parameter for the operation.

  • MAXLENGTHEXCEEDED: You provided a string parameter that is longer than allowed.

  • MAXVALUEEXCEEDED: You provided a numeric parameter that has a larger value than allowed.

  • MINLENGTHEXCEEDED: You provided a string parameter that is shorter than allowed.

  • MINVALUEEXCEEDED: You provided a numeric parameter that has a smaller value than allowed.

  • MOVINGACCOUNTBETWEENDIFFERENTROOTS: You can move an account only between entities in the same root.

  • TARGETNOTSUPPORTED: You can't perform the specified operation on that target entity.

  • UNRECOGNIZEDSERVICE_PRINCIPAL: You specified a service principal that isn't recognized.

Service(String)

AWS Organizations can't complete your request because of an internal service error. Try again later.

SourceParentNotFound(String)

We can't find a source root or OU with the ParentId that you specified.

TooManyRequests(String)

You have sent too many requests in too short a period of time. The quota helps protect against denial-of-service attacks. Try again later.

For information about quotas that affect AWS Organizations, see Quotas for AWS Organizationsin the AWS Organizations User Guide.

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more