Skip to content
v2.277.0

CfnApplicationProps Struct ​

Properties for defining a CfnApplication.

Example ​

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
# 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
// 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();
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" }
    }
};
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 ​

definitionoptionalIResolvable | CfnApplication.DefinitionPropertydefinitionoptionaltyping.Union[IResolvable, DefinitionProperty]definitionoptionalIResolvableDefinitionoptionalIResolvableDefinitionoptionalinterface{}#
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 .

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#
The description of the application.
engineTypestringengine_typestrengineTypeStringEngineTypestringEngineType*stringrequired#
The type of the target platform for this application.
kmsKeyIdoptionalstringkms_key_idoptionalstrkmsKeyIdoptionalStringKmsKeyIdoptionalstringKmsKeyIdoptional*string#
The identifier of a customer managed key.
namestringnamestrnameStringNamestringName*stringrequired#
The name of the application.
roleArnoptionalstringrole_arnoptionalstrroleArnoptionalStringRoleArnoptionalstringRoleArnoptional*string#
The Amazon Resource Name (ARN) of the role associated with the application.
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string#
An array of key-value pairs to apply to this resource.

For more information, see Tag .