> **Experimental**
>
> `@aws-cdk/aws-imagebuilder-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# AwsMarketplaceComponentAttributes

Properties for an EC2 Image Builder AWS Marketplace component.

Used as argument in: [AwsMarketplaceComponent.fromAwsMarketplaceComponentAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-imagebuilder-alpha.AwsMarketplaceComponent.html#fromawsmarketplacecomponentattributes)

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/component.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-imagebuilder-alpha/lib/component.ts#L156)

## Example

TypeScript:

```ts
const marketplaceComponent = imagebuilder.AwsMarketplaceComponent.fromAwsMarketplaceComponentAttributes(
  this,
  'MarketplaceComponent',
  {
    componentName: 'my-marketplace-component',
    marketplaceProductId: 'prod-1234567890abcdef0',
  }
);
```

Python:

```python
marketplace_component = imagebuilder.AwsMarketplaceComponent.from_aws_marketplace_component_attributes(self, "MarketplaceComponent",
    component_name="my-marketplace-component",
    marketplace_product_id="prod-1234567890abcdef0"
)
```

Java:

```java
IComponent marketplaceComponent = AwsMarketplaceComponent.fromAwsMarketplaceComponentAttributes(this, "MarketplaceComponent", AwsMarketplaceComponentAttributes.builder()
        .componentName("my-marketplace-component")
        .marketplaceProductId("prod-1234567890abcdef0")
        .build());
```

C# / .NET:

```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"
});
```

Golang:

```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"),
})
```

## Properties

- `componentName`: string (required) — The name of the AWS Marketplace component.

  This name should exclude the marketplace product ID from it

- `componentVersion`: string — The version of the AWS Marketplace component.

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

- `marketplaceProductId`: string (required) — The marketplace product ID associated with the component.
