@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()
For responses, this returns true if the service returned a value for the PolicyVersionList property.
|
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 final String policyName()
The friendly name (not ARN) identifying the policy.
public final 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 final String arn()
public final 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 final 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 final Integer attachmentCount()
The number of principal entities (users, groups, and roles) that the policy is attached to.
public final 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 final Boolean isAttachable()
Specifies whether the policy can be attached to an IAM user, group, or role.
public final String description()
A friendly description of the policy.
public final Instant createDate()
The date and time, in ISO 8601 date-time format, when the policy was created.
public final 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 final boolean hasPolicyVersionList()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final 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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasPolicyVersionList() method.
public ManagedPolicyDetail.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ManagedPolicyDetail.Builder,ManagedPolicyDetail>public static ManagedPolicyDetail.Builder builder()
public static Class<? extends ManagedPolicyDetail.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.