# CfnApplicationProps

Struct · External

Properties for defining a `CfnApplication`.

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

- Source: Generated at build time

## Example

TypeScript:

```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:

```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:

```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();
```

C#:

```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:

```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

- `applicationDescription`: string — An optional description of the web application.

- `applicationName`: string (required) — The name of the web application.

- `roleArn`: string (required) — 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:[!-~]+$`

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A set of key/value pairs that you can use to manage the web application resource.
