class AwsManagedComponent
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ImageBuilder.Alpha.AwsManagedComponent |
Go | github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2#AwsManagedComponent |
Java | software.amazon.awscdk.services.imagebuilder.alpha.AwsManagedComponent |
Python | aws_cdk.aws_imagebuilder_alpha.AwsManagedComponent |
TypeScript (source) | @aws-cdk/aws-imagebuilder-alpha ยป AwsManagedComponent |
Helper class for working with AWS-managed components.
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'
);
Initializer
new AwsManagedComponent()
Methods
| Name | Description |
|---|---|
| static aws | Imports the AWS CLI v2 AWS-managed component. |
| static from | Imports an AWS-managed component from its attributes. |
| static from | Imports an AWS-managed component from its name. |
| static hello | Imports the hello world AWS-managed component. |
| static python3(scope, id, attrs) | Imports the Python 3 AWS-managed component. |
| static reboot(scope, id, attrs) | Imports the reboot AWS-managed component. |
| static stig | Imports the STIG hardening AWS-managed component. |
| static update | Imports the OS update AWS-managed component. |
static awsCliV2(scope, id, attrs)
public static awsCliV2(scope: Construct, id: string, attrs: AwsManagedComponentAttributes): IComponent
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - attrs
Awsโ The AWS-managed component attributes.Managed Component Attributes
Returns
Imports the AWS CLI v2 AWS-managed component.
static fromAwsManagedComponentAttributes(scope, id, attrs)
public static fromAwsManagedComponentAttributes(scope: Construct, id: string, attrs: AwsManagedComponentAttributes): IComponent
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - attrs
Awsโ The AWS-managed component attributes.Managed Component Attributes
Returns
Imports an AWS-managed component from its attributes.
static fromAwsManagedComponentName(scope, id, awsManagedComponentName)
public static fromAwsManagedComponentName(scope: Construct, id: string, awsManagedComponentName: string): IComponent
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - awsManagedComponentName
stringโ - The name of the AWS-managed component.
Returns
Imports an AWS-managed component from its name.
static helloWorld(scope, id, attrs)
public static helloWorld(scope: Construct, id: string, attrs: AwsManagedComponentAttributes): IComponent
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - attrs
Awsโ The AWS-managed component attributes.Managed Component Attributes
Returns
Imports the hello world AWS-managed component.
static python3(scope, id, attrs)
public static python3(scope: Construct, id: string, attrs: AwsManagedComponentAttributes): IComponent
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - attrs
Awsโ The AWS-managed component attributes.Managed Component Attributes
Returns
Imports the Python 3 AWS-managed component.
static reboot(scope, id, attrs)
public static reboot(scope: Construct, id: string, attrs: AwsManagedComponentAttributes): IComponent
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - attrs
Awsโ The AWS-managed component attributes.Managed Component Attributes
Returns
Imports the reboot AWS-managed component.
static stigBuild(scope, id, attrs)
public static stigBuild(scope: Construct, id: string, attrs: AwsManagedComponentAttributes): IComponent
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - attrs
Awsโ The AWS-managed component attributes.Managed Component Attributes
Returns
Imports the STIG hardening AWS-managed component.
See also: https://docs.aws.amazon.com/imagebuilder/latest/userguide/ib-stig.html
static updateOS(scope, id, attrs)
public static updateOS(scope: Construct, id: string, attrs: AwsManagedComponentAttributes): IComponent
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - attrs
Awsโ The AWS-managed component attributes.Managed Component Attributes
Returns
Imports the OS update AWS-managed component.

.NET
Go
Java
Python
TypeScript (