public class CreateRoleRequest extends AmazonWebServiceRequest implements java.io.Serializable
CreateRole operation.
Creates a new role for your AWS account. For more information about roles, go to Working with Roles . For information about limitations on role names and the number of roles you can create, go to Limitations on IAM Entities in Using AWS Identity and Access Management .
The policy grants permission to an EC2 instance to assume the role. The policy is URL-encoded according to RFC 3986. For more information about RFC 3986, go to http://www.faqs.org/rfcs/rfc3986.html . Currently, only EC2 instances can assume roles.
| コンストラクタと説明 |
|---|
CreateRoleRequest() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAssumeRolePolicyDocument()
The policy that grants an entity permission to assume the role.
|
java.lang.String |
getPath()
The path to the role.
|
java.lang.String |
getRoleName()
Name of the role to create.
|
int |
hashCode() |
void |
setAssumeRolePolicyDocument(java.lang.String assumeRolePolicyDocument)
The policy that grants an entity permission to assume the role.
|
void |
setPath(java.lang.String path)
The path to the role.
|
void |
setRoleName(java.lang.String roleName)
Name of the role to create.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateRoleRequest |
withAssumeRolePolicyDocument(java.lang.String assumeRolePolicyDocument)
The policy that grants an entity permission to assume the role.
|
CreateRoleRequest |
withPath(java.lang.String path)
The path to the role.
|
CreateRoleRequest |
withRoleName(java.lang.String roleName)
Name of the role to create.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic java.lang.String getPath()
This parameter is optional. If it is not included, it defaults to a slash (/).
Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)
This parameter is optional. If it is not included, it defaults to a slash (/).
public void setPath(java.lang.String path)
This parameter is optional. If it is not included, it defaults to a slash (/).
Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)
path - The path to the role. For more information about paths, see Identifiers for IAM Entities in Using AWS
Identity and Access Management. This parameter is optional. If it is not included, it defaults to a slash (/).
public CreateRoleRequest withPath(java.lang.String path)
This parameter is optional. If it is not included, it defaults to a slash (/).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)
path - The path to the role. For more information about paths, see Identifiers for IAM Entities in Using AWS
Identity and Access Management. This parameter is optional. If it is not included, it defaults to a slash (/).
public java.lang.String getRoleName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*
public void setRoleName(java.lang.String roleName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*
roleName - Name of the role to create.public CreateRoleRequest withRoleName(java.lang.String roleName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*
roleName - Name of the role to create.public java.lang.String getAssumeRolePolicyDocument()
Constraints:
Length: 1 - 131072
Pattern: [
-ÿ]+
public void setAssumeRolePolicyDocument(java.lang.String assumeRolePolicyDocument)
Constraints:
Length: 1 - 131072
Pattern: [
-ÿ]+
assumeRolePolicyDocument - The policy that grants an entity permission to assume the role.public CreateRoleRequest withAssumeRolePolicyDocument(java.lang.String assumeRolePolicyDocument)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 131072
Pattern: [
-ÿ]+
assumeRolePolicyDocument - The policy that grants an entity permission to assume the role.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object