CfnApplicationProps Struct
Properties for defining a CfnApplication.
| Source |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotfleethub as iotfleethub } from 'aws-cdk-lib';
const cfnApplicationProps: iotfleethub.CfnApplicationProps = {
applicationName: 'applicationName',
roleArn: 'roleArn',
// the properties below are optional
applicationDescription: 'applicationDescription',
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_iotfleethub as iotfleethub
cfn_application_props = iotfleethub.CfnApplicationProps(
application_name="applicationName",
role_arn="roleArn",
# the properties below are optional
application_description="applicationDescription",
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.iotfleethub.*;
CfnApplicationProps cfnApplicationProps = CfnApplicationProps.builder()
.applicationName("applicationName")
.roleArn("roleArn")
// the properties below are optional
.applicationDescription("applicationDescription")
.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.IoTFleetHub;
var cfnApplicationProps = new CfnApplicationProps {
ApplicationName = "applicationName",
RoleArn = "roleArn",
// the properties below are optional
ApplicationDescription = "applicationDescription",
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"
cfnApplicationProps := &CfnApplicationProps{
ApplicationName: jsii.String("applicationName"),
RoleArn: jsii.String("roleArn"),
// the properties below are optional
ApplicationDescription: jsii.String("applicationDescription"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
applicationDescriptionoptionalstringapplication_descriptionoptionalstrapplicationDescriptionoptionalStringApplicationDescriptionoptionalstringApplicationDescriptionoptional*string #An optional description of the web application.
applicationNamestringapplication_namestrapplicationNameStringApplicationNamestringApplicationName*string required #The name of the web application.
The ARN of the role that the web application assumes when it interacts with AWS IoT Core .
The name of the role must be in the form
FleetHub_random_string.
Pattern: ^arn:[!-~]+$