Interface CreateRoleAssociationRequest.Builder

  • Method Details

    • targetArn

      The Amazon Resource Name (ARN) of the default endpoint. Only express-default is supported, and it must be in the same Amazon Web Services account as the caller. The ARN format is arn:aws-partition:redshift-serverless:region:account-id:workgroup/express/express-default, for example arn:aws:redshift-serverless:us-east-1:111122223333:workgroup/express/express-default.

      Parameters:
      targetArn - The Amazon Resource Name (ARN) of the default endpoint. Only express-default is supported, and it must be in the same Amazon Web Services account as the caller. The ARN format is arn:aws-partition:redshift-serverless:region:account-id:workgroup/express/express-default , for example arn:aws:redshift-serverless:us-east-1:111122223333:workgroup/express/express-default.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • roleType

      The case-sensitive system-defined role to associate the principal with. Valid values are sys:superuser, sys:operator, sys:dba, sys:secadmin, and sys:monitor. On the express configuration, sys:operator, sys:dba, and sys:superuser give the same permissions.

      Parameters:
      roleType - The case-sensitive system-defined role to associate the principal with. Valid values are sys:superuser, sys:operator, sys:dba, sys:secadmin , and sys:monitor. On the express configuration, sys:operator, sys:dba, and sys:superuser give the same permissions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principal

      The IAM role or IAM user to associate with the role type, specified by its ARN. The principal must exist and must be in the same Amazon Web Services account as the caller.

      Parameters:
      principal - The IAM role or IAM user to associate with the role type, specified by its ARN. The principal must exist and must be in the same Amazon Web Services account as the caller.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principal

      The IAM role or IAM user to associate with the role type, specified by its ARN. The principal must exist and must be in the same Amazon Web Services account as the caller.

      This is a convenience method that creates an instance of the PrincipalInput.Builder avoiding the need to create one manually via PrincipalInput.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to principal(PrincipalInput).

      Parameters:
      principal - a consumer that will call methods on PrincipalInput.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      CreateRoleAssociationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.