public static interface CfnRole.PolicyProperty
An attached policy is a managed policy that has been attached to a user, group, or role.
For more information about managed policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
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; PolicyProperty policyProperty = PolicyProperty.builder() .policyDocument(policyDocument) .policyName("policyName") .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnRole.PolicyProperty.Builder
A builder for
CfnRole.PolicyProperty |
static class |
CfnRole.PolicyProperty.Jsii$Proxy
An implementation for
CfnRole.PolicyProperty |
Modifier and Type | Method and Description |
---|---|
static CfnRole.PolicyProperty.Builder |
builder() |
java.lang.Object |
getPolicyDocument()
The policy document.
|
java.lang.String |
getPolicyName()
The friendly name (not ARN) identifying the policy.
|
java.lang.Object getPolicyDocument()
java.lang.String getPolicyName()
static CfnRole.PolicyProperty.Builder builder()
CfnRole.PolicyProperty.Builder
of CfnRole.PolicyProperty