logo
pub enum RegisterDelegatedAdministratorError {
    AWSOrganizationsNotInUse(String),
    AccessDenied(String),
    AccountAlreadyRegistered(String),
    AccountNotFound(String),
    ConcurrentModification(String),
    ConstraintViolation(String),
    InvalidInput(String),
    Service(String),
    TooManyRequests(String),
    UnsupportedAPIEndpoint(String),
}
Expand description

Errors returned by RegisterDelegatedAdministrator

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.

AccountAlreadyRegistered(String)

The specified account is already a delegated administrator for this AWS service.

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

  • ACCOUNTCANNOTLEAVEORGANIZATION: You attempted to remove the management account from the organization. You can't remove the management account. Instead, after you remove all member accounts, delete the organization itself.

  • 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 <a href="http://docs.aws.amazon.com/organizations/latest/userguide/orgsmanageaccountsremove.html#orgsmanageaccountsremove-from-master">Removing a member account from your organizationin 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 Removing a member account from your organization in the AWS Organizations User Guide.

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

  • ACCOUNTNUMBERLIMITEXCEEDED: You attempted to exceed the limit on the number of accounts in an organization. If you need more accounts, contact AWS 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 this exception when running a command immediately after creating the organization, wait one hour and try again. After an hour, if the command continues to fail with this error, contact AWS Support.

  • CANNOTREGISTERMASTERASDELEGATEDADMINISTRATOR: You attempted to register the management account of the organization as a delegated administrator for an AWS service integrated with Organizations. You can designate only a member account as a delegated administrator.

  • CANNOTREMOVEDELEGATEDADMINISTRATORFROMORG: You attempted to remove an account that is registered as a delegated administrator for a service integrated with your organization. To complete this operation, you must first deregister this account as a delegated administrator.

  • CREATEORGANIZATIONINBILLINGMODEUNSUPPORTEDREGION: To create an organization in the specified region, you must enable all features mode.

  • DELEGATEDADMINISTRATOREXISTSFORTHISSERVICE: You attempted to register an AWS account as a delegated administrator for an AWS service that already has a delegated administrator. To complete this operation, you must first deregister any existing delegated administrators for this service.

  • EMAILVERIFICATIONCODEEXPIRED: The email verification code is only valid for a limited period of time. You must resubmit the request and generate a new verfication code.

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

  • MASTERACCOUNTADDRESSDOESNOTMATCHMARKETPLACE: To create an account in this organization, you first must migrate the organization's management account to the marketplace that corresponds to the management 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.

  • MASTERACCOUNTMISSINGBUSINESSLICENSE: Applies only to the AWS Regions in China. To create an organization, the master must have a valid business license. For more information, contact customer support.

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

  • MASTERACCOUNTNOTGOVCLOUDENABLED: To complete this operation, the management account must have an associated account in the AWS GovCloud (US-West) Region. For more information, see AWS Organizations in the AWS GovCloud User Guide.

  • MASTERACCOUNTPAYMENTINSTRUMENTREQUIRED: To create an organization with this management account, you first must associate a valid 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.

  • MAXDELEGATEDADMINISTRATORSFORSERVICELIMITEXCEEDED: You attempted to register more delegated administrators than allowed for the service principal.

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

  • MAXTAGLIMITEXCEEDED: You have exceeded the number of tags allowed on this resource.

  • MEMBERACCOUNTPAYMENTINSTRUMENTREQUIRED: To complete this operation with this member account, you first must associate a valid 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.

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

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

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

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

  • POLICYCONTENTLIMITEXCEEDED: You attempted to create a policy that is larger than the maximum size.

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

  • TAGPOLICYVIOLATION: You attempted to create or update a resource with tags that are not compliant with the tag policy requirements for this account.

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.

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.

UnsupportedAPIEndpoint(String)

This action isn't available in the current AWS Region.

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