@Generated(value="software.amazon.awssdk:codegen") public final class PolicyTargetSummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PolicyTargetSummary.Builder,PolicyTargetSummary>
Contains information about a root, OU, or account that a policy is attached to.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PolicyTargetSummary.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) of the policy target.
|
static PolicyTargetSummary.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The friendly name of the policy target.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PolicyTargetSummary.Builder> |
serializableBuilderClass() |
String |
targetId()
The unique identifier (ID) of the policy target.
|
PolicyTargetSummary.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
TargetType |
type()
The type of the policy target.
|
String |
typeAsString()
The type of the policy target.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String targetId()
The unique identifier (ID) of the policy target.
The regex pattern for a target ID string requires one of the following:
Root - A string that begins with "r-" followed by from 4 to 32 lowercase letters or digits.
Account - A string that consists of exactly 12 digits.
Organizational unit (OU) - A string that begins with "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that the OU is in). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.
The regex pattern for a target ID string requires one of the following:
Root - A string that begins with "r-" followed by from 4 to 32 lowercase letters or digits.
Account - A string that consists of exactly 12 digits.
Organizational unit (OU) - A string that begins with "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that the OU is in). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.
public final String arn()
The Amazon Resource Name (ARN) of the policy target.
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 target.
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 TargetType type()
The type of the policy target.
If the service returns an enum value that is not available in the current SDK version, type will return
TargetType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
TargetTypepublic final String typeAsString()
The type of the policy target.
If the service returns an enum value that is not available in the current SDK version, type will return
TargetType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
TargetTypepublic PolicyTargetSummary.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PolicyTargetSummary.Builder,PolicyTargetSummary>public static PolicyTargetSummary.Builder builder()
public static Class<? extends PolicyTargetSummary.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.