Skip to content

Commit 8a9e44b

Browse files
Added ALL_FEATURES_MIGRATION_ORGANIZATION_SIZE_LIMIT_EXCEEDED to ConstraintViolationException for the EnableAllFeatures operation.
1 parent bf21847 commit 8a9e44b

12 files changed

+3431
-4
lines changed

generator/ServiceModels/organizations/organizations-2016-11-28.api.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@
541541
{"shape":"AccessDeniedException"},
542542
{"shape":"AWSOrganizationsNotInUseException"},
543543
{"shape":"ConcurrentModificationException"},
544+
{"shape":"ConstraintViolationException"},
544545
{"shape":"HandshakeConstraintViolationException"},
545546
{"shape":"InvalidInputException"},
546547
{"shape":"ServiceException"},
@@ -1302,7 +1303,8 @@
13021303
"SERVICE_ACCESS_NOT_ENABLED",
13031304
"INVALID_PAYMENT_INSTRUMENT",
13041305
"ACCOUNT_CREATION_NOT_COMPLETE",
1305-
"CANNOT_REGISTER_SUSPENDED_ACCOUNT_AS_DELEGATED_ADMINISTRATOR"
1306+
"CANNOT_REGISTER_SUSPENDED_ACCOUNT_AS_DELEGATED_ADMINISTRATOR",
1307+
"ALL_FEATURES_MIGRATION_ORGANIZATION_SIZE_LIMIT_EXCEEDED"
13061308
]
13071309
},
13081310
"CreateAccountFailureReason":{

generator/ServiceModels/organizations/organizations-2016-11-28.docs.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

generator/ServiceModels/organizations/organizations-2016-11-28.normal.json

Lines changed: 4 additions & 2 deletions
Large diffs are not rendered by default.

sdk/src/Services/Organizations/Generated/Model/ConstraintViolationException.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ namespace Amazon.Organizations.Model
9090
/// </para>
9191
/// </important> </li> <li>
9292
/// <para>
93+
/// ALL_FEATURES_MIGRATION_ORGANIZATION_SIZE_LIMIT_EXCEEDED: Your organization has more
94+
/// than 5000 accounts, and you can only use the standard migration process for organizations
95+
/// with less than 5000 accounts. Use the assisted migration process to enable all features
96+
/// mode, or create a support case for assistance if you are unable to use assisted migration.
97+
/// </para>
98+
/// </li> <li>
99+
/// <para>
93100
/// CANNOT_REGISTER_SUSPENDED_ACCOUNT_AS_DELEGATED_ADMINISTRATOR: You cannot register
94101
/// a suspended account as a delegated administrator.
95102
/// </para>

sdk/src/Services/Organizations/Generated/Model/Internal/MarshallTransformations/EnableAllFeaturesResponseUnmarshaller.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte
9393
{
9494
return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
9595
}
96+
if (errorResponse.Code != null && errorResponse.Code.Equals("ConstraintViolationException"))
97+
{
98+
return ConstraintViolationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
99+
}
96100
if (errorResponse.Code != null && errorResponse.Code.Equals("HandshakeConstraintViolationException"))
97101
{
98102
return HandshakeConstraintViolationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);

sdk/src/Services/Organizations/Generated/ServiceEnumerations.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,10 @@ public class ConstraintViolationExceptionReason : ConstantClass
313313
/// </summary>
314314
public static readonly ConstraintViolationExceptionReason ACCOUNT_NUMBER_LIMIT_EXCEEDED = new ConstraintViolationExceptionReason("ACCOUNT_NUMBER_LIMIT_EXCEEDED");
315315
/// <summary>
316+
/// Constant ALL_FEATURES_MIGRATION_ORGANIZATION_SIZE_LIMIT_EXCEEDED for ConstraintViolationExceptionReason
317+
/// </summary>
318+
public static readonly ConstraintViolationExceptionReason ALL_FEATURES_MIGRATION_ORGANIZATION_SIZE_LIMIT_EXCEEDED = new ConstraintViolationExceptionReason("ALL_FEATURES_MIGRATION_ORGANIZATION_SIZE_LIMIT_EXCEEDED");
319+
/// <summary>
316320
/// Constant CANNOT_CLOSE_MANAGEMENT_ACCOUNT for ConstraintViolationExceptionReason
317321
/// </summary>
318322
public static readonly ConstraintViolationExceptionReason CANNOT_CLOSE_MANAGEMENT_ACCOUNT = new ConstraintViolationExceptionReason("CANNOT_CLOSE_MANAGEMENT_ACCOUNT");

sdk/src/Services/Organizations/Generated/_bcl35/AmazonOrganizationsClient.cs

Lines changed: 426 additions & 0 deletions
Large diffs are not rendered by default.

sdk/src/Services/Organizations/Generated/_bcl35/IAmazonOrganizations.cs

Lines changed: 426 additions & 0 deletions
Large diffs are not rendered by default.

sdk/src/Services/Organizations/Generated/_bcl45/AmazonOrganizationsClient.cs

Lines changed: 852 additions & 0 deletions
Large diffs are not rendered by default.

sdk/src/Services/Organizations/Generated/_bcl45/IAmazonOrganizations.cs

Lines changed: 852 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)