# ApplicationCodeConfigurationProperty

Describes code configuration for an 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_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:

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

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

C# / .NET:

```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"
};
```

Golang:

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

- `codeContent`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplication.CodeContentProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesisanalyticsv2.CfnApplication.CodeContentProperty.html) (required) — The location and type of the application code.

- `codeContentType`: string (required) — Specifies whether the code content is in text or zip format.
