AwAssumeRoleAuthenticationDetailsProperties Class

public final class AwAssumeRoleAuthenticationDetailsProperties
extends AuthenticationDetailsProperties

AWS cloud account connector based assume role, the role enables delegating access to your AWS resources. The role is composed of role Amazon Resource Name (ARN) and external ID. For more details, refer to Creating a Role to Delegate Permissions to an IAM User (write only).

Constructor Summary

Constructor Description
AwAssumeRoleAuthenticationDetailsProperties()

Creates an instance of AwAssumeRoleAuthenticationDetailsProperties class.

Method Summary

Modifier and Type Method and Description
String accountId()

Get the accountId property: The ID of the cloud account.

String awsAssumeRoleArn()

Get the awsAssumeRoleArn property: Assumed role ID is an identifier that you can use to create temporary security credentials.

String awsExternalId()

Get the awsExternalId property: A unique identifier that is required when you assume a role in another account.

void validate()

Validates the instance.

AwAssumeRoleAuthenticationDetailsProperties withAwsAssumeRoleArn(String awsAssumeRoleArn)

Set the awsAssumeRoleArn property: Assumed role ID is an identifier that you can use to create temporary security credentials.

AwAssumeRoleAuthenticationDetailsProperties withAwsExternalId(String awsExternalId)

Set the awsExternalId property: A unique identifier that is required when you assume a role in another account.

Methods inherited from AuthenticationDetailsProperties

Methods inherited from java.lang.Object

Constructor Details

AwAssumeRoleAuthenticationDetailsProperties

public AwAssumeRoleAuthenticationDetailsProperties()

Creates an instance of AwAssumeRoleAuthenticationDetailsProperties class.

Method Details

accountId

public String accountId()

Get the accountId property: The ID of the cloud account.

Returns:

the accountId value.

awsAssumeRoleArn

public String awsAssumeRoleArn()

Get the awsAssumeRoleArn property: Assumed role ID is an identifier that you can use to create temporary security credentials.

Returns:

the awsAssumeRoleArn value.

awsExternalId

public String awsExternalId()

Get the awsExternalId property: A unique identifier that is required when you assume a role in another account.

Returns:

the awsExternalId value.

validate

public void validate()

Validates the instance.

Overrides:

AwAssumeRoleAuthenticationDetailsProperties.validate()

withAwsAssumeRoleArn

public AwAssumeRoleAuthenticationDetailsProperties withAwsAssumeRoleArn(String awsAssumeRoleArn)

Set the awsAssumeRoleArn property: Assumed role ID is an identifier that you can use to create temporary security credentials.

Parameters:

awsAssumeRoleArn - the awsAssumeRoleArn value to set.

Returns:

the AwAssumeRoleAuthenticationDetailsProperties object itself.

withAwsExternalId

public AwAssumeRoleAuthenticationDetailsProperties withAwsExternalId(String awsExternalId)

Set the awsExternalId property: A unique identifier that is required when you assume a role in another account.

Parameters:

awsExternalId - the awsExternalId value to set.

Returns:

the AwAssumeRoleAuthenticationDetailsProperties object itself.

Applies to