@Generated(value="software.amazon.awssdk:codegen") public final class CreateGovCloudAccountRequest extends OrganizationsRequest implements ToCopyableBuilder<CreateGovCloudAccountRequest.Builder,CreateGovCloudAccountRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateGovCloudAccountRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accountName()
The friendly name of the member account.
|
static CreateGovCloudAccountRequest.Builder |
builder() |
String |
email()
The email address of the owner to assign to the new member account in the commercial Region.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
IAMUserAccessToBilling |
iamUserAccessToBilling()
If set to
ALLOW, the new linked account in the commercial Region enables IAM users to access account
billing information if they have the required permissions. |
String |
iamUserAccessToBillingAsString()
If set to
ALLOW, the new linked account in the commercial Region enables IAM users to access account
billing information if they have the required permissions. |
String |
roleName()
(Optional)
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateGovCloudAccountRequest.Builder> |
serializableBuilderClass() |
List<Tag> |
tags()
A list of tags that you want to attach to the newly created account.
|
CreateGovCloudAccountRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String email()
The email address of the owner to assign to the new member account in the commercial Region. This email address
must not already be associated with another AWS account. You must use a valid email address to complete account
creation. You can't access the root user of the account or remove an account that was created with an invalid
email address. Like all request parameters for CreateGovCloudAccount, the request for the email
address for the AWS GovCloud (US) account originates from the commercial Region, not from the AWS GovCloud (US)
Region.
CreateGovCloudAccount
, the request for the email address for the AWS GovCloud (US) account originates from the commercial
Region, not from the AWS GovCloud (US) Region.public final String accountName()
The friendly name of the member account.
public final String roleName()
(Optional)
The name of an IAM role that AWS Organizations automatically preconfigures in the new member accounts in both the AWS GovCloud (US) Region and in the commercial Region. This role trusts the management account, allowing users in the management account to assume the role, as permitted by the management account administrator. The role has administrator permissions in the new member account.
If you don't specify this parameter, the role name defaults to OrganizationAccountAccessRole.
For more information about how to use this role to access the member account, see Accessing and Administering the Member Accounts in Your Organization in the AWS Organizations User Guide and steps 2 and 3 in Tutorial: Delegate Access Across AWS Accounts Using IAM Roles in the IAM User Guide.
The regex pattern that is used to validate this parameter. The pattern can include uppercase letters, lowercase letters, digits with no spaces, and any of the following characters: =,.@-
The name of an IAM role that AWS Organizations automatically preconfigures in the new member accounts in both the AWS GovCloud (US) Region and in the commercial Region. This role trusts the management account, allowing users in the management account to assume the role, as permitted by the management account administrator. The role has administrator permissions in the new member account.
If you don't specify this parameter, the role name defaults to OrganizationAccountAccessRole
.
For more information about how to use this role to access the member account, see Accessing and Administering the Member Accounts in Your Organization in the AWS Organizations User Guide and steps 2 and 3 in Tutorial: Delegate Access Across AWS Accounts Using IAM Roles in the IAM User Guide.
The regex pattern that is used to validate this parameter. The pattern can include uppercase letters, lowercase letters, digits with no spaces, and any of the following characters: =,.@-
public final IAMUserAccessToBilling iamUserAccessToBilling()
If set to ALLOW, the new linked account in the commercial Region enables IAM users to access account
billing information if they have the required permissions. If set to DENY, only the root user
of the new account can access account billing information. For more information, see Activating Access to the Billing and Cost Management Console in the AWS Billing and Cost Management User
Guide.
If you don't specify this parameter, the value defaults to ALLOW, and IAM users and roles with the
required permissions can access billing information for the new account.
If the service returns an enum value that is not available in the current SDK version,
iamUserAccessToBilling will return IAMUserAccessToBilling.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from iamUserAccessToBillingAsString().
ALLOW, the new linked account in the commercial Region enables IAM users to access
account billing information if they have the required permissions. If set to DENY,
only the root user of the new account can access account billing information. For more information, see
Activating Access to the Billing and Cost Management Console in the AWS Billing and Cost
Management User Guide.
If you don't specify this parameter, the value defaults to ALLOW, and IAM users and roles
with the required permissions can access billing information for the new account.
IAMUserAccessToBillingpublic final String iamUserAccessToBillingAsString()
If set to ALLOW, the new linked account in the commercial Region enables IAM users to access account
billing information if they have the required permissions. If set to DENY, only the root user
of the new account can access account billing information. For more information, see Activating Access to the Billing and Cost Management Console in the AWS Billing and Cost Management User
Guide.
If you don't specify this parameter, the value defaults to ALLOW, and IAM users and roles with the
required permissions can access billing information for the new account.
If the service returns an enum value that is not available in the current SDK version,
iamUserAccessToBilling will return IAMUserAccessToBilling.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from iamUserAccessToBillingAsString().
ALLOW, the new linked account in the commercial Region enables IAM users to access
account billing information if they have the required permissions. If set to DENY,
only the root user of the new account can access account billing information. For more information, see
Activating Access to the Billing and Cost Management Console in the AWS Billing and Cost
Management User Guide.
If you don't specify this parameter, the value defaults to ALLOW, and IAM users and roles
with the required permissions can access billing information for the new account.
IAMUserAccessToBillingpublic final boolean hasTags()
public final List<Tag> tags()
A list of tags that you want to attach to the newly created account. These tags are attached to the commercial account associated with the GovCloud account, and not to the GovCloud account itself. To add tags to the actual GovCloud account, call the TagResource operation in the GovCloud region after the new GovCloud account exists.
For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty string,
but you can't set it to null. For more information about tagging, see Tagging AWS Organizations
resources in the AWS Organizations User Guide.
If any one of the tags is invalid or if you exceed the allowed number of tags for an account, then the entire request fails and the account is not created.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty
string, but you can't set it to null. For more information about tagging, see Tagging AWS
Organizations resources in the AWS Organizations User Guide.
If any one of the tags is invalid or if you exceed the allowed number of tags for an account, then the entire request fails and the account is not created.
public CreateGovCloudAccountRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateGovCloudAccountRequest.Builder,CreateGovCloudAccountRequest>toBuilder in class OrganizationsRequestpublic static CreateGovCloudAccountRequest.Builder builder()
public static Class<? extends CreateGovCloudAccountRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.