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");
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedAwsManagedComponent(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedAwsManagedComponent(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic IComponentawsCliV2(software.constructs.Construct scope, String id, AwsManagedComponentAttributes attrs) (experimental) Imports the AWS CLI v2 AWS-managed component.static IComponentfromAwsManagedComponentAttributes(software.constructs.Construct scope, String id, AwsManagedComponentAttributes attrs) (experimental) Imports an AWS-managed component from its attributes.static IComponentfromAwsManagedComponentName(software.constructs.Construct scope, String id, String awsManagedComponentName) (experimental) Imports an AWS-managed component from its name.static IComponenthelloWorld(software.constructs.Construct scope, String id, AwsManagedComponentAttributes attrs) (experimental) Imports the hello world AWS-managed component.static IComponentpython3(software.constructs.Construct scope, String id, AwsManagedComponentAttributes attrs) (experimental) Imports the Python 3 AWS-managed component.static IComponentreboot(software.constructs.Construct scope, String id, AwsManagedComponentAttributes attrs) (experimental) Imports the reboot AWS-managed component.static IComponentstigBuild(software.constructs.Construct scope, String id, AwsManagedComponentAttributes attrs) (experimental) Imports the STIG hardening AWS-managed component.static IComponentupdateOS(software.constructs.Construct scope, String id, AwsManagedComponentAttributes attrs) (experimental) Imports the OS update AWS-managed component.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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.
-
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.
-