ApplicationCodeConfigurationProperty Struct
Describes code configuration for an 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 applicationCodeConfigurationProperty: kinesisanalyticsv2.CfnApplication.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_kinesisanalyticsv2 as kinesisanalyticsv2
application_code_configuration_property = kinesisanalyticsv2.CfnApplication.ApplicationCodeConfigurationProperty(
code_content=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"
),
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.kinesisanalyticsv2.*;
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.KinesisAnalyticsV2;
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 | CfnApplication.code_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.