@Stability(value=Stable) @Internal public static final class CfnPolicyProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnPolicyProps
CfnPolicyPropssoftware.amazon.jsii.JsiiObject.InitializationModeCfnPolicyProps.Builder, CfnPolicyProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CfnPolicyProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CfnPolicyProps.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
List<String> |
getGroups()
The name of the group to associate the policy with.
|
Object |
getPolicyDocument()
The policy document.
|
String |
getPolicyName()
The name of the policy document.
|
List<String> |
getRoles()
The name of the role to associate the policy with.
|
List<String> |
getUsers()
The name of the user to associate the policy with.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(CfnPolicyProps.Builder builder)
CfnPolicyProps.Builder.public final Object getPolicyDocument()
CfnPolicyPropsYou 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 )getPolicyDocument in interface CfnPolicyPropspublic final String getPolicyName()
CfnPolicyPropsThis 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: _+=,.@-
getPolicyName in interface CfnPolicyPropspublic final List<String> getGroups()
CfnPolicyPropsThis 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: _+=,.@-.
getGroups in interface CfnPolicyPropspublic final List<String> getRoles()
CfnPolicyPropsThis 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.
getRoles in interface CfnPolicyPropspublic final List<String> getUsers()
CfnPolicyPropsThis 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: _+=,.@-
getUsers in interface CfnPolicyProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.