interface AwsManagedComponentAttributes
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ImageBuilder.Alpha.AwsManagedComponentAttributes |
Go | github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2#AwsManagedComponentAttributes |
Java | software.amazon.awscdk.services.imagebuilder.alpha.AwsManagedComponentAttributes |
Python | aws_cdk.aws_imagebuilder_alpha.AwsManagedComponentAttributes |
TypeScript (source) | @aws-cdk/aws-imagebuilder-alpha ยป AwsManagedComponentAttributes |
Properties for an EC2 Image Builder AWS-managed component.
Example
// Install AWS CLI v2
const awsCliComponent = imagebuilder.AwsManagedComponent.awsCliV2(this, 'AwsCli', {
platform: imagebuilder.Platform.LINUX
});
// Update the operating system
const updateComponent = imagebuilder.AwsManagedComponent.updateOS(this, 'UpdateOS', {
platform: imagebuilder.Platform.LINUX
});
// Reference any AWS-managed component by name
const customAwsComponent = imagebuilder.AwsManagedComponent.fromAwsManagedComponentName(
this,
'CloudWatchAgent',
'amazon-cloudwatch-agent-linux'
);
Properties
| Name | Type | Description |
|---|---|---|
| component | string | The name of the AWS-managed component. |
| component | string | The version of the AWS-managed component. |
| platform? | Platform | The platform of the AWS-managed component. |
componentName?
Type:
string
(optional, default: none if using the pre-defined managed component methods, otherwise a platform is required when using
this.fromAwsManagedComponentAttributes())
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 as AwsManagedComponent.updateOS() and
AwsManagedComponent.reboot().
componentVersion?
Type:
string
(optional, default: the latest version of the component, x.x.x)
The version of the AWS-managed component.
platform?
Type:
Platform
(optional, default: none if using this.fromAwsManagedComponentAttributes(), otherwise a platform is
required when using the pre-defined managed component methods)
The platform of the AWS-managed component.
This is a required attribute when using the pre-defined managed
component methods, such as AwsManagedComponent.updateOS() and AwsManagedComponent.reboot(). This parameter
should not be provided when using the this.fromAwsManagedComponentAttributes() method.

.NET
Go
Java
Python
TypeScript (