public class Permission extends Object implements Serializable
Describes stack or user permissions.
| Constructor and Description |
|---|
Permission() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Boolean |
getAllowSsh()
Whether the user can use SSH.
|
Boolean |
getAllowSudo()
Whether the user can use sudo.
|
String |
getIamUserArn()
The Amazon Resource Name (ARN) for an AWS Identity and Access
Management (IAM) role.
|
String |
getLevel()
The user's permission level, which must be the following:
deny show
deploy manage
iam_only |
String |
getStackId()
A stack ID.
|
int |
hashCode() |
Boolean |
isAllowSsh()
Whether the user can use SSH.
|
Boolean |
isAllowSudo()
Whether the user can use sudo.
|
void |
setAllowSsh(Boolean allowSsh)
Whether the user can use SSH.
|
void |
setAllowSudo(Boolean allowSudo)
Whether the user can use sudo.
|
void |
setIamUserArn(String iamUserArn)
The Amazon Resource Name (ARN) for an AWS Identity and Access
Management (IAM) role.
|
void |
setLevel(String level)
The user's permission level, which must be the following:
deny show
deploy manage
iam_only |
void |
setStackId(String stackId)
A stack ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Permission |
withAllowSsh(Boolean allowSsh)
Whether the user can use SSH.
|
Permission |
withAllowSudo(Boolean allowSudo)
Whether the user can use sudo.
|
Permission |
withIamUserArn(String iamUserArn)
The Amazon Resource Name (ARN) for an AWS Identity and Access
Management (IAM) role.
|
Permission |
withLevel(String level)
The user's permission level, which must be the following:
deny show
deploy manage
iam_only |
Permission |
withStackId(String stackId)
A stack ID.
|
public String getStackId()
public void setStackId(String stackId)
stackId - A stack ID.public Permission withStackId(String stackId)
Returns a reference to this object so that method calls can be chained together.
stackId - A stack ID.public String getIamUserArn()
public void setIamUserArn(String iamUserArn)
iamUserArn - The Amazon Resource Name (ARN) for an AWS Identity and Access
Management (IAM) role. For more information about IAM ARNs, see Using
Identifiers.public Permission withIamUserArn(String iamUserArn)
Returns a reference to this object so that method calls can be chained together.
iamUserArn - The Amazon Resource Name (ARN) for an AWS Identity and Access
Management (IAM) role. For more information about IAM ARNs, see Using
Identifiers.public Boolean isAllowSsh()
public void setAllowSsh(Boolean allowSsh)
allowSsh - Whether the user can use SSH.public Permission withAllowSsh(Boolean allowSsh)
Returns a reference to this object so that method calls can be chained together.
allowSsh - Whether the user can use SSH.public Boolean getAllowSsh()
public Boolean isAllowSudo()
public void setAllowSudo(Boolean allowSudo)
allowSudo - Whether the user can use sudo.public Permission withAllowSudo(Boolean allowSudo)
Returns a reference to this object so that method calls can be chained together.
allowSudo - Whether the user can use sudo.public Boolean getAllowSudo()
public String getLevel()
denyshowdeploymanageiam_onlyFor more information on the permissions associated with these levels, see Managing User Permissions
denyshowdeploymanageiam_onlyFor more information on the permissions associated with these levels, see Managing User Permissions
public void setLevel(String level)
denyshowdeploymanageiam_onlyFor more information on the permissions associated with these levels, see Managing User Permissions
level - The user's permission level, which must be the following: denyshowdeploymanageiam_onlyFor more information on the permissions associated with these levels, see Managing User Permissions
public Permission withLevel(String level)
denyshowdeploymanageiam_onlyFor more information on the permissions associated with these levels, see Managing User Permissions
Returns a reference to this object so that method calls can be chained together.
level - The user's permission level, which must be the following: denyshowdeploymanageiam_onlyFor more information on the permissions associated with these levels, see Managing User Permissions
public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.