Interface CreateMicrovmImageRequest.Builder

  • Method Details

    • baseImageArn

      CreateMicrovmImageRequest.Builder baseImageArn(String baseImageArn)

      The ARN of the Lambda-managed base MicroVM image to build upon. Use ListManagedMicrovmImages to discover available base images.

      Parameters:
      baseImageArn - The ARN of the Lambda-managed base MicroVM image to build upon. Use ListManagedMicrovmImages to discover available base images.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • baseImageVersion

      CreateMicrovmImageRequest.Builder baseImageVersion(String baseImageVersion)

      The specific version of the base MicroVM image to use.

      Parameters:
      baseImageVersion - The specific version of the base MicroVM image to use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • buildRoleArn

      CreateMicrovmImageRequest.Builder buildRoleArn(String buildRoleArn)

      The ARN of the IAM role assumed during the image build process. This role must have permissions to access the code artifact and any required resources.

      Parameters:
      buildRoleArn - The ARN of the IAM role assumed during the image build process. This role must have permissions to access the code artifact and any required resources.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      CreateMicrovmImageRequest.Builder description(String description)

      A description of the MicroVM image.

      Parameters:
      description - A description of the MicroVM image.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codeArtifact

      CreateMicrovmImageRequest.Builder codeArtifact(CodeArtifact codeArtifact)

      The code artifact containing the application code and metadata for the MicroVM image.

      Parameters:
      codeArtifact - The code artifact containing the application code and metadata for the MicroVM image.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codeArtifact

      default CreateMicrovmImageRequest.Builder codeArtifact(Consumer<CodeArtifact.Builder> codeArtifact)

      The code artifact containing the application code and metadata for the MicroVM image.

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

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

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

      The logging configuration for build-time and runtime logs. Specify {"cloudWatch": {"logGroup": "..."}} to stream logs to a custom CloudWatch log group, or {"disabled": {}} to turn off logging.

      Parameters:
      logging - The logging configuration for build-time and runtime logs. Specify {"cloudWatch": {"logGroup": "..."}} to stream logs to a custom CloudWatch log group, or {"disabled": {}} to turn off logging.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logging

      The logging configuration for build-time and runtime logs. Specify {"cloudWatch": {"logGroup": "..."}} to stream logs to a custom CloudWatch log group, or {"disabled": {}} to turn off logging.

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

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

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

      CreateMicrovmImageRequest.Builder egressNetworkConnectors(Collection<String> egressNetworkConnectors)

      The list of egress network connectors available to the MicroVM at runtime.

      Parameters:
      egressNetworkConnectors - The list of egress network connectors available to the MicroVM at runtime.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • egressNetworkConnectors

      CreateMicrovmImageRequest.Builder egressNetworkConnectors(String... egressNetworkConnectors)

      The list of egress network connectors available to the MicroVM at runtime.

      Parameters:
      egressNetworkConnectors - The list of egress network connectors available to the MicroVM at runtime.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cpuConfigurations

      CreateMicrovmImageRequest.Builder cpuConfigurations(Collection<CpuConfiguration> cpuConfigurations)

      The list of supported CPU configurations for the MicroVM.

      Parameters:
      cpuConfigurations - The list of supported CPU configurations for the MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cpuConfigurations

      CreateMicrovmImageRequest.Builder cpuConfigurations(CpuConfiguration... cpuConfigurations)

      The list of supported CPU configurations for the MicroVM.

      Parameters:
      cpuConfigurations - The list of supported CPU configurations for the MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cpuConfigurations

      CreateMicrovmImageRequest.Builder cpuConfigurations(Consumer<CpuConfiguration.Builder>... cpuConfigurations)

      The list of supported CPU configurations for the MicroVM.

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

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

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

      The resource requirements for the MicroVM.

      Parameters:
      resources - The resource requirements for the MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resources

      The resource requirements for the MicroVM.

      Parameters:
      resources - The resource requirements for the MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resources

      The resource requirements for the MicroVM.

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

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

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

      CreateMicrovmImageRequest.Builder additionalOsCapabilitiesWithStrings(Collection<String> additionalOsCapabilities)

      Additional OS capabilities granted to the MicroVM runtime environment.

      Parameters:
      additionalOsCapabilities - Additional OS capabilities granted to the MicroVM runtime environment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalOsCapabilitiesWithStrings

      CreateMicrovmImageRequest.Builder additionalOsCapabilitiesWithStrings(String... additionalOsCapabilities)

      Additional OS capabilities granted to the MicroVM runtime environment.

      Parameters:
      additionalOsCapabilities - Additional OS capabilities granted to the MicroVM runtime environment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalOsCapabilities

      CreateMicrovmImageRequest.Builder additionalOsCapabilities(Collection<Capability> additionalOsCapabilities)

      Additional OS capabilities granted to the MicroVM runtime environment.

      Parameters:
      additionalOsCapabilities - Additional OS capabilities granted to the MicroVM runtime environment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalOsCapabilities

      CreateMicrovmImageRequest.Builder additionalOsCapabilities(Capability... additionalOsCapabilities)

      Additional OS capabilities granted to the MicroVM runtime environment.

      Parameters:
      additionalOsCapabilities - Additional OS capabilities granted to the MicroVM runtime environment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hooks

      Sets the value of the Hooks property for this object.
      Parameters:
      hooks - The new value for the Hooks property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hooks

      Sets the value of the Hooks property for this object. This is a convenience method that creates an instance of the Hooks.Builder avoiding the need to create one manually via Hooks.builder().

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

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

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

      Environment variables set in the MicroVM runtime environment.

      Parameters:
      environmentVariables - Environment variables set in the MicroVM runtime environment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the MicroVM image. Must be unique within the AWS account.

      Parameters:
      name - The name of the MicroVM image. Must be unique within the AWS account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      A set of key-value pairs that you can attach to the resource. Use tags to categorize resources for cost allocation, access control (ABAC), and organization.

      Parameters:
      tags - A set of key-value pairs that you can attach to the resource. Use tags to categorize resources for cost allocation, access control (ABAC), and organization.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientToken

      CreateMicrovmImageRequest.Builder clientToken(String clientToken)

      A unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token, the operation returns the successful response without performing any further actions.

      Parameters:
      clientToken - A unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token, the operation returns the successful response without performing any further actions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

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