Interface CfnRolePolicyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRolePolicyProps.Jsii$Proxy
CfnRolePolicy
.
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; CfnRolePolicyProps cfnRolePolicyProps = CfnRolePolicyProps.builder() .policyName("policyName") .roleName("roleName") // the properties below are optional .policyDocument(policyDocument) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnRolePolicyProps
static final class
An implementation forCfnRolePolicyProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnRolePolicyProps.Builder
builder()
default Object
The policy document.The name of the policy document.The name of the role to associate the policy with.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPolicyName
The name of the policy document.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: _+=,.@-
- See Also:
-
getRoleName
The name of the role 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: _+=,.@-
- See Also:
-
getPolicyDocument
The policy document.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:
- Any printable ASCII character ranging from the space character (
- The printable characters in the Basic Latin and Latin-1 Supplement character set (through
ΓΏ
) - The special characters tab (
- See Also:
- Any printable ASCII character ranging from the space character (
-
builder
- Returns:
- a
CfnRolePolicyProps.Builder
ofCfnRolePolicyProps
-