class AmazonManagedComponent
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ImageBuilder.Alpha.AmazonManagedComponent |
Go | github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2#AmazonManagedComponent |
Java | software.amazon.awscdk.services.imagebuilder.alpha.AmazonManagedComponent |
Python | aws_cdk.aws_imagebuilder_alpha.AmazonManagedComponent |
TypeScript (source) | @aws-cdk/aws-imagebuilder-alpha ยป AmazonManagedComponent |
Helper class for working with Amazon-managed components.
Example
const imageRecipe = new imagebuilder.ImageRecipe(this, 'AmazonManagedImageRecipe', {
baseImage: imagebuilder.BaseImage.fromSsmParameterName(
'/aws/service/ami-amazon-linux-latest/al2023-ami-minimal-kernel-default-x86_64'
),
components: [
{
component: imagebuilder.AmazonManagedComponent.updateOs(this, 'UpdateOS', {
platform: imagebuilder.Platform.LINUX
})
},
{
component: imagebuilder.AmazonManagedComponent.awsCliV2(this, 'AwsCli', {
platform: imagebuilder.Platform.LINUX
})
}
]
});
Initializer
new AmazonManagedComponent()
Methods
| Name | Description |
|---|---|
| static aws | Imports the AWS CLI v2 Amazon-managed component. |
| static from | Imports an Amazon-managed component from its attributes. |
| static from | Imports an Amazon-managed component from its name. |
| static hello | Imports the hello world Amazon-managed component. |
| static python3(scope, id, opts) | Imports the Python 3 Amazon-managed component. |
| static reboot(scope, id, opts) | Imports the reboot Amazon-managed component. |
| static stig | Imports the STIG hardening Amazon-managed component. |
| static update | Imports the OS update Amazon-managed component. |
static awsCliV2(scope, id, opts)
public static awsCliV2(scope: Construct, id: string, opts: AmazonManagedComponentOptions): IComponent
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed component options.Managed Component Options
Returns
Imports the AWS CLI v2 Amazon-managed component.
static fromAmazonManagedComponentAttributes(scope, id, attrs)
public static fromAmazonManagedComponentAttributes(scope: Construct, id: string, attrs: AmazonManagedComponentAttributes): IComponent
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - attrs
Amazonโ The Amazon-managed component attributes.Managed Component Attributes
Returns
Imports an Amazon-managed component from its attributes.
static fromAmazonManagedComponentName(scope, id, amazonManagedComponentName)
public static fromAmazonManagedComponentName(scope: Construct, id: string, amazonManagedComponentName: string): IComponent
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - amazonManagedComponentName
stringโ - The name of the Amazon-managed component.
Returns
Imports an Amazon-managed component from its name.
static helloWorld(scope, id, opts)
public static helloWorld(scope: Construct, id: string, opts: AmazonManagedComponentOptions): IComponent
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed component options.Managed Component Options
Returns
Imports the hello world Amazon-managed component.
static python3(scope, id, opts)
public static python3(scope: Construct, id: string, opts: AmazonManagedComponentOptions): IComponent
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed component options.Managed Component Options
Returns
Imports the Python 3 Amazon-managed component.
static reboot(scope, id, opts)
public static reboot(scope: Construct, id: string, opts: AmazonManagedComponentOptions): IComponent
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed component options.Managed Component Options
Returns
Imports the reboot Amazon-managed component.
static stigBuild(scope, id, opts)
public static stigBuild(scope: Construct, id: string, opts: AmazonManagedComponentOptions): IComponent
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed component options.Managed Component Options
Returns
Imports the STIG hardening Amazon-managed component.
See also: https://docs.aws.amazon.com/imagebuilder/latest/userguide/ib-stig.html
static updateOs(scope, id, opts)
public static updateOs(scope: Construct, id: string, opts: AmazonManagedComponentOptions): IComponent
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed component attributes.Managed Component Options
Returns
Imports the OS update Amazon-managed component.

.NET
Go
Java
Python
TypeScript (