@Stability(value=Stable) public static final class CfnInstanceProfileProps.Builder extends Object implements software.amazon.jsii.Builder<CfnInstanceProfileProps>
CfnInstanceProfileProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnInstanceProfileProps |
build()
Builds the configured instance.
|
CfnInstanceProfileProps.Builder |
instanceProfileName(String instanceProfileName)
Sets the value of
CfnInstanceProfileProps.getInstanceProfileName() |
CfnInstanceProfileProps.Builder |
path(String path)
Sets the value of
CfnInstanceProfileProps.getPath() |
CfnInstanceProfileProps.Builder |
roles(List<String> roles)
Sets the value of
CfnInstanceProfileProps.getRoles() |
@Stability(value=Stable) public CfnInstanceProfileProps.Builder roles(List<String> roles)
CfnInstanceProfileProps.getRoles()roles - The name of the role to associate with the instance profile. This parameter is required.
Only one role can be assigned to an EC2 instance at a time, and all applications on the instance share the same role and permissions.this@Stability(value=Stable) public CfnInstanceProfileProps.Builder instanceProfileName(String instanceProfileName)
CfnInstanceProfileProps.getInstanceProfileName()instanceProfileName - The name of the instance profile to create.
This parameter allows (through its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-this@Stability(value=Stable) public CfnInstanceProfileProps.Builder path(String path)
CfnInstanceProfileProps.getPath()path - The path to the instance profile.
For more information about paths, see IAM Identifiers in the IAM User Guide .
This parameter is optional. If it is not included, it defaults to a slash (/).
This parameter allows (through its regex pattern ) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! ( \ u0021 ) through the DEL character ( \ u007F ), including most punctuation characters, digits, and upper and lowercased letters.
this@Stability(value=Stable) public CfnInstanceProfileProps build()
build in interface software.amazon.jsii.Builder<CfnInstanceProfileProps>CfnInstanceProfilePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.