Interface CfnUserPolicyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnUserPolicyProps.Jsii$Proxy
CfnUserPolicy
.
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; CfnUserPolicyProps cfnUserPolicyProps = CfnUserPolicyProps.builder() .policyName("policyName") .userName("userName") // the properties below are optional .policyDocument(policyDocument) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnUserPolicyProps
static final class
An implementation forCfnUserPolicyProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnUserPolicyProps.Builder
builder()
default Object
The policy document.The name of the policy document.The name of the user 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:
-
getUserName
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: _+=,.@-
- 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
CfnUserPolicyProps.Builder
ofCfnUserPolicyProps
-