Class AmazonManagedComponent

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.imagebuilder.alpha.AmazonManagedComponent
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)", date="2025-12-18T18:20:21.644Z") @Stability(Experimental) public abstract class AmazonManagedComponent extends software.amazon.jsii.JsiiObject
(experimental) Helper class for working with Amazon-managed components.

Example:

 ImageRecipe imageRecipe = ImageRecipe.Builder.create(this, "AmazonManagedImageRecipe")
         .baseImage(BaseImage.fromSsmParameterName("/aws/service/ami-amazon-linux-latest/al2023-ami-minimal-kernel-default-x86_64"))
         .components(List.of(ComponentConfiguration.builder()
                 .component(AmazonManagedComponent.updateOs(this, "UpdateOS", AmazonManagedComponentOptions.builder()
                         .platform(Platform.LINUX)
                         .build()))
                 .build(), ComponentConfiguration.builder()
                 .component(AmazonManagedComponent.awsCliV2(this, "AwsCli", AmazonManagedComponentOptions.builder()
                         .platform(Platform.LINUX)
                         .build()))
                 .build()))
         .build();
 
  • Constructor Details

    • AmazonManagedComponent

      protected AmazonManagedComponent(software.amazon.jsii.JsiiObjectRef objRef)
    • AmazonManagedComponent

      protected AmazonManagedComponent(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • AmazonManagedComponent

      @Stability(Experimental) protected AmazonManagedComponent()
  • Method Details

    • awsCliV2

      @Stability(Experimental) @NotNull public static IComponent awsCliV2(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedComponentOptions opts)
      (experimental) Imports the AWS CLI v2 Amazon-managed component.

      Parameters:
      scope - The construct scope. This parameter is required.
      id - Identifier of the construct. This parameter is required.
      opts - The Amazon-managed component options. This parameter is required.
    • fromAmazonManagedComponentAttributes

      @Stability(Experimental) @NotNull public static IComponent fromAmazonManagedComponentAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedComponentAttributes attrs)
      (experimental) Imports an Amazon-managed component from its attributes.

      Parameters:
      scope - The construct scope. This parameter is required.
      id - Identifier of the construct. This parameter is required.
      attrs - The Amazon-managed component attributes. This parameter is required.
    • fromAmazonManagedComponentName

      @Stability(Experimental) @NotNull public static IComponent fromAmazonManagedComponentName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String amazonManagedComponentName)
      (experimental) Imports an Amazon-managed component from its name.

      Parameters:
      scope - The construct scope. This parameter is required.
      id - Identifier of the construct. This parameter is required.
      amazonManagedComponentName -
      • The name of the Amazon-managed component.
      This parameter is required.
    • helloWorld

      @Stability(Experimental) @NotNull public static IComponent helloWorld(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedComponentOptions opts)
      (experimental) Imports the hello world Amazon-managed component.

      Parameters:
      scope - The construct scope. This parameter is required.
      id - Identifier of the construct. This parameter is required.
      opts - The Amazon-managed component options. This parameter is required.
    • python3

      @Stability(Experimental) @NotNull public static IComponent python3(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedComponentOptions opts)
      (experimental) Imports the Python 3 Amazon-managed component.

      Parameters:
      scope - The construct scope. This parameter is required.
      id - Identifier of the construct. This parameter is required.
      opts - The Amazon-managed component options. This parameter is required.
    • reboot

      @Stability(Experimental) @NotNull public static IComponent reboot(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedComponentOptions opts)
      (experimental) Imports the reboot Amazon-managed component.

      Parameters:
      scope - The construct scope. This parameter is required.
      id - Identifier of the construct. This parameter is required.
      opts - The Amazon-managed component options. This parameter is required.
    • stigBuild

      @Stability(Experimental) @NotNull public static IComponent stigBuild(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedComponentOptions opts)
      (experimental) Imports the STIG hardening Amazon-managed component.

      Parameters:
      scope - The construct scope. This parameter is required.
      id - Identifier of the construct. This parameter is required.
      opts - The Amazon-managed component options. This parameter is required.
      See Also:
    • updateOs

      @Stability(Experimental) @NotNull public static IComponent updateOs(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedComponentOptions opts)
      (experimental) Imports the OS update Amazon-managed component.

      Parameters:
      scope - The construct scope. This parameter is required.
      id - Identifier of the construct. This parameter is required.
      opts - The Amazon-managed component attributes. This parameter is required.