Skip to content
v2.277.0

RevisionLocationProperty Struct ​

RevisionLocation is a property that defines the location of the CodeDeploy application revision to deploy.

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 revisionLocationProperty: codedeploy.CfnDeploymentGroup.RevisionLocationProperty = {
  gitHubLocation: {
    commitId: 'commitId',
    repository: 'repository',
  },
  revisionType: 'revisionType',
  s3Location: {
    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

revision_location_property = codedeploy.CfnDeploymentGroup.RevisionLocationProperty(
    git_hub_location=codedeploy.CfnDeploymentGroup.GitHubLocationProperty(
        commit_id="commitId",
        repository="repository"
    ),
    revision_type="revisionType",
    s3_location=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.*;

RevisionLocationProperty revisionLocationProperty = RevisionLocationProperty.builder()
        .gitHubLocation(GitHubLocationProperty.builder()
                .commitId("commitId")
                .repository("repository")
                .build())
        .revisionType("revisionType")
        .s3Location(S3LocationProperty.builder()
                .bucket("bucket")
                .key("key")

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

var revisionLocationProperty = new RevisionLocationProperty {
    GitHubLocation = new GitHubLocationProperty {
        CommitId = "commitId",
        Repository = "repository"
    },
    RevisionType = "revisionType",
    S3Location = 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"

revisionLocationProperty := &RevisionLocationProperty{
	GitHubLocation: &GitHubLocationProperty{
		CommitId: jsii.String("commitId"),
		Repository: jsii.String("repository"),
	},
	RevisionType: jsii.String("revisionType"),
	S3Location: &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 ​

gitHubLocationoptionalIResolvable | CfnDeploymentGroup.GitHubLocationPropertygit_hub_locationoptionaltyping.Union[IResolvable, GitHubLocationProperty]gitHubLocationoptionalIResolvableGitHubLocationoptionalIResolvableGitHubLocationoptionalinterface{} #
Information about the location of application artifacts stored in GitHub.
revisionTypeoptionalstringrevision_typeoptionalstrrevisionTypeoptionalStringRevisionTypeoptionalstringRevisionTypeoptional*string #
The type of application revision:.
notes
  • S3: An application revision stored in Amazon S3.
  • GitHub: An application revision stored in GitHub (EC2/On-premises deployments only).
  • String: A YAML-formatted or JSON-formatted string ( AWS Lambda deployments only).
  • AppSpecContent: An AppSpecContent object that contains the contents of an AppSpec file for an AWS Lambda or Amazon ECS deployment. The content is formatted as JSON or YAML stored as a RawString.
s3LocationoptionalIResolvable | CfnDeploymentGroup.S3LocationPropertys3_locationoptionaltyping.Union[IResolvable, S3LocationProperty]s3LocationoptionalIResolvableS3LocationoptionalIResolvableS3Locationoptionalinterface{} #
Information about the location of a revision stored in Amazon S3.