@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.061Z") @Stability(value=Stable) public class CfnProject extends CfnResource implements IInspectable
Creates a project in the specified portal.
Make sure that the project name and description don't contain confidential information.
Example:
// 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.*;
CfnProject cfnProject = CfnProject.Builder.create(this, "MyCfnProject")
.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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnProject.Builder
A fluent builder for
CfnProject. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnProject(software.constructs.Construct scope,
String id,
CfnProjectProps props)
Create a new `AWS::IoTSiteWise::Project`.
|
protected |
CfnProject(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnProject(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAssetIds()
A list that contains the IDs of each asset associated with the project.
|
String |
getAttrProjectArn()
The [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of the project, which has the following format.
|
String |
getAttrProjectId()
The ID of the project.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getPortalId()
The ID of the portal in which to create the project.
|
String |
getProjectDescription()
A description for the project.
|
String |
getProjectName()
A friendly name for the project.
|
TagManager |
getTags()
A list of key-value pairs that contain metadata for the project.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAssetIds(List<String> value)
A list that contains the IDs of each asset associated with the project.
|
void |
setPortalId(String value)
The ID of the portal in which to create the project.
|
void |
setProjectDescription(String value)
A description for the project.
|
void |
setProjectName(String value)
A friendly name for the project.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnProject(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnProject(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnProject(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnProjectProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrProjectArn()
arn:${Partition}:iotsitewise:${Region}:${Account}:project/${ProjectId}
@Stability(value=Stable) @NotNull public String getAttrProjectId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide .
@Stability(value=Stable) @NotNull public String getPortalId()
@Stability(value=Stable)
public void setPortalId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getProjectName()
@Stability(value=Stable)
public void setProjectName(@NotNull
String value)
@Stability(value=Stable) @Nullable public List<String> getAssetIds()
@Stability(value=Stable)
public void setAssetIds(@Nullable
List<String> value)
@Stability(value=Stable) @Nullable public String getProjectDescription()
@Stability(value=Stable)
public void setProjectDescription(@Nullable
String value)
Copyright © 2022. All rights reserved.