Class AwAssumeRoleAuthenticationDetailsProperties
java.lang.Object
com.azure.resourcemanager.security.models.AuthenticationDetailsProperties
com.azure.resourcemanager.security.models.AwAssumeRoleAuthenticationDetailsProperties
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 <a
href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user.html">Creating a Role to Delegate
Permissions to an IAM User (write only)</a>.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the accountId property: The ID of the cloud account.Get the awsAssumeRoleArn property: Assumed role ID is an identifier that you can use to create temporary security credentials.Get the awsExternalId property: A unique identifier that is required when you assume a role in another account.void
validate()
Validates the instance.withAwsAssumeRoleArn
(String awsAssumeRoleArn) Set the awsAssumeRoleArn property: Assumed role ID is an identifier that you can use to create temporary security credentials.withAwsExternalId
(String awsExternalId) Set the awsExternalId property: A unique identifier that is required when you assume a role in another account.Methods inherited from class com.azure.resourcemanager.security.models.AuthenticationDetailsProperties
authenticationProvisioningState, grantedPermissions
-
Constructor Details
-
AwAssumeRoleAuthenticationDetailsProperties
public AwAssumeRoleAuthenticationDetailsProperties()
-
-
Method Details
-
accountId
Get the accountId property: The ID of the cloud account.- Returns:
- the accountId value.
-
awsAssumeRoleArn
Get the awsAssumeRoleArn property: Assumed role ID is an identifier that you can use to create temporary security credentials.- Returns:
- the awsAssumeRoleArn value.
-
withAwsAssumeRoleArn
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.
-
awsExternalId
Get the awsExternalId property: A unique identifier that is required when you assume a role in another account.- Returns:
- the awsExternalId value.
-
withAwsExternalId
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.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classAuthenticationDetailsProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-