|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.identitymanagement.model.CreateRoleRequest
public class CreateRoleRequest
Container for the parameters to the 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.
AmazonIdentityManagement.createRole(CreateRoleRequest)
Constructor Summary | |
---|---|
CreateRoleRequest()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateRoleRequest()
Method Detail |
---|
public 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
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |