Interface CfnUser.PolicyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnUser.PolicyProperty.Jsii$Proxy
- Enclosing class:
CfnUser
@Stability(Stable)
public static interface CfnUser.PolicyProperty
extends software.amazon.jsii.JsiiSerializable
Contains information about an attached policy.
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnUser.PolicyProperty
static final class
An implementation forCfnUser.PolicyProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The entire contents of the policy that defines permissions.The friendly name (not ARN) identifying the policy.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPolicyDocument
The entire contents of the policy that defines permissions.For more information, see Overview of JSON policies .
- See Also:
-
getPolicyName
The friendly name (not ARN) identifying the policy.- See Also:
-
builder
- Returns:
- a
CfnUser.PolicyProperty.Builder
ofCfnUser.PolicyProperty
-