public class AttachedPolicy extends Object implements Serializable, Cloneable
Contains information about an attached policy.
An attached policy is a managed policy that has been attached to a user, group, or role. This data type is used as a response element in the ListAttachedGroupPolicies, ListAttachedRolePolicies, ListAttachedUserPolicies, and GetAccountAuthorizationDetails actions.
For more information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.
Constructor and Description |
---|
AttachedPolicy() |
Modifier and Type | Method and Description |
---|---|
AttachedPolicy |
clone() |
boolean |
equals(Object obj) |
String |
getPolicyArn()
The Amazon Resource Name (ARN).
|
String |
getPolicyName()
The friendly name of the attached policy.
|
int |
hashCode() |
void |
setPolicyArn(String policyArn)
The Amazon Resource Name (ARN).
|
void |
setPolicyName(String policyName)
The friendly name of the attached policy.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttachedPolicy |
withPolicyArn(String policyArn)
The Amazon Resource Name (ARN).
|
AttachedPolicy |
withPolicyName(String policyName)
The friendly name of the attached policy.
|
public String getPolicyName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
public void setPolicyName(String policyName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
policyName
- The friendly name of the attached policy.public AttachedPolicy withPolicyName(String policyName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
policyName
- The friendly name of the attached policy.public String getPolicyArn()
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Constraints:
Length: 20 - 2048
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public void setPolicyArn(String policyArn)
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Constraints:
Length: 20 - 2048
policyArn
- The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS
resources. For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public AttachedPolicy withPolicyArn(String policyArn)
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
policyArn
- The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS
resources. For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public String toString()
toString
in class Object
Object.toString()
public AttachedPolicy clone()
Copyright © 2015. All rights reserved.