Interface CreateScopeRequest.Builder

  • Method Details

    • targets

      The targets to define the scope to be monitored. A target is an array of targetResources, which are currently Region-account pairs, defined by targetResource constructs.

      Parameters:
      targets - The targets to define the scope to be monitored. A target is an array of targetResources, which are currently Region-account pairs, defined by targetResource constructs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targets

      The targets to define the scope to be monitored. A target is an array of targetResources, which are currently Region-account pairs, defined by targetResource constructs.

      Parameters:
      targets - The targets to define the scope to be monitored. A target is an array of targetResources, which are currently Region-account pairs, defined by targetResource constructs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targets

      The targets to define the scope to be monitored. A target is an array of targetResources, which are currently Region-account pairs, defined by targetResource constructs.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to targets(List<TargetResource>).

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

      CreateScopeRequest.Builder clientToken(String clientToken)

      A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request. Don't reuse the same client token for other API requests.

      Parameters:
      clientToken - A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request. Don't reuse the same client token for other API requests.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags for a scope. You can add a maximum of 200 tags.

      Parameters:
      tags - The tags for a scope. You can add a maximum of 200 tags.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

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