Interface ServiceConfig.Builder

  • Method Details

    • executionRoleArn

      ServiceConfig.Builder executionRoleArn(String executionRoleArn)

      The ARN of the IAM role that the web function assumes when it runs. This role provides permissions to access AWS services and resources.

      Parameters:
      executionRoleArn - The ARN of the IAM role that the web function assumes when it runs. This role provides permissions to access AWS services and resources.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timeoutSeconds

      ServiceConfig.Builder timeoutSeconds(Integer timeoutSeconds)

      The amount of time (in seconds) that Lambda allows the web function to run before stopping it. Minimum value of 3, maximum value of 900. If you don't specify a value, the default is 30, and this default is returned in the response.

      Parameters:
      timeoutSeconds - The amount of time (in seconds) that Lambda allows the web function to run before stopping it. Minimum value of 3, maximum value of 900. If you don't specify a value, the default is 30, and this default is returned in the response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxConcurrencyPerEnvironment

      ServiceConfig.Builder maxConcurrencyPerEnvironment(Integer maxConcurrencyPerEnvironment)

      The maximum number of concurrent requests handled per execution environment. Minimum value of 1, maximum value of 128. If you don't specify a value, the default is 64, and this default is returned in the response.

      Parameters:
      maxConcurrencyPerEnvironment - The maximum number of concurrent requests handled per execution environment. Minimum value of 1, maximum value of 128. If you don't specify a value, the default is 64, and this default is returned in the response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • environmentVariables

      ServiceConfig.Builder environmentVariables(Map<String,String> environmentVariables)

      A map of environment variable key-value pairs available to the web function at runtime. Environment variable values are sensitive.

      Parameters:
      environmentVariables - A map of environment variable key-value pairs available to the web function at runtime. Environment variable values are sensitive.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • telemetryConfig

      ServiceConfig.Builder telemetryConfig(TelemetryConfig telemetryConfig)

      The telemetry configuration for the web function, including logging settings.

      Parameters:
      telemetryConfig - The telemetry configuration for the web function, including logging settings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • telemetryConfig

      default ServiceConfig.Builder telemetryConfig(Consumer<TelemetryConfig.Builder> telemetryConfig)

      The telemetry configuration for the web function, including logging settings.

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

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

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