@Stability(value=Stable)
public static interface CfnRole.PolicyProperty
extends software.amazon.jsii.JsiiSerializable
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() |
Object |
getPolicyDocument()
The policy document.
|
String |
getPolicyName()
The friendly name (not ARN) identifying the policy.
|
@Stability(value=Stable) @NotNull Object getPolicyDocument()
@Stability(value=Stable) @NotNull String getPolicyName()
@Stability(value=Stable) static CfnRole.PolicyProperty.Builder builder()
CfnRole.PolicyProperty.Builder of CfnRole.PolicyPropertyCopyright © 2022. All rights reserved.