@Generated(value="software.amazon.awssdk:codegen") public final class CreateAccountRequest extends OrganizationsRequest implements ToCopyableBuilder<CreateAccountRequest.Builder,CreateAccountRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateAccountRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accountName()
The friendly name of the member account.
|
static CreateAccountRequest.Builder |
builder() |
String |
email()
The email address of the owner to assign to the new member account.
|
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 account enables IAM users to access account billing information if
they have the required permissions. |
String |
iamUserAccessToBillingAsString()
If set to
ALLOW, the new account enables IAM users to access account billing information if
they have the required permissions. |
String |
roleName()
(Optional)
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateAccountRequest.Builder> |
serializableBuilderClass() |
List<Tag> |
tags()
A list of tags that you want to attach to the newly created account.
|
CreateAccountRequest.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. 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.
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 account. 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 the following links:
Accessing and Administering the Member Accounts in Your Organization in the AWS Organizations User Guide
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 account. 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 the following links:
Accessing and Administering the Member Accounts in Your Organization in the AWS Organizations User Guide
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 account 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 account 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 account 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 account 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. 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.
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 CreateAccountRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateAccountRequest.Builder,CreateAccountRequest>toBuilder in class OrganizationsRequestpublic static CreateAccountRequest.Builder builder()
public static Class<? extends CreateAccountRequest.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.