# CfnApplicationProps

Properties for defining a `CfnApplication`.

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

- Source: Generated at build time
- Type last changed: v2.166.0 · 7 Nov 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_m2 as m2 } from 'aws-cdk-lib';
const cfnApplicationProps: m2.CfnApplicationProps = {
  engineType: 'engineType',
  name: 'name',

  // the properties below are optional
  definition: {
    content: 'content',
    s3Location: 's3Location',
  },
  description: 'description',
  kmsKeyId: 'kmsKeyId',
  roleArn: 'roleArn',
  tags: {
    tagsKey: 'tags',
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_m2 as m2

cfn_application_props = m2.CfnApplicationProps(
    engine_type="engineType",
    name="name",

    # the properties below are optional
    definition=m2.CfnApplication.DefinitionProperty(
        content="content",
        s3_location="s3Location"
    ),
    description="description",
    kms_key_id="kmsKeyId",
    role_arn="roleArn",
    tags={
        "tags_key": "tags"
    }
)
```

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

CfnApplicationProps cfnApplicationProps = CfnApplicationProps.builder()
        .engineType("engineType")
        .name("name")

        // the properties below are optional
        .definition(DefinitionProperty.builder()
                .content("content")
                .s3Location("s3Location")
                .build())
        .description("description")
        .kmsKeyId("kmsKeyId")
        .roleArn("roleArn")
        .tags(Map.of(
                "tagsKey", "tags"))
        .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.M2;

var cfnApplicationProps = new CfnApplicationProps {
    EngineType = "engineType",
    Name = "name",

    // the properties below are optional
    Definition = new DefinitionProperty {
        Content = "content",
        S3Location = "s3Location"
    },
    Description = "description",
    KmsKeyId = "kmsKeyId",
    RoleArn = "roleArn",
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
};
```

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{
	EngineType: jsii.String("engineType"),
	Name: jsii.String("name"),

	// the properties below are optional
	Definition: &DefinitionProperty{
		Content: jsii.String("content"),
		S3Location: jsii.String("s3Location"),
	},
	Description: jsii.String("description"),
	KmsKeyId: jsii.String("kmsKeyId"),
	RoleArn: jsii.String("roleArn"),
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}
```

## Properties

- `definition`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplication.DefinitionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_m2.CfnApplication.DefinitionProperty.html) — The application definition for a particular application. You can specify either inline JSON or an Amazon S3 bucket location.

  For information about application definitions, see the [AWS Mainframe Modernization User Guide](https://docs.aws.amazon.com/m2/latest/userguide/applications-m2-definition.html) .

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

- `engineType`: string (required) — The type of the target platform for this application.

- `kmsKeyId`: string — The identifier of a customer managed key.

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

- `roleArn`: string — The Amazon Resource Name (ARN) of the role associated with the application.

- `tags`: { [key: string]: string } — An array of key-value pairs to apply to this resource.

  For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
