# CfnProjectProps

Properties for defining a `CfnProject`.

Used as props by: [CfnProject](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotsitewise.CfnProject.html)

- Source: Generated at build time
- Type last changed: v2.2.0 · 15 Dec 2021

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotsitewise as iotsitewise } from 'aws-cdk-lib';
const cfnProjectProps: iotsitewise.CfnProjectProps = {
  portalId: 'portalId',
  projectName: 'projectName',

  // the properties below are optional
  assetIds: ['assetIds'],
  projectDescription: 'projectDescription',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

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

cfn_project_props = iotsitewise.CfnProjectProps(
    portal_id="portalId",
    project_name="projectName",

    # the properties below are optional
    asset_ids=["assetIds"],
    project_description="projectDescription",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

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.iotsitewise.*;

CfnProjectProps cfnProjectProps = CfnProjectProps.builder()
        .portalId("portalId")
        .projectName("projectName")

        // the properties below are optional
        .assetIds(List.of("assetIds"))
        .projectDescription("projectDescription")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .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.IoTSiteWise;

var cfnProjectProps = new CfnProjectProps {
    PortalId = "portalId",
    ProjectName = "projectName",

    // the properties below are optional
    AssetIds = new [] { "assetIds" },
    ProjectDescription = "projectDescription",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

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"

cfnProjectProps := &CfnProjectProps{
	PortalId: jsii.String("portalId"),
	ProjectName: jsii.String("projectName"),

	// the properties below are optional
	AssetIds: []*string{
		jsii.String("assetIds"),
	},
	ProjectDescription: jsii.String("projectDescription"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `assetIds`: string[] — A list that contains the IDs of each asset associated with the project.

- `portalId`: string (required) — The ID of the portal in which to create the project.

- `projectDescription`: string — A description for the project.

- `projectName`: string (required) — A friendly name for the project.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A list of key-value pairs that contain metadata for the project.

  For more information, see [Tagging your AWS IoT SiteWise resources](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html) in the *AWS IoT SiteWise User Guide* .
