@Stability(value=Stable) public static final class CfnPolicyProps.Builder extends Object implements software.amazon.jsii.Builder<CfnPolicyProps>
CfnPolicyProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnPolicyProps |
build()
Builds the configured instance.
|
CfnPolicyProps.Builder |
groups(List<String> groups)
Sets the value of
CfnPolicyProps.getGroups() |
CfnPolicyProps.Builder |
policyDocument(Object policyDocument)
Sets the value of
CfnPolicyProps.getPolicyDocument() |
CfnPolicyProps.Builder |
policyName(String policyName)
Sets the value of
CfnPolicyProps.getPolicyName() |
CfnPolicyProps.Builder |
roles(List<String> roles)
Sets the value of
CfnPolicyProps.getRoles() |
CfnPolicyProps.Builder |
users(List<String> users)
Sets the value of
CfnPolicyProps.getUsers() |
@Stability(value=Stable) public CfnPolicyProps.Builder policyDocument(Object policyDocument)
CfnPolicyProps.getPolicyDocument()policyDocument - The policy document. This parameter is required.
You must provide policies in JSON format in IAM. However, for AWS CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. AWS CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
The regex pattern used to validate this parameter is a string of characters consisting of the following:
\ u0020 ) through the end of the ASCII character range\ u00FF )\ u0009 ), line feed ( \ u000A ), and carriage return ( \ u000D )this@Stability(value=Stable) public CfnPolicyProps.Builder policyName(String policyName)
CfnPolicyProps.getPolicyName()policyName - The name of the policy document. This parameter is required.
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 CfnPolicyProps.Builder groups(List<String> groups)
CfnPolicyProps.getGroups()groups - The name of the group to associate the policy with.
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 CfnPolicyProps.Builder roles(List<String> roles)
CfnPolicyProps.getRoles()roles - The name of the role to associate the policy with.
This parameter allows (per 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: _+=,.@-
If an external policy (such as
AWS::IAM::PolicyorAWS::IAM::ManagedPolicy) has aRefto a role and if a resource (such asAWS::ECS::Service) also has aRefto the same role, add aDependsOnattribute to the resource to make the resource depend on the external policy. This dependency ensures that the role's policy is available throughout the resource's lifecycle. For example, when you delete a stack with anAWS::ECS::Serviceresource, theDependsOnattribute ensures that AWS CloudFormation deletes theAWS::ECS::Serviceresource before deleting its role's policy.
this@Stability(value=Stable) public CfnPolicyProps.Builder users(List<String> users)
CfnPolicyProps.getUsers()users - The name of the user to associate the policy with.
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 CfnPolicyProps build()
build in interface software.amazon.jsii.Builder<CfnPolicyProps>CfnPolicyPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.