Class Permission
- All Implemented Interfaces:
Serializable
,Cloneable
Describes stack or user permissions.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Whether the user can use SSH.Whether the user can use sudo.The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role.getLevel()
The user's permission level, which must be the following:A stack ID.int
hashCode()
Whether the user can use SSH.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
The user's permission level, which must be the following:void
setStackId
(String stackId) A stack ID.toString()
Returns a string representation of this object; useful for testing and debugging.withAllowSsh
(Boolean allowSsh) Whether the user can use SSH.withAllowSudo
(Boolean allowSudo) Whether the user can use sudo.withIamUserArn
(String iamUserArn) The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role.The user's permission level, which must be the following:withStackId
(String stackId) A stack ID.
-
Constructor Details
-
Permission
public Permission()
-
-
Method Details
-
setStackId
A stack ID.
- Parameters:
stackId
- A stack ID.
-
getStackId
A stack ID.
- Returns:
- A stack ID.
-
withStackId
A stack ID.
- Parameters:
stackId
- A stack ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIamUserArn
The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.
- Parameters:
iamUserArn
- The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.
-
getIamUserArn
The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.
- Returns:
- The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.
-
withIamUserArn
The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.
- Parameters:
iamUserArn
- The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAllowSsh
Whether the user can use SSH.
- Parameters:
allowSsh
- Whether the user can use SSH.
-
getAllowSsh
Whether the user can use SSH.
- Returns:
- Whether the user can use SSH.
-
withAllowSsh
Whether the user can use SSH.
- Parameters:
allowSsh
- Whether the user can use SSH.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isAllowSsh
Whether the user can use SSH.
- Returns:
- Whether the user can use SSH.
-
setAllowSudo
Whether the user can use sudo.
- Parameters:
allowSudo
- Whether the user can use sudo.
-
getAllowSudo
Whether the user can use sudo.
- Returns:
- Whether the user can use sudo.
-
withAllowSudo
Whether the user can use sudo.
- Parameters:
allowSudo
- Whether the user can use sudo.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isAllowSudo
Whether the user can use sudo.
- Returns:
- Whether the user can use sudo.
-
setLevel
The user's permission level, which must be the following:
-
deny
-
show
-
deploy
-
manage
-
iam_only
For more information on the permissions associated with these levels, see Managing User Permissions
- Parameters:
level
- The user's permission level, which must be the following:-
deny
-
show
-
deploy
-
manage
-
iam_only
For more information on the permissions associated with these levels, see Managing User Permissions
-
-
-
getLevel
The user's permission level, which must be the following:
-
deny
-
show
-
deploy
-
manage
-
iam_only
For more information on the permissions associated with these levels, see Managing User Permissions
- Returns:
- The user's permission level, which must be the following:
-
deny
-
show
-
deploy
-
manage
-
iam_only
For more information on the permissions associated with these levels, see Managing User Permissions
-
-
-
withLevel
The user's permission level, which must be the following:
-
deny
-
show
-
deploy
-
manage
-
iam_only
For more information on the permissions associated with these levels, see Managing User Permissions
- Parameters:
level
- The user's permission level, which must be the following:-
deny
-
show
-
deploy
-
manage
-
iam_only
For more information on the permissions associated with these levels, see Managing User Permissions
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-