@Generated(value="software.amazon.awssdk:codegen") public final class PolicySummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PolicySummary.Builder,PolicySummary>
Contains information about a policy, but does not include the content. To see the content of a policy, see DescribePolicy.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PolicySummary.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) of the policy.
|
Boolean |
awsManaged()
A boolean value that indicates whether the specified policy is an Amazon Web Services managed policy.
|
static PolicySummary.Builder |
builder() |
String |
description()
The description of the policy.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The unique identifier (ID) of the policy.
|
String |
name()
The friendly name of the policy.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PolicySummary.Builder> |
serializableBuilderClass() |
PolicySummary.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
PolicyType |
type()
The type of policy.
|
String |
typeAsString()
The type of policy.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The unique identifier (ID) of the policy.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_).
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_).
public final String arn()
The Amazon Resource Name (ARN) of the policy.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference.
public final String name()
The friendly name of the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public final String description()
The description of the policy.
public final PolicyType type()
The type of policy.
If the service returns an enum value that is not available in the current SDK version, type will return
PolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
PolicyTypepublic final String typeAsString()
The type of policy.
If the service returns an enum value that is not available in the current SDK version, type will return
PolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
PolicyTypepublic final Boolean awsManaged()
A boolean value that indicates whether the specified policy is an Amazon Web Services managed policy. If true, then you can attach the policy to roots, OUs, or accounts, but you cannot edit it.
public PolicySummary.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PolicySummary.Builder,PolicySummary>public static PolicySummary.Builder builder()
public static Class<? extends PolicySummary.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.