Interface GetRoleCredentialsRequest.Builder

  • Method Details

    • tenantId

      The identifier of the tenant that the request applies to. A tenant ID begins with aa- and is 3 to 24 characters long. It can contain lowercase letters, numbers, and hyphens.

      Parameters:
      tenantId - The identifier of the tenant that the request applies to. A tenant ID begins with aa- and is 3 to 24 characters long. It can contain lowercase letters, numbers, and hyphens.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • roleArn

      The Amazon Resource Name (ARN) of the role to retrieve credentials for. You must be entitled to assume this role.

      Parameters:
      roleArn - The Amazon Resource Name (ARN) of the role to retrieve credentials for. You must be entitled to assume this role.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accessType

      GetRoleCredentialsRequest.Builder accessType(String accessType)

      The type of access to request for the role. Specify PROGRAMMATIC_ACCESS to receive access key credentials for use with the CLI or an Amazon Web Services SDK.

      Parameters:
      accessType - The type of access to request for the role. Specify PROGRAMMATIC_ACCESS to receive access key credentials for use with the CLI or an Amazon Web Services SDK.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • accessType

      The type of access to request for the role. Specify PROGRAMMATIC_ACCESS to receive access key credentials for use with the CLI or an Amazon Web Services SDK.

      Parameters:
      accessType - The type of access to request for the role. Specify PROGRAMMATIC_ACCESS to receive access key credentials for use with the CLI or an Amazon Web Services SDK.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sessionName

      GetRoleCredentialsRequest.Builder sessionName(String sessionName)

      An optional name for the role session. The name can be 2 to 64 characters and can contain alphanumeric characters and the following symbols: plus (+), equal (=), comma (,), period (.), at (@), and hyphen (-). The session name appears in CloudTrail logs for the assumed role session.

      Parameters:
      sessionName - An optional name for the role session. The name can be 2 to 64 characters and can contain alphanumeric characters and the following symbols: plus (+), equal (=), comma (,), period (.), at (@), and hyphen (-). The session name appears in CloudTrail logs for the assumed role session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionDuration

      GetRoleCredentialsRequest.Builder sessionDuration(Integer sessionDuration)

      The duration, in seconds, that the returned credentials remain valid. If you don't specify a value, the service uses the default session duration. The maximum value can't exceed the maximum session duration configured for the role.

      Parameters:
      sessionDuration - The duration, in seconds, that the returned credentials remain valid. If you don't specify a value, the service uses the default session duration. The maximum value can't exceed the maximum session duration configured for the role.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      GetRoleCredentialsRequest.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.