Skip to content
v2.278.0

CfnProjectProps Struct ​

Properties for defining a CfnProject.

Example ​

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
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
// 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();
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"
    } }
};
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 ​

assetIdsoptionalstring[]asset_idsoptionaltyping.List[str]assetIdsoptionalList<String>AssetIdsoptionalstring[]AssetIdsoptional*[]*string #
A list that contains the IDs of each asset associated with the project.
portalIdstringportal_idstrportalIdStringPortalIdstringPortalId*string required #
The ID of the portal in which to create the project.
projectDescriptionoptionalstringproject_descriptionoptionalstrprojectDescriptionoptionalStringProjectDescriptionoptionalstringProjectDescriptionoptional*string #
A description for the project.
projectNamestringproject_namestrprojectNameStringProjectNamestringProjectName*string required #
A friendly name for the project.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
A list of key-value pairs that contain metadata for the project.

For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide .