Skip to content
v2.276.0

Experimental

@aws-cdk/aws-imagebuilder-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

ComponentAttributes Struct ​

Properties for an EC2 Image Builder component.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as imagebuilder_alpha from '@aws-cdk/aws-imagebuilder-alpha';
const componentAttributes: imagebuilder_alpha.ComponentAttributes = {
  componentArn: 'componentArn',
  componentName: 'componentName',
  componentVersion: 'componentVersion',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_imagebuilder_alpha as imagebuilder_alpha

component_attributes = imagebuilder_alpha.ComponentAttributes(
    component_arn="componentArn",
    component_name="componentName",
    component_version="componentVersion"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.imagebuilder.alpha.*;

ComponentAttributes componentAttributes = ComponentAttributes.builder()
        .componentArn("componentArn")
        .componentName("componentName")
        .componentVersion("componentVersion")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.ImageBuilder.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ImageBuilder.Alpha;

var componentAttributes = new ComponentAttributes {
    ComponentArn = "componentArn",
    ComponentName = "componentName",
    ComponentVersion = "componentVersion"
};
go
// Install: go get github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import imagebuilder_alpha "github.com/aws/aws-cdk-go/awsimagebuilderalpha"

componentAttributes := &ComponentAttributes{
	ComponentArn: jsii.String("componentArn"),
	ComponentName: jsii.String("componentName"),
	ComponentVersion: jsii.String("componentVersion"),
}

Properties ​

componentArnoptionalstringcomponent_arnoptionalstrcomponentArnoptionalStringComponentArnoptionalstringComponentArnoptional*string#
The ARN of the component.

Default: the ARN is automatically constructed if a componentName is provided, otherwise a componentArn is required

componentNameoptionalstringcomponent_nameoptionalstrcomponentNameoptionalStringComponentNameoptionalstringComponentNameoptional*string#
The name of the component.

Default: the name is automatically constructed if a componentArn is provided, otherwise a componentName is required

componentVersionoptionalstringcomponent_versionoptionalstrcomponentVersionoptionalStringComponentVersionoptionalstringComponentVersionoptional*string#
The version of the component.

Default: the latest version of the component, x.x.x