# CodeContentProperty

Struct · External

Specifies either the application code, or the location of the application code, for a Managed Service for Apache Flink application.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C#:

```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:

```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

- `s3ContentLocation`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplicationV2.S3ContentLocationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesisanalytics.CfnApplicationV2.S3ContentLocationProperty.html) — Information about the Amazon S3 bucket that contains the application code.

- `textContent`: string — The text-format code for a Managed Service for Apache Flink application.

- `zipFileContent`: string — The zip-format code for a Managed Service for Apache Flink application.
