@Stability(value=Stable)
public static interface CfnUser.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 |
CfnUser.PolicyProperty.Builder
A builder for
CfnUser.PolicyProperty |
static class |
CfnUser.PolicyProperty.Jsii$Proxy
An implementation for
CfnUser.PolicyProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnUser.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 CfnUser.PolicyProperty.Builder builder()
CfnUser.PolicyProperty.Builder of CfnUser.PolicyPropertyCopyright © 2022. All rights reserved.