@Stability(value=Stable) public static final class CfnInstanceProfile.Builder extends Object implements software.amazon.jsii.Builder<CfnInstanceProfile>
CfnInstanceProfile.| Modifier and Type | Method and Description |
|---|---|
CfnInstanceProfile |
build() |
static CfnInstanceProfile.Builder |
create(software.constructs.Construct scope,
String id) |
CfnInstanceProfile.Builder |
instanceProfileName(String instanceProfileName)
The name of the instance profile to create.
|
CfnInstanceProfile.Builder |
path(String path)
The path to the instance profile.
|
CfnInstanceProfile.Builder |
roles(List<String> roles)
The name of the role to associate with the instance profile.
|
@Stability(value=Stable) public static CfnInstanceProfile.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnInstanceProfile.Builder.@Stability(value=Stable) public CfnInstanceProfile.Builder roles(List<String> roles)
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.
roles - The name of the role to associate with the instance profile. This parameter is required.this@Stability(value=Stable) public CfnInstanceProfile.Builder instanceProfileName(String instanceProfileName)
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: _+=,.@-
instanceProfileName - The name of the instance profile to create. This parameter is required.this@Stability(value=Stable) public CfnInstanceProfile.Builder path(String path)
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.
path - The path to the instance profile. This parameter is required.this@Stability(value=Stable) public CfnInstanceProfile build()
build in interface software.amazon.jsii.Builder<CfnInstanceProfile>Copyright © 2022. All rights reserved.