@Generated(value="software.amazon.awssdk:codegen") public final class ManagedPolicyDetail extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ManagedPolicyDetail.Builder,ManagedPolicyDetail>
Contains information about a managed policy, including the policy's ARN, versions, and the number of principal entities (users, groups, and roles) that the policy is attached to.
This data type is used as a response element in the GetAccountAuthorizationDetails operation.
For more information about managed policies, see Managed Policies and Inline Policies in the IAM User Guide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ManagedPolicyDetail.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
Returns the value of the Arn property for this object.
|
Integer |
attachmentCount()
The number of principal entities (users, groups, and roles) that the policy is attached to.
|
static ManagedPolicyDetail.Builder |
builder() |
Instant |
createDate()
The date and time, in ISO 8601 date-time format, when the policy was
created.
|
String |
defaultVersionId()
The identifier for the version of the policy that is set as the default (operative) version.
|
String |
description()
A friendly description of the policy.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasPolicyVersionList()
Returns true if the PolicyVersionList property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
Boolean |
isAttachable()
Specifies whether the policy can be attached to an IAM user, group, or role.
|
String |
path()
The path to the policy.
|
Integer |
permissionsBoundaryUsageCount()
The number of entities (users and roles) for which the policy is used as the permissions boundary.
|
String |
policyId()
The stable and unique string identifying the policy.
|
String |
policyName()
The friendly name (not ARN) identifying the policy.
|
List<PolicyVersion> |
policyVersionList()
A list containing information about the versions of the policy.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ManagedPolicyDetail.Builder> |
serializableBuilderClass() |
ManagedPolicyDetail.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Instant |
updateDate()
The date and time, in ISO 8601 date-time format, when the policy was
last updated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String policyName()
The friendly name (not ARN) identifying the policy.
public String policyId()
The stable and unique string identifying the policy.
For more information about IDs, see IAM Identifiers in the IAM User Guide.
For more information about IDs, see IAM Identifiers in the IAM User Guide.
public String arn()
public String path()
The path to the policy.
For more information about paths, see IAM Identifiers in the IAM User Guide.
For more information about paths, see IAM Identifiers in the IAM User Guide.
public String defaultVersionId()
The identifier for the version of the policy that is set as the default (operative) version.
For more information about policy versions, see Versioning for Managed Policies in the IAM User Guide.
For more information about policy versions, see Versioning for Managed Policies in the IAM User Guide.
public Integer attachmentCount()
The number of principal entities (users, groups, and roles) that the policy is attached to.
public Integer permissionsBoundaryUsageCount()
The number of entities (users and roles) for which the policy is used as the permissions boundary.
For more information about permissions boundaries, see Permissions Boundaries for IAM Identities in the IAM User Guide.
For more information about permissions boundaries, see Permissions Boundaries for IAM Identities in the IAM User Guide.
public Boolean isAttachable()
Specifies whether the policy can be attached to an IAM user, group, or role.
public String description()
A friendly description of the policy.
public Instant createDate()
The date and time, in ISO 8601 date-time format, when the policy was created.
public Instant updateDate()
The date and time, in ISO 8601 date-time format, when the policy was last updated.
When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.
When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.
public boolean hasPolicyVersionList()
public List<PolicyVersion> policyVersionList()
A list containing information about the versions of the policy.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPolicyVersionList() to see if a value was sent in this field.
public ManagedPolicyDetail.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ManagedPolicyDetail.Builder,ManagedPolicyDetail>public static ManagedPolicyDetail.Builder builder()
public static Class<? extends ManagedPolicyDetail.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.