Constructor and Description |
---|
RoleInfo()
Default constructor for RoleInfo object.
|
Modifier and Type | Method and Description |
---|---|
RoleInfo |
clone() |
boolean |
equals(Object obj) |
String |
getExternalId()
A unique identifier that is used by third parties when assuming roles in
their customers' accounts.
|
AWSCredentialsProvider |
getLongLivedCredentialsProvider()
Provides the credentials that are used to assume the role.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of the role to assume.
|
String |
getRoleSessionName()
An identifier for the assumed role session.
|
String |
getWebIdentityTokenFilePath()
Get the absolute path to the JWT file that contains a web identity token.
|
int |
hashCode() |
void |
setExternalId(String externalId)
A unique identifier that is used by third parties when assuming roles in
their customers' accounts.
|
void |
setLongLivedCredentialsProvider(AWSCredentialsProvider longLivedCredentialsProvider)
Provides the credentials that are used to assume the role.
|
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role to assume.
|
void |
setRoleSessionName(String roleSessionName)
An identifier for the assumed role session.
|
void |
setWebIdentityTokenFilePath(String webIdentityTokenFilePath)
Set the absolute path to the JWT file that contains a web identity token.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RoleInfo |
withExternalId(String externalId)
A unique identifier that is used by third parties when assuming roles in
their customers' accounts.
|
RoleInfo |
withLongLivedCredentials(AWSCredentials longLivedCredentials)
Provides the credentials that are used to assume the role.
|
RoleInfo |
withLongLivedCredentialsProvider(AWSCredentialsProvider longLivedCredentialsProvider)
Provides the credentials that are used to assume the role.
|
RoleInfo |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role to assume.
|
RoleInfo |
withRoleSessionName(String roleSessionName)
An identifier for the assumed role session.
|
RoleInfo |
withWebIdentityTokenFilePath(String webIdentityTokenFilePath)
Similar to
setWebIdentityTokenFilePath(String) but returns this for
method chaining. |
public RoleInfo()
public void setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role to assume.
roleArn
- The Amazon Resource Name (ARN) of the role to assume.public String getRoleArn()
The Amazon Resource Name (ARN) of the role to assume.
public RoleInfo withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role to assume.
roleArn
- The Amazon Resource Name (ARN) of the role to assume.public void setRoleSessionName(String roleSessionName)
An identifier for the assumed role session.
Use the role session name to uniquely identify a session when the same role is assumed by different principals or for different reasons. In cross-account scenarios, the role session name is visible to, and can be logged by the account that owns the role. The role session name is also used in the ARN of the assumed role principal. This means that subsequent cross-account API requests using the temporary security credentials will expose the role session name to the external account in their CloudTrail logs.
roleSessionName
- An identifier for the assumed role session.
Use the role session name to uniquely identify a session when the same role is assumed by different principals or for different reasons. In cross-account scenarios, the role session name is visible to, and can be logged by the account that owns the role. The role session name is also used in the ARN of the assumed role principal. This means that subsequent cross-account API requests using the temporary security credentials will expose the role session name to the external account in their CloudTrail logs.
public String getRoleSessionName()
An identifier for the assumed role session.
Use the role session name to uniquely identify a session when the same role is assumed by different principals or for different reasons. In cross-account scenarios, the role session name is visible to, and can be logged by the account that owns the role. The role session name is also used in the ARN of the assumed role principal. This means that subsequent cross-account API requests using the temporary security credentials will expose the role session name to the external account in their CloudTrail logs.
Use the role session name to uniquely identify a session when the same role is assumed by different principals or for different reasons. In cross-account scenarios, the role session name is visible to, and can be logged by the account that owns the role. The role session name is also used in the ARN of the assumed role principal. This means that subsequent cross-account API requests using the temporary security credentials will expose the role session name to the external account in their CloudTrail logs.
public RoleInfo withRoleSessionName(String roleSessionName)
An identifier for the assumed role session.
Use the role session name to uniquely identify a session when the same role is assumed by different principals or for different reasons. In cross-account scenarios, the role session name is visible to, and can be logged by the account that owns the role. The role session name is also used in the ARN of the assumed role principal. This means that subsequent cross-account API requests using the temporary security credentials will expose the role session name to the external account in their CloudTrail logs.
roleSessionName
- An identifier for the assumed role session.
Use the role session name to uniquely identify a session when the same role is assumed by different principals or for different reasons. In cross-account scenarios, the role session name is visible to, and can be logged by the account that owns the role. The role session name is also used in the ARN of the assumed role principal. This means that subsequent cross-account API requests using the temporary security credentials will expose the role session name to the external account in their CloudTrail logs.
public void setExternalId(String externalId)
A unique identifier that is used by third parties when assuming roles in their customers' accounts. For each role that the third party can assume, they should instruct their customers to ensure the role's trust policy checks for the external ID that the third party generated. Each time the third party assumes the role, they should pass the customer's external ID. The external ID is useful in order to help third parties bind a role to the customer who created it. For more information about the external ID, see How to Use an External ID When Granting Access to Your AWS Resources to a Third Party in the Using IAM.
externalId
- A unique identifier that is used by third parties when assuming
roles in their customers' accounts. For each role that the third
party can assume, they should instruct their customers to ensure
the role's trust policy checks for the external ID that the third
party generated. Each time the third party assumes the role, they
should pass the customer's external ID. The external ID is useful
in order to help third parties bind a role to the customer who
created it. For more information about the external ID, see How to Use an External ID When Granting Access to Your AWS
Resources to a Third Party in the Using IAM.public String getExternalId()
A unique identifier that is used by third parties when assuming roles in their customers' accounts. For each role that the third party can assume, they should instruct their customers to ensure the role's trust policy checks for the external ID that the third party generated. Each time the third party assumes the role, they should pass the customer's external ID. The external ID is useful in order to help third parties bind a role to the customer who created it. For more information about the external ID, see How to Use an External ID When Granting Access to Your AWS Resources to a Third Party in the Using IAM.
public RoleInfo withExternalId(String externalId)
A unique identifier that is used by third parties when assuming roles in their customers' accounts. For each role that the third party can assume, they should instruct their customers to ensure the role's trust policy checks for the external ID that the third party generated. Each time the third party assumes the role, they should pass the customer's external ID. The external ID is useful in order to help third parties bind a role to the customer who created it. For more information about the external ID, see How to Use an External ID When Granting Access to Your AWS Resources to a Third Party in the Using IAM.
externalId
- A unique identifier that is used by third parties when assuming
roles in their customers' accounts. For each role that the third
party can assume, they should instruct their customers to ensure
the role's trust policy checks for the external ID that the third
party generated. Each time the third party assumes the role, they
should pass the customer's external ID. The external ID is useful
in order to help third parties bind a role to the customer who
created it. For more information about the external ID, see How to Use an External ID When Granting Access to Your AWS
Resources to a Third Party in the Using IAM.public void setWebIdentityTokenFilePath(String webIdentityTokenFilePath)
public String getWebIdentityTokenFilePath()
public RoleInfo withWebIdentityTokenFilePath(String webIdentityTokenFilePath)
setWebIdentityTokenFilePath(String)
but returns this for
method chaining.public void setLongLivedCredentialsProvider(AWSCredentialsProvider longLivedCredentialsProvider)
Provides the credentials that are used to assume the role.
longLivedCredentialsProvider
- long lived credentials providerpublic AWSCredentialsProvider getLongLivedCredentialsProvider()
Provides the credentials that are used to assume the role.
public RoleInfo withLongLivedCredentialsProvider(AWSCredentialsProvider longLivedCredentialsProvider)
Provides the credentials that are used to assume the role.
longLivedCredentialsProvider
- long lived credentials providerpublic RoleInfo withLongLivedCredentials(AWSCredentials longLivedCredentials)
Provides the credentials that are used to assume the role.
longLivedCredentials
- long lived credentialspublic String toString()
toString
in class Object
Object.toString()
Copyright © 2021. All rights reserved.