@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:06.756Z") @Stability(value=Stable) public interface CfnPolicyProps 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 policyDocument;
CfnPolicyProps cfnPolicyProps = CfnPolicyProps.builder()
.policyDocument(policyDocument)
.policyName("policyName")
// the properties below are optional
.groups(List.of("groups"))
.roles(List.of("roles"))
.users(List.of("users"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnPolicyProps.Builder
A builder for
CfnPolicyProps |
static class |
CfnPolicyProps.Jsii$Proxy
An implementation for
CfnPolicyProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnPolicyProps.Builder |
builder() |
default List<String> |
getGroups()
`AWS::IAM::Policy.Groups`.
|
Object |
getPolicyDocument()
`AWS::IAM::Policy.PolicyDocument`.
|
String |
getPolicyName()
`AWS::IAM::Policy.PolicyName`.
|
default List<String> |
getRoles()
`AWS::IAM::Policy.Roles`.
|
default List<String> |
getUsers()
`AWS::IAM::Policy.Users`.
|
@Stability(value=Stable) @Nullable default List<String> getGroups()
@Stability(value=Stable) @NotNull Object getPolicyDocument()
@Stability(value=Stable) @NotNull String getPolicyName()
@Stability(value=Stable) @Nullable default List<String> getRoles()
@Stability(value=Stable) @Nullable default List<String> getUsers()
@Stability(value=Stable) static CfnPolicyProps.Builder builder()
CfnPolicyProps.Builder of CfnPolicyPropsCopyright © 2021. All rights reserved.