Skip to content
v2.278.0

CodeContentProperty Struct ​

Specifies either the application code, or the location of the application code, for a Managed Service for Apache Flink 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 codeContentProperty: kinesisanalytics.CfnApplicationV2.CodeContentProperty = {
  s3ContentLocation: {
    bucketArn: 'bucketArn',
    fileKey: 'fileKey',

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

code_content_property = 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"
)
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.*;

CodeContentProperty codeContentProperty = CodeContentProperty.builder()
        .s3ContentLocation(S3ContentLocationProperty.builder()
                .bucketArn("bucketArn")
                .fileKey("fileKey")

                // the properties below are optional
                .objectVersion("objectVersion")
                .build())
        .textContent("textContent")
        .zipFileContent("zipFileContent")
        .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 codeContentProperty = new CodeContentProperty {
    S3ContentLocation = new S3ContentLocationProperty {
        BucketArn = "bucketArn",
        FileKey = "fileKey",

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

codeContentProperty := &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"),
}

Properties ​

s3ContentLocationoptionalIResolvable | CfnApplicationV2.S3ContentLocationPropertys3_content_locationoptionaltyping.Union[IResolvable, S3ContentLocationProperty]s3ContentLocationoptionalIResolvableS3ContentLocationoptionalIResolvableS3ContentLocationoptionalinterface{} #
Information about the Amazon S3 bucket that contains the application code.
textContentoptionalstringtext_contentoptionalstrtextContentoptionalStringTextContentoptionalstringTextContentoptional*string #
The text-format code for a Managed Service for Apache Flink application.
zipFileContentoptionalstringzip_file_contentoptionalstrzipFileContentoptionalStringZipFileContentoptionalstringZipFileContentoptional*string #
The zip-format code for a Managed Service for Apache Flink application.