Skip to content
v2.278.0

S3LocationProperty Struct ​

S3Location is a property of the CodeDeploy DeploymentGroup Revision property that specifies the location of an application revision that is stored in Amazon Simple Storage Service ( Amazon S3 ).

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codedeploy as codedeploy } from 'aws-cdk-lib';
const s3LocationProperty: codedeploy.CfnDeploymentGroup.S3LocationProperty = {
  bucket: 'bucket',
  key: 'key',

  // the properties below are optional
  bundleType: 'bundleType',
  eTag: 'eTag',
  version: 'version',
};
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_codedeploy as codedeploy

s3_location_property = codedeploy.CfnDeploymentGroup.S3LocationProperty(
    bucket="bucket",
    key="key",

    # the properties below are optional
    bundle_type="bundleType",
    e_tag="eTag",
    version="version"
)
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.codedeploy.*;

S3LocationProperty s3LocationProperty = S3LocationProperty.builder()
        .bucket("bucket")
        .key("key")

        // the properties below are optional
        .bundleType("bundleType")
        .eTag("eTag")
        .version("version")
        .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.CodeDeploy;

var s3LocationProperty = new S3LocationProperty {
    Bucket = "bucket",
    Key = "key",

    // the properties below are optional
    BundleType = "bundleType",
    ETag = "eTag",
    Version = "version"
};
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"

s3LocationProperty := &S3LocationProperty{
	Bucket: jsii.String("bucket"),
	Key: jsii.String("key"),

	// the properties below are optional
	BundleType: jsii.String("bundleType"),
	ETag: jsii.String("eTag"),
	Version: jsii.String("version"),
}

Properties ​

bucketstringbucketstrbucketStringBucketstringBucket*string required #
The name of the Amazon S3 bucket where the application revision is stored.
bundleTypeoptionalstringbundle_typeoptionalstrbundleTypeoptionalStringBundleTypeoptionalstringBundleTypeoptional*string #
The file type of the application revision. Must be one of the following:.
  • JSON
  • tar: A tar archive file.
  • tgz: A compressed tar archive file.
  • YAML
  • zip: A zip archive file.
eTagoptionalstringe_tagoptionalstreTagoptionalStringETagoptionalstringETagoptional*string #
The ETag of the Amazon S3 object that represents the bundled artifacts for the application revision.

If the ETag is not specified as an input parameter, ETag validation of the object is skipped.

keystringkeystrkeyStringKeystringKey*string required #
The name of the Amazon S3 object that represents the bundled artifacts for the application revision.
versionoptionalstringversionoptionalstrversionoptionalStringVersionoptionalstringVersionoptional*string #
A specific version of the Amazon S3 object that represents the bundled artifacts for the application revision.

If the version is not specified, the system uses the most recent version by default.