@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.719Z") @Stability(value=Stable) public interface CfnInstanceProfileProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iam.*;
CfnInstanceProfileProps cfnInstanceProfileProps = CfnInstanceProfileProps.builder()
.roles(List.of("roles"))
// the properties below are optional
.instanceProfileName("instanceProfileName")
.path("path")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnInstanceProfileProps.Builder
A builder for
CfnInstanceProfileProps |
static class |
CfnInstanceProfileProps.Jsii$Proxy
An implementation for
CfnInstanceProfileProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnInstanceProfileProps.Builder |
builder() |
default String |
getInstanceProfileName()
The name of the instance profile to create.
|
default String |
getPath()
The path to the instance profile.
|
List<String> |
getRoles()
The name of the role to associate with the instance profile.
|
@Stability(value=Stable) @NotNull List<String> getRoles()
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.
@Stability(value=Stable) @Nullable default String getInstanceProfileName()
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: _+=,.@-
@Stability(value=Stable) @Nullable default String getPath()
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.
@Stability(value=Stable) static CfnInstanceProfileProps.Builder builder()
CfnInstanceProfileProps.Builder of CfnInstanceProfilePropsCopyright © 2022. All rights reserved.