Skip to content
v2.275.0

Experimental

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

AwsMarketplaceComponent Class ​

Helper class for working with AWS Marketplace components.

Example ​

ts
const marketplaceComponent = imagebuilder.AwsMarketplaceComponent.fromAwsMarketplaceComponentAttributes(
  this,
  'MarketplaceComponent',
  {
    componentName: 'my-marketplace-component',
    marketplaceProductId: 'prod-1234567890abcdef0',
  }
);
python
marketplace_component = imagebuilder.AwsMarketplaceComponent.from_aws_marketplace_component_attributes(self, "MarketplaceComponent",
    component_name="my-marketplace-component",
    marketplace_product_id="prod-1234567890abcdef0"
)
java
IComponent marketplaceComponent = AwsMarketplaceComponent.fromAwsMarketplaceComponentAttributes(this, "MarketplaceComponent", AwsMarketplaceComponentAttributes.builder()
        .componentName("my-marketplace-component")
        .marketplaceProductId("prod-1234567890abcdef0")
        .build());
csharp
// Install: dotnet add package Amazon.CDK.AWS.ImageBuilder.Alpha
var marketplaceComponent = AwsMarketplaceComponent.FromAwsMarketplaceComponentAttributes(this, "MarketplaceComponent", new AwsMarketplaceComponentAttributes {
    ComponentName = "my-marketplace-component",
    MarketplaceProductId = "prod-1234567890abcdef0"
});
go
// Install: go get github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2
marketplaceComponent := imagebuilder.AwsMarketplaceComponent_FromAwsMarketplaceComponentAttributes(this, jsii.String("MarketplaceComponent"), &AwsMarketplaceComponentAttributes{
	ComponentName: jsii.String("my-marketplace-component"),
	MarketplaceProductId: jsii.String("prod-1234567890abcdef0"),
})

Initializer ​

ts
new AwsMarketplaceComponent()
python
AwsMarketplaceComponent()
java
new AwsMarketplaceComponent()
csharp
new AwsMarketplaceComponent()
go
NewAwsMarketplaceComponent()

Methods ​

fromAwsMarketplaceComponentAttributes(scope: Construct, id: string, attrs: AwsMarketplaceComponentAttributes): IComponent@staticmethod def from_aws_marketplace_component_attributes(scope: Construct, id: str, attrs: AwsMarketplaceComponentAttributes) -> IComponentpublic static IComponent fromAwsMarketplaceComponentAttributes(Construct scope, String id, AwsMarketplaceComponentAttributes attrs)public static IComponent FromAwsMarketplaceComponentAttributes(Construct scope, string id, AwsMarketplaceComponentAttributes attrs)func FromAwsMarketplaceComponentAttributes(Scope Construct, Id *string, Attrs AwsMarketplaceComponentAttributes) IComponentstatic#
Imports an AWS Marketplace component from its attributes.
3 parameters

Parameters

  • scopescopescopescopeScope — The construct scope.
  • ididididId — Identifier of the construct.
  • attrsattrsattrsattrsAttrs — The AWS-managed component attributes.