This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::IoTSiteWise::Application
Specifies a new application for the provided workspace and IAM Identity Center instance. For more information, see CreateApplication in the AWS IoT SiteWise API Reference.
A workspace supports at most one application.
Important
Changing WorkspaceName, Name, Description,
or IdcInstanceArn replaces the application. CloudFormation deletes
the existing application, then creates a replacement. This interrupts access to
the application during the replacement. You can update Tags without
replacing the application.
Syntax
To declare this entity in your CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::IoTSiteWise::Application", "Properties" : { "Description" :String, "IdcInstanceArn" :String, "Name" :String, "Tags" :[ Tag, ... ], "WorkspaceName" :String} }
YAML
Type: AWS::IoTSiteWise::Application Properties: Description:StringIdcInstanceArn:StringName:StringTags:- TagWorkspaceName:String
Properties
Description-
A description of the application's purpose or intended use.
Required: No
Type: String
Pattern:
^[^\u0000-\u001F\u007F]+$Minimum:
1Maximum:
2048Update requires: Replacement
IdcInstanceArn-
The ARN of the IAM Identity Center instance to associate with the application.
You must provide this value when creating an application.
You use this property only when creating the application. Neither
RefnorFn::GetAttreturns this value.Required: No
Type: String
Pattern:
^arn:aws(-cn|-us-gov)?:[a-zA-Z0-9-:\/_\.]+$Minimum:
1Maximum:
1600Update requires: Replacement
Name-
A name that identifies the application in the workspace. The name must start with a letter or digit and can't end with a space.
Required: Yes
Type: String
Pattern:
^[A-Za-z0-9](?:[A-Za-z0-9 ._()\-]*[A-Za-z0-9._()\-])?$Minimum:
1Maximum:
256Update requires: Replacement
-
Metadata that you can assign to the application in the form of key-value pairs. For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide.
Required: No
Type: Array of Tag
Maximum:
50Update requires: No interruption
WorkspaceName-
The name of the existing workspace in which to create the application. Specify the workspace name, not its ARN.
Required: Yes
Type: String
Pattern:
^[a-zA-Z0-9_-]+$Minimum:
1Maximum:
64Update requires: Replacement
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the Amazon Resource Name (ARN) of the application.
Fn::GetAtt
The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.
ApplicationId-
The unique identifier of the application.
Arn-
The ARN of the application.
CreatedAt-
The time the application was created, in ISO 8601 format.
DnsSubdomain-
The DNS subdomain label assigned to the application.
IdcApplicationArn-
The ARN of the IAM Identity Center application associated with this application.
Status-
The current status of the application. Valid values are:
-
CREATING- AWS IoT SiteWise is creating the application. -
ACTIVE- You can use the application. -
DELETING- AWS IoT SiteWise is deleting the application.
-
UpdatedAt-
The time the application was last updated, in ISO 8601 format.
Examples
The following example specifies an application in an existing workspace.
Specify an application with IAM Identity Center
Provide the name of an existing workspace that doesn't already contain an application, a name for the application, and the ARN of an enabled IAM Identity Center instance. The outputs return the application's ARN and identifier.
YAML
Parameters: WorkspaceName: Type: String ApplicationName: Type: String IdcInstanceArn: Type: String Resources: Application: Type: AWS::IoTSiteWise::Application Properties: WorkspaceName: !Ref WorkspaceName Name: !Ref ApplicationName IdcInstanceArn: !Ref IdcInstanceArn Tags: - Key: Environment Value: Example Outputs: ApplicationArn: Value: !Ref Application ApplicationId: Value: !GetAtt Application.ApplicationId