Skip to content
v2.278.0

ApplicationCodeConfigurationProperty Struct ​

Describes code configuration for an application.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kinesisanalytics as kinesisanalytics } from 'aws-cdk-lib';
const applicationCodeConfigurationProperty: kinesisanalytics.CfnApplicationV2.ApplicationCodeConfigurationProperty = {
  codeContent: {
    s3ContentLocation: {
      bucketArn: 'bucketArn',
      fileKey: 'fileKey',

      // the properties below are optional
      objectVersion: 'objectVersion',
    },
    textContent: 'textContent',
    zipFileContent: 'zipFileContent',
  },
  codeContentType: 'codeContentType',
};
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_kinesisanalytics as kinesisanalytics

application_code_configuration_property = kinesisanalytics.CfnApplicationV2.ApplicationCodeConfigurationProperty(
    code_content=kinesisanalytics.CfnApplicationV2.CodeContentProperty(
        s3_content_location=kinesisanalytics.CfnApplicationV2.S3ContentLocationProperty(
            bucket_arn="bucketArn",
            file_key="fileKey",

            # the properties below are optional
            object_version="objectVersion"
        ),
        text_content="textContent",
        zip_file_content="zipFileContent"
    ),
    code_content_type="codeContentType"
)
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.kinesisanalytics.*;

ApplicationCodeConfigurationProperty applicationCodeConfigurationProperty = ApplicationCodeConfigurationProperty.builder()
        .codeContent(CodeContentProperty.builder()
                .s3ContentLocation(S3ContentLocationProperty.builder()
                        .bucketArn("bucketArn")
                        .fileKey("fileKey")

                        // the properties below are optional
                        .objectVersion("objectVersion")
                        .build())
                .textContent("textContent")
                .zipFileContent("zipFileContent")
                .build())
        .codeContentType("codeContentType")
        .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.KinesisAnalytics;

var applicationCodeConfigurationProperty = new ApplicationCodeConfigurationProperty {
    CodeContent = new CodeContentProperty {
        S3ContentLocation = new S3ContentLocationProperty {
            BucketArn = "bucketArn",
            FileKey = "fileKey",

            // the properties below are optional
            ObjectVersion = "objectVersion"
        },
        TextContent = "textContent",
        ZipFileContent = "zipFileContent"
    },
    CodeContentType = "codeContentType"
};
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"

applicationCodeConfigurationProperty := &ApplicationCodeConfigurationProperty{
	CodeContent: &CodeContentProperty{
		S3ContentLocation: &S3ContentLocationProperty{
			BucketArn: jsii.String("bucketArn"),
			FileKey: jsii.String("fileKey"),

			// the properties below are optional
			ObjectVersion: jsii.String("objectVersion"),
		},
		TextContent: jsii.String("textContent"),
		ZipFileContent: jsii.String("zipFileContent"),
	},
	CodeContentType: jsii.String("codeContentType"),
}

Properties ​

codeContentIResolvable | CfnApplicationV2.CodeContentPropertycode_contenttyping.Union[IResolvable, CodeContentProperty]codeContentIResolvableCodeContentIResolvableCodeContentinterface{} required #
The location and type of the application code.
codeContentTypestringcode_content_typestrcodeContentTypeStringCodeContentTypestringCodeContentType*string required #
Specifies whether the code content is in text or zip format.