CodeContentProperty Struct
Specifies either the application code, or the location of the application code, for a Managed Service for Apache Flink application.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kinesisanalyticsv2 as kinesisanalyticsv2 } from 'aws-cdk-lib';
const codeContentProperty: kinesisanalyticsv2.CfnApplication.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_kinesisanalyticsv2 as kinesisanalyticsv2
code_content_property = kinesisanalyticsv2.CfnApplication.CodeContentProperty(
s3_content_location=kinesisanalyticsv2.CfnApplication.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.kinesisanalyticsv2.*;
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.KinesisAnalyticsV2;
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 | CfnApplication.s3_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.