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 Details

    • AwAssumeRoleAuthenticationDetailsProperties

      public AwAssumeRoleAuthenticationDetailsProperties()
  • 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.
    • 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.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class AuthenticationDetailsProperties
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.