All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.organizations.model.ConstraintViolationException Maven / Gradle / Ivy

/*
 * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.organizations.model;

import javax.annotation.Generated;

/**
 * 

* Performing this operation violates a minimum or maximum value limit. For example, attempting to removing the last 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: *

*

*

    *
  • *

    * ACCOUNT_NUMBER_LIMIT_EXCEEDED: 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. *

    *

    * Note: deleted and closed accounts still count toward your limit. *

    *
  • *
  • *

    * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of handshakes you can send in one day. *

    *
  • *
  • *

    * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of organizational units you can have in an organization. *

    *
  • *
  • *

    * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an organizational unit tree that is too many levels deep. *

    *
  • *
  • *

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

    *
  • *
  • *

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

    *
  • *
  • *

    * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: 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. *

    *
  • *
  • *

    * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account from the organization that does not yet have * enough information to exist as a stand-alone account. This account requires you to first agree to the End-User * License Agreement (EULA). *

    *
  • *
  • *

    * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove an account from the organization that does * not yet have enough information to exist as a stand-alone account. This account requires you to first complete phone * verification. *

    *
  • *
  • *

    * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization with this account, you first must associate a * payment instrument, such as a credit card, with the account. *

    *
  • *
  • *

    * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation with this member account, you first must * associate a payment instrument, such as a credit card, with the account. *

    *
  • *
  • *

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

    *
  • *
  • *

    * MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE: 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. *

    *
  • *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ConstraintViolationException extends com.amazonaws.services.organizations.model.AWSOrganizationsException { private static final long serialVersionUID = 1L; private String reason; /** * Constructs a new ConstraintViolationException with the specified error message. * * @param message * Describes the error encountered. */ public ConstraintViolationException(String message) { super(message); } /** * @param reason * @see ConstraintViolationExceptionReason */ @com.fasterxml.jackson.annotation.JsonProperty("Reason") public void setReason(String reason) { this.reason = reason; } /** * @return * @see ConstraintViolationExceptionReason */ @com.fasterxml.jackson.annotation.JsonProperty("Reason") public String getReason() { return this.reason; } /** * @param reason * @return Returns a reference to this object so that method calls can be chained together. * @see ConstraintViolationExceptionReason */ public ConstraintViolationException withReason(String reason) { setReason(reason); return this; } /** * @param reason * @see ConstraintViolationExceptionReason */ public void setReason(ConstraintViolationExceptionReason reason) { withReason(reason); } /** * @param reason * @return Returns a reference to this object so that method calls can be chained together. * @see ConstraintViolationExceptionReason */ public ConstraintViolationException withReason(ConstraintViolationExceptionReason reason) { this.reason = reason.toString(); return this; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy