# CfnApplicationProps

Properties for defining a `CfnApplication`.

Used as props by: [CfnApplication](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appstream.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_appstream as appstream } from 'aws-cdk-lib';
const cfnApplicationProps: appstream.CfnApplicationProps = {
  appBlockArn: 'appBlockArn',
  iconS3Location: {
    s3Bucket: 's3Bucket',
    s3Key: 's3Key',
  },
  instanceFamilies: ['instanceFamilies'],
  launchPath: 'launchPath',
  name: 'name',
  platforms: ['platforms'],

  // the properties below are optional
  attributesToDelete: ['attributesToDelete'],
  description: 'description',
  displayName: 'displayName',
  launchParameters: 'launchParameters',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  workingDirectory: 'workingDirectory',
};
```

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_appstream as appstream

cfn_application_props = appstream.CfnApplicationProps(
    app_block_arn="appBlockArn",
    icon_s3_location=appstream.CfnApplication.S3LocationProperty(
        s3_bucket="s3Bucket",
        s3_key="s3Key"
    ),
    instance_families=["instanceFamilies"],
    launch_path="launchPath",
    name="name",
    platforms=["platforms"],

    # the properties below are optional
    attributes_to_delete=["attributesToDelete"],
    description="description",
    display_name="displayName",
    launch_parameters="launchParameters",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    working_directory="workingDirectory"
)
```

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.appstream.*;

CfnApplicationProps cfnApplicationProps = CfnApplicationProps.builder()
        .appBlockArn("appBlockArn")
        .iconS3Location(S3LocationProperty.builder()
                .s3Bucket("s3Bucket")
                .s3Key("s3Key")
                .build())
        .instanceFamilies(List.of("instanceFamilies"))
        .launchPath("launchPath")
        .name("name")
        .platforms(List.of("platforms"))

        // the properties below are optional
        .attributesToDelete(List.of("attributesToDelete"))
        .description("description")
        .displayName("displayName")
        .launchParameters("launchParameters")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .workingDirectory("workingDirectory")
        .build();
```

C# / .NET:

```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.AppStream;

var cfnApplicationProps = new CfnApplicationProps {
    AppBlockArn = "appBlockArn",
    IconS3Location = new S3LocationProperty {
        S3Bucket = "s3Bucket",
        S3Key = "s3Key"
    },
    InstanceFamilies = new [] { "instanceFamilies" },
    LaunchPath = "launchPath",
    Name = "name",
    Platforms = new [] { "platforms" },

    // the properties below are optional
    AttributesToDelete = new [] { "attributesToDelete" },
    Description = "description",
    DisplayName = "displayName",
    LaunchParameters = "launchParameters",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    WorkingDirectory = "workingDirectory"
};
```

Golang:

```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{
	AppBlockArn: jsii.String("appBlockArn"),
	IconS3Location: &S3LocationProperty{
		S3Bucket: jsii.String("s3Bucket"),
		S3Key: jsii.String("s3Key"),
	},
	InstanceFamilies: []*string{
		jsii.String("instanceFamilies"),
	},
	LaunchPath: jsii.String("launchPath"),
	Name: jsii.String("name"),
	Platforms: []*string{
		jsii.String("platforms"),
	},

	// the properties below are optional
	AttributesToDelete: []*string{
		jsii.String("attributesToDelete"),
	},
	Description: jsii.String("description"),
	DisplayName: jsii.String("displayName"),
	LaunchParameters: jsii.String("launchParameters"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	WorkingDirectory: jsii.String("workingDirectory"),
}
```

## Properties

- `appBlockArn`: string (required) — The app block ARN with which the application should be associated.

- `attributesToDelete`: string[] — A list of attributes to delete from an application.

- `description`: string — The description of the application.

- `displayName`: string — The display name of the application.

  This name is visible to users in the application catalog.

- `iconS3Location`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplication.S3LocationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appstream.CfnApplication.S3LocationProperty.html) (required) — The icon S3 location of the application.

- `instanceFamilies`: string[] (required) — The instance families the application supports.

  *Allowed Values* : `GENERAL_PURPOSE` | `GRAPHICS_G4`

- `launchParameters`: string — The launch parameters of the application.

- `launchPath`: string (required) — The launch path of the application.

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

  This name is visible to users when a name is not specified in the DisplayName property.

  *Pattern* : `^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,100}$`

- `platforms`: string[] (required) — The platforms the application supports.

  *Allowed Values* : `WINDOWS_SERVER_2019` | `AMAZON_LINUX2`

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags of the application.

- `workingDirectory`: string — The working directory of the application.
