# ComponentPlatformProperty

Contains information about a platform that a component supports.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_greengrassv2 as greengrassv2 } from 'aws-cdk-lib';
const componentPlatformProperty: greengrassv2.CfnComponentVersion.ComponentPlatformProperty = {
  attributes: {
    attributesKey: 'attributes',
  },
  name: 'name',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_greengrassv2 as greengrassv2

component_platform_property = greengrassv2.CfnComponentVersion.ComponentPlatformProperty(
    attributes={
        "attributes_key": "attributes"
    },
    name="name"
)
```

Java:

```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.greengrassv2.*;

ComponentPlatformProperty componentPlatformProperty = ComponentPlatformProperty.builder()
        .attributes(Map.of(
                "attributesKey", "attributes"))
        .name("name")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GreengrassV2;

var componentPlatformProperty = new ComponentPlatformProperty {
    Attributes = new Dictionary<string, string> {
        { "attributesKey", "attributes" }
    },
    Name = "name"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

componentPlatformProperty := &ComponentPlatformProperty{
	Attributes: map[string]*string{
		"attributesKey": jsii.String("attributes"),
	},
	Name: jsii.String("name"),
}
```

## Properties

- `attributes`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — A dictionary of attributes for the platform.

  The AWS IoT Greengrass Core software defines the `os` and `platform` by default. You can specify additional platform attributes for a core device when you deploy the AWS IoT Greengrass nucleus component. For more information, see the [AWS IoT Greengrass nucleus component](https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-nucleus-component.html) in the *AWS IoT Greengrass V2 Developer Guide* .

- `name`: string — The friendly name of the platform. This name helps you identify the platform.

  If you omit this parameter, AWS IoT Greengrass creates a friendly name from the `os` and `architecture` of the platform.
