CfnApplicationVersionProps Struct
Properties for defining a CfnApplicationVersion.
| 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_elasticbeanstalk as elasticbeanstalk } from 'aws-cdk-lib';
const cfnApplicationVersionProps: elasticbeanstalk.CfnApplicationVersionProps = {
applicationName: 'applicationName',
// the properties below are optional
buildConfiguration: {
codeBuildServiceRole: 'codeBuildServiceRole',
image: 'image',
// the properties below are optional
artifactName: 'artifactName',
computeType: 'computeType',
timeoutInMinutes: 123,
},
description: 'description',
imageConfiguration: {
buildProperty: {
codeBuildServiceRole: 'codeBuildServiceRole',
type: 'type',
// the properties below are optional
architecture: 'architecture',
buildpack: 'buildpack',
computeType: 'computeType',
dockerfileLocation: 'dockerfileLocation',
timeoutInMinutes: 123,
},
source: {
uri: 'uri',
},
},
process: false,
sourceBundle: {
s3Bucket: 's3Bucket',
s3Key: 's3Key',
},
};
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_elasticbeanstalk as elasticbeanstalk
cfn_application_version_props = elasticbeanstalk.CfnApplicationVersionProps(
application_name="applicationName",
# the properties below are optional
build_configuration=elasticbeanstalk.CfnApplicationVersion.BuildConfigurationProperty(
code_build_service_role="codeBuildServiceRole",
image="image",
# the properties below are optional
artifact_name="artifactName",
compute_type="computeType",
timeout_in_minutes=123
),
description="description",
image_configuration=elasticbeanstalk.CfnApplicationVersion.ImageConfigurationProperty(
build_property=elasticbeanstalk.CfnApplicationVersion.ImageBuildConfigurationProperty(
code_build_service_role="codeBuildServiceRole",
type="type",
# the properties below are optional
architecture="architecture",
buildpack="buildpack",
compute_type="computeType",
dockerfile_location="dockerfileLocation",
timeout_in_minutes=123
),
source=elasticbeanstalk.CfnApplicationVersion.ImageSourceProperty(
uri="uri"
)
),
process=False,
source_bundle=elasticbeanstalk.CfnApplicationVersion.SourceBundleProperty(
s3_bucket="s3Bucket",
s3_key="s3Key"
)
)
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.elasticbeanstalk.*;
CfnApplicationVersionProps cfnApplicationVersionProps = CfnApplicationVersionProps.builder()
.applicationName("applicationName")
// the properties below are optional
.buildConfiguration(BuildConfigurationProperty.builder()
.codeBuildServiceRole("codeBuildServiceRole")
.image("image")
// the properties below are optional
.artifactName("artifactName")
.computeType("computeType")
.timeoutInMinutes(123)
.build())
.description("description")
.imageConfiguration(ImageConfigurationProperty.builder()
.buildProperty(ImageBuildConfigurationProperty.builder()
.codeBuildServiceRole("codeBuildServiceRole")
.type("type")
// the properties below are optional
.architecture("architecture")
.buildpack("buildpack")
.computeType("computeType")
.dockerfileLocation("dockerfileLocation")
.timeoutInMinutes(123)
.build())
.source(ImageSourceProperty.builder()
.uri("uri")
.build())
.build())
.process(false)
.sourceBundle(SourceBundleProperty.builder()
.s3Bucket("s3Bucket")
.s3Key("s3Key")
.build())
.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.ElasticBeanstalk;
var cfnApplicationVersionProps = new CfnApplicationVersionProps {
ApplicationName = "applicationName",
// the properties below are optional
BuildConfiguration = new BuildConfigurationProperty {
CodeBuildServiceRole = "codeBuildServiceRole",
Image = "image",
// the properties below are optional
ArtifactName = "artifactName",
ComputeType = "computeType",
TimeoutInMinutes = 123
},
Description = "description",
ImageConfiguration = new ImageConfigurationProperty {
BuildProperty = new ImageBuildConfigurationProperty {
CodeBuildServiceRole = "codeBuildServiceRole",
Type = "type",
// the properties below are optional
Architecture = "architecture",
Buildpack = "buildpack",
ComputeType = "computeType",
DockerfileLocation = "dockerfileLocation",
TimeoutInMinutes = 123
},
Source = new ImageSourceProperty {
Uri = "uri"
}
},
Process = false,
SourceBundle = new SourceBundleProperty {
S3Bucket = "s3Bucket",
S3Key = "s3Key"
}
};
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"
cfnApplicationVersionProps := &CfnApplicationVersionProps{
ApplicationName: jsii.String("applicationName"),
// the properties below are optional
BuildConfiguration: &BuildConfigurationProperty{
CodeBuildServiceRole: jsii.String("codeBuildServiceRole"),
Image: jsii.String("image"),
// the properties below are optional
ArtifactName: jsii.String("artifactName"),
ComputeType: jsii.String("computeType"),
TimeoutInMinutes: jsii.Number(123),
},
Description: jsii.String("description"),
ImageConfiguration: &ImageConfigurationProperty{
BuildProperty: &ImageBuildConfigurationProperty{
CodeBuildServiceRole: jsii.String("codeBuildServiceRole"),
Type: jsii.String("type"),
// the properties below are optional
Architecture: jsii.String("architecture"),
Buildpack: jsii.String("buildpack"),
ComputeType: jsii.String("computeType"),
DockerfileLocation: jsii.String("dockerfileLocation"),
TimeoutInMinutes: jsii.Number(123),
},
Source: &ImageSourceProperty{
Uri: jsii.String("uri"),
},
},
Process: jsii.Boolean(false),
SourceBundle: &SourceBundleProperty{
S3Bucket: jsii.String("s3Bucket"),
S3Key: jsii.String("s3Key"),
},
}
Properties
applicationNamestring | IApplicationRefapplication_nametyping.Union[str, IApplicationRef]applicationNameStringApplicationNamestringApplicationNameinterface{} required #The name of the Elastic Beanstalk application that is associated with this application version.
buildConfigurationoptionalIResolvable | CfnApplicationVersion.build_configurationoptionaltyping.Union[IResolvable, BuildConfigurationProperty]buildConfigurationoptionalIResolvableBuildConfigurationoptionalIResolvableBuildConfigurationoptionalinterface{} #descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #A description of this application version.
imageConfigurationoptionalIResolvable | CfnApplicationVersion.image_configurationoptionaltyping.Union[IResolvable, ImageConfigurationProperty]imageConfigurationoptionalIResolvableImageConfigurationoptionalIResolvableImageConfigurationoptionalinterface{} #processoptionalboolean | IResolvableprocessoptionaltyping.Union[bool, IResolvable]processoptionalBooleanProcessoptionalboolProcessoptionalinterface{} #Pre-process and validate the environment manifest (`env.yaml`) and configuration files in the source bundle. Leave unset for the service default.
sourceBundleoptionalIResolvable | CfnApplicationVersion.source_bundleoptionaltyping.Union[IResolvable, SourceBundleProperty]sourceBundleoptionalIResolvableSourceBundleoptionalIResolvableSourceBundleoptionalinterface{} #The Amazon S3 bucket and key that identify the location of the source bundle for this version.
The Amazon S3 bucket must be in the same region as the environment.