@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:17.886Z") @Stability(value=Stable) public interface CfnRoleProps 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.*;
Object assumeRolePolicyDocument;
Object policyDocument;
CfnRoleProps cfnRoleProps = CfnRoleProps.builder()
.assumeRolePolicyDocument(assumeRolePolicyDocument)
// the properties below are optional
.description("description")
.managedPolicyArns(List.of("managedPolicyArns"))
.maxSessionDuration(123)
.path("path")
.permissionsBoundary("permissionsBoundary")
.policies(List.of(PolicyProperty.builder()
.policyDocument(policyDocument)
.policyName("policyName")
.build()))
.roleName("roleName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnRoleProps.Builder
A builder for
CfnRoleProps |
static class |
CfnRoleProps.Jsii$Proxy
An implementation for
CfnRoleProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnRoleProps.Builder |
builder() |
Object |
getAssumeRolePolicyDocument()
`AWS::IAM::Role.AssumeRolePolicyDocument`.
|
default String |
getDescription()
`AWS::IAM::Role.Description`.
|
default List<String> |
getManagedPolicyArns()
`AWS::IAM::Role.ManagedPolicyArns`.
|
default Number |
getMaxSessionDuration()
`AWS::IAM::Role.MaxSessionDuration`.
|
default String |
getPath()
`AWS::IAM::Role.Path`.
|
default String |
getPermissionsBoundary()
`AWS::IAM::Role.PermissionsBoundary`.
|
default Object |
getPolicies()
`AWS::IAM::Role.Policies`.
|
default String |
getRoleName()
`AWS::IAM::Role.RoleName`.
|
default List<CfnTag> |
getTags()
`AWS::IAM::Role.Tags`.
|
@Stability(value=Stable) @NotNull Object getAssumeRolePolicyDocument()
@Stability(value=Stable) @Nullable default String getDescription()
@Stability(value=Stable) @Nullable default List<String> getManagedPolicyArns()
@Stability(value=Stable) @Nullable default Number getMaxSessionDuration()
@Stability(value=Stable) @Nullable default String getPath()
@Stability(value=Stable) @Nullable default String getPermissionsBoundary()
@Stability(value=Stable) @Nullable default Object getPolicies()
@Stability(value=Stable) @Nullable default String getRoleName()
@Stability(value=Stable) static CfnRoleProps.Builder builder()
CfnRoleProps.Builder of CfnRolePropsCopyright © 2021. All rights reserved.