Class AwsManagedComponent

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

@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)", date="2025-11-20T23:37:34.435Z") @Stability(Experimental) public abstract class AwsManagedComponent extends software.amazon.jsii.JsiiObject
(experimental) Helper class for working with AWS-managed components.

Example:

 // Install AWS CLI v2
 IComponent awsCliComponent = AwsManagedComponent.awsCliV2(this, "AwsCli", AwsManagedComponentAttributes.builder()
         .platform(Platform.LINUX)
         .build());
 // Update the operating system
 IComponent updateComponent = AwsManagedComponent.updateOS(this, "UpdateOS", AwsManagedComponentAttributes.builder()
         .platform(Platform.LINUX)
         .build());
 // Reference any AWS-managed component by name
 IComponent customAwsComponent = AwsManagedComponent.fromAwsManagedComponentName(this, "CloudWatchAgent", "amazon-cloudwatch-agent-linux");
 
  • Constructor Details

    • AwsManagedComponent

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

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

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

    • awsCliV2

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

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

      @Stability(Experimental) @NotNull public static IComponent fromAwsManagedComponentAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AwsManagedComponentAttributes attrs)
      (experimental) Imports an AWS-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 AWS-managed component attributes. This parameter is required.
    • fromAwsManagedComponentName

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

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

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

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

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

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

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

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

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

      Parameters:
      scope - The construct scope. This parameter is required.
      id - Identifier of the construct. This parameter is required.
      attrs - The AWS-managed component attributes. This parameter is required.
      See Also:
    • updateOS

      @Stability(Experimental) @NotNull public static IComponent updateOS(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AwsManagedComponentAttributes attrs)
      (experimental) Imports the OS update AWS-managed component.

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