StructuredPojo
, ToCopyableBuilder<PolicyTargetSummary.Builder,PolicyTargetSummary>
@Generated("software.amazon.awssdk:codegen") public class PolicyTargetSummary extends Object implements StructuredPojo, ToCopyableBuilder<PolicyTargetSummary.Builder,PolicyTargetSummary>
Contains information about a root, OU, or account that a policy is attached to.
Modifier and Type | Class | Description |
---|---|---|
static interface |
PolicyTargetSummary.Builder |
Modifier and Type | Method | Description |
---|---|---|
String |
arn() |
The Amazon Resource Name (ARN) of the policy target.
|
static PolicyTargetSummary.Builder |
builder() |
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name() |
The friendly name of the policy target.
|
static Class<? extends PolicyTargetSummary.Builder> |
serializableBuilderClass() |
|
String |
targetId() |
The unique identifier (ID) of the policy target.
|
PolicyTargetSummary.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
|
String |
type() |
The type of the policy target.
|
public 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 lower-case 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 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case 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 lower-case 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 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
public 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 AWS Organizations User Guide.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.
public 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 String type()
The type of the policy target.
TargetType
public PolicyTargetSummary.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PolicyTargetSummary.Builder,PolicyTargetSummary>
public static PolicyTargetSummary.Builder builder()
public static Class<? extends PolicyTargetSummary.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.