Interface AwsManagedComponentAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AwsManagedComponentAttributes.Jsii$Proxy
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 ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAwsManagedComponentAttributesstatic final classAn implementation forAwsManagedComponentAttributes -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getComponentName
(experimental) The name of the AWS-managed component.The name of the AWS-managed component. This is a required attribute when using the
this.fromAwsManagedComponentAttributes()method. This parameter should not be provided when using the pre-defined managed component methods, such asAwsManagedComponent.updateOS()andAwsManagedComponent.reboot().Default: - none if using the pre-defined managed component methods, otherwise a platform is required when using `this.fromAwsManagedComponentAttributes()`
-
getComponentVersion
(experimental) The version of the AWS-managed component.Default: - the latest version of the component, x.x.x
-
getPlatform
(experimental) The platform of the AWS-managed component.This is a required attribute when using the pre-defined managed component methods, such as
AwsManagedComponent.updateOS()andAwsManagedComponent.reboot(). This parameter should not be provided when using thethis.fromAwsManagedComponentAttributes()method.Default: - none if using `this.fromAwsManagedComponentAttributes()`, otherwise a platform is required when using the pre-defined managed component methods
-
builder
-