[][src]Enum rusoto_organizations::RemoveAccountFromOrganizationError

pub enum RemoveAccountFromOrganizationError {
    AWSOrganizationsNotInUse(String),
    AccessDenied(String),
    AccountNotFound(String),
    ConcurrentModification(String),
    ConstraintViolation(String),
    InvalidInput(String),
    MasterCannotLeaveOrganization(String),
    Service(String),
    TooManyRequests(String),
    HttpDispatch(HttpDispatchError),
    Credentials(CredentialsError),
    Validation(String),
    ParseError(String),
    Unknown(BufferedHttpResponse),
}

Errors returned by RemoveAccountFromOrganization

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.

ConstraintViolation(String)

Performing this operation violates a minimum or maximum value limit. For example, attempting to removing the last service control policy (SCP) from an OU or root, inviting or creating too many accounts to the organization, or attaching too many policies to an account, OU, or root. 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:

  • ACCOUNTNUMBERLIMITEXCEEDED: You attempted to exceed the limit on the number of accounts in an organization. If you need more accounts, contactAWS Support to request an increase in your limit.

    Or the number of invitations that you tried to send would cause you to exceed the limit of accounts in your organization. Send fewer invitations or contact AWS Support to request an increase in the number of accounts.

    Deleted and closed accounts still count toward your limit.

    If you get receive this exception when running a command immediately after creating the organization, wait one hour and try again. If after an hour it continues to fail with this error, contact AWS Support.

  • HANDSHAKERATELIMITEXCEEDED: You attempted to exceed the number of handshakes that you can send in one day.

  • OUNUMBERLIMITEXCEEDED: You attempted to exceed the number of OUs that you can have in an organization.

  • OUDEPTHLIMITEXCEEDED: You attempted to create an OU tree that is too many levels deep.

  • ORGANIZATIONNOTINALLFEATURESMODE: You attempted to perform an operation that requires the organization to be configured to support all features. An organization that supports only consolidated billing features can't perform this operation.

  • POLICYNUMBERLIMITEXCEEDED. You attempted to exceed the number of policies that you can have in an organization.

  • MAXPOLICYTYPEATTACHMENTLIMITEXCEEDED: You attempted to exceed the number of policies of a certain type that can be attached to an entity at one time.

  • MINPOLICYTYPEATTACHMENTLIMITEXCEEDED: You attempted to detach a policy from an entity that would cause the entity to have fewer than the minimum number of policies of a certain type required.

  • ACCOUNTCANNOTLEAVEWITHOUTEULA: You attempted to remove an account from the organization that doesn't yet have enough information to exist as a standalone account. This account requires you to first agree to the AWS Customer Agreement. Follow the steps at To leave an organization when all required account information has not yet been provided in the AWS Organizations User Guide.

  • ACCOUNTCANNOTLEAVEWITHOUTPHONEVERIFICATION: You attempted to remove an account from the organization that doesn't yet have enough information to exist as a standalone account. This account requires you to first complete phone verification. Follow the steps at <a href="http://docs.aws.amazon.com/organizations/latest/userguide/orgsmanageaccountsremove.html#leave-without-all-info">To leave an organization when all required account information has not yet been provided in the AWS Organizations User Guide.

  • MASTERACCOUNTPAYMENTINSTRUMENTREQUIRED: To create an organization with this master account, you first must associate a payment instrument, such as a credit card, with the account. Follow the steps at To leave an organization when all required account information has not yet been provided in the AWS Organizations User Guide.

  • MEMBERACCOUNTPAYMENTINSTRUMENTREQUIRED: To complete this operation with this member account, you first must associate a payment instrument, such as a credit card, with the account. Follow the steps at To leave an organization when all required account information has not yet been provided in the AWS Organizations User Guide.

  • ACCOUNTCREATIONRATELIMITEXCEEDED: You attempted to exceed the number of accounts that you can create in one day.

  • MASTERACCOUNTADDRESSDOESNOTMATCHMARKETPLACE: To create an account in this organization, you first must migrate the organization's master account to the marketplace that corresponds to the master account's address. For example, accounts with India addresses must be associated with the AISPL marketplace. All accounts in an organization must be associated with the same marketplace.

  • MASTERACCOUNTMISSINGCONTACTINFO: To complete this operation, you must first provide contact a valid address and phone number for the master account. Then try the operation again.

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:

  • 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.

  • INVALIDENUM: You specified a value that isn't valid for that parameter.

  • 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.

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

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

  • 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.

  • 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.

MasterCannotLeaveOrganization(String)

You can't remove a master account from an organization. If you want the master account to become a member account in another organization, you must first delete the current organization of the master account.

Service(String)

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

TooManyRequests(String)

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

For information on limits that affect Organizations, see Limits of AWS Organizations in the AWS Organizations User Guide.

HttpDispatch(HttpDispatchError)

An error occurred dispatching the HTTP request

Credentials(CredentialsError)

An error was encountered with AWS credentials.

Validation(String)

A validation error occurred. Details from AWS are provided.

ParseError(String)

An error occurred parsing the response payload.

Unknown(BufferedHttpResponse)

An unknown error occurred. The raw HTTP response is provided.

Methods

impl RemoveAccountFromOrganizationError[src]

Trait Implementations

impl PartialEq<RemoveAccountFromOrganizationError> for RemoveAccountFromOrganizationError[src]

impl From<Error> for RemoveAccountFromOrganizationError[src]

impl From<CredentialsError> for RemoveAccountFromOrganizationError[src]

impl From<HttpDispatchError> for RemoveAccountFromOrganizationError[src]

impl From<Error> for RemoveAccountFromOrganizationError[src]

impl Display for RemoveAccountFromOrganizationError[src]

impl Debug for RemoveAccountFromOrganizationError[src]

impl Error for RemoveAccountFromOrganizationError[src]

fn cause(&self) -> Option<&dyn Error>
1.0.0
[src]

Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

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

fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0
[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self