Interface TelemetryRule.Builder

  • Method Details

    • resourceType

      TelemetryRule.Builder resourceType(String resourceType)

      The type of Amazon Web Services resource to configure telemetry for (e.g., "AWS::EC2::VPC").

      Parameters:
      resourceType - The type of Amazon Web Services resource to configure telemetry for (e.g., "AWS::EC2::VPC").
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resourceType

      TelemetryRule.Builder resourceType(ResourceType resourceType)

      The type of Amazon Web Services resource to configure telemetry for (e.g., "AWS::EC2::VPC").

      Parameters:
      resourceType - The type of Amazon Web Services resource to configure telemetry for (e.g., "AWS::EC2::VPC").
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • telemetryType

      TelemetryRule.Builder telemetryType(String telemetryType)

      The type of telemetry to collect (Logs, Metrics, or Traces).

      Parameters:
      telemetryType - The type of telemetry to collect (Logs, Metrics, or Traces).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • telemetryType

      TelemetryRule.Builder telemetryType(TelemetryType telemetryType)

      The type of telemetry to collect (Logs, Metrics, or Traces).

      Parameters:
      telemetryType - The type of telemetry to collect (Logs, Metrics, or Traces).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • destinationConfiguration

      TelemetryRule.Builder destinationConfiguration(TelemetryDestinationConfiguration destinationConfiguration)

      Configuration specifying where and how the telemetry data should be delivered.

      Parameters:
      destinationConfiguration - Configuration specifying where and how the telemetry data should be delivered.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinationConfiguration

      default TelemetryRule.Builder destinationConfiguration(Consumer<TelemetryDestinationConfiguration.Builder> destinationConfiguration)

      Configuration specifying where and how the telemetry data should be delivered.

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

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

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

      The organizational scope to which the rule applies, specified using accounts or organizational units.

      Parameters:
      scope - The organizational scope to which the rule applies, specified using accounts or organizational units.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • selectionCriteria

      TelemetryRule.Builder selectionCriteria(String selectionCriteria)

      Criteria for selecting which resources the rule applies to, such as resource tags.

      Parameters:
      selectionCriteria - Criteria for selecting which resources the rule applies to, such as resource tags.
      Returns:
      Returns a reference to this object so that method calls can be chained together.