public class PolicyDescriptorType extends Object implements Serializable
A reference to the IAM managed policy that is passed as a session policy for a role session or a federated user session.
| Constructor and Description |
|---|
PolicyDescriptorType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the IAM managed policy to use as a
session policy for the role.
|
int |
hashCode() |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the IAM managed policy to use as a
session policy for the role.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PolicyDescriptorType |
withArn(String arn)
The Amazon Resource Name (ARN) of the IAM managed policy to use as a
session policy for the role.
|
public String getArn()
The Amazon Resource Name (ARN) of the IAM managed policy to use as a session policy for the role. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Constraints:
Length: 20 - 2048
Pattern: [
-~
--�က0-ჿFF]+
The Amazon Resource Name (ARN) of the IAM managed policy to use as a session policy for the role. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public void setArn(String arn)
The Amazon Resource Name (ARN) of the IAM managed policy to use as a session policy for the role. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Constraints:
Length: 20 - 2048
Pattern: [
-~
--�က0-ჿFF]+
arn - The Amazon Resource Name (ARN) of the IAM managed policy to use as a session policy for the role. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public PolicyDescriptorType withArn(String arn)
The Amazon Resource Name (ARN) of the IAM managed policy to use as a session policy for the role. For more information about ARNs, see 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
Pattern: [
-~
--�က0-ჿFF]+
arn - The Amazon Resource Name (ARN) of the IAM managed policy to use as a session policy for the role. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.