Experimental
@aws-cdk/aws-imagebuilder-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
DockerfileTemplateConfig Struct
The rendered Dockerfile value, for use in CloudFormation.
- For inline dockerfiles, dockerfileTemplateData is the Dockerfile template text
- For S3-backed dockerfiles, dockerfileTemplateUri is the S3 URL
| Stability | Experimental |
|---|---|
| Source | lib/container-recipe.ts |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as imagebuilder_alpha from '@aws-cdk/aws-imagebuilder-alpha';
const dockerfileTemplateConfig: imagebuilder_alpha.DockerfileTemplateConfig = {
dockerfileTemplateData: 'dockerfileTemplateData',
dockerfileTemplateUri: 'dockerfileTemplateUri',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_imagebuilder_alpha as imagebuilder_alpha
dockerfile_template_config = imagebuilder_alpha.DockerfileTemplateConfig(
dockerfile_template_data="dockerfileTemplateData",
dockerfile_template_uri="dockerfileTemplateUri"
)
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.imagebuilder.alpha.*;
DockerfileTemplateConfig dockerfileTemplateConfig = DockerfileTemplateConfig.builder()
.dockerfileTemplateData("dockerfileTemplateData")
.dockerfileTemplateUri("dockerfileTemplateUri")
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.ImageBuilder.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ImageBuilder.Alpha;
var dockerfileTemplateConfig = new DockerfileTemplateConfig {
DockerfileTemplateData = "dockerfileTemplateData",
DockerfileTemplateUri = "dockerfileTemplateUri"
};
go
// Install: go get github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import imagebuilder_alpha "github.com/aws/aws-cdk-go/awsimagebuilderalpha"
dockerfileTemplateConfig := &DockerfileTemplateConfig{
DockerfileTemplateData: jsii.String("dockerfileTemplateData"),
DockerfileTemplateUri: jsii.String("dockerfileTemplateUri"),
}
Properties
dockerfileTemplateDataoptionalstringdockerfile_template_dataoptionalstrdockerfileTemplateDataoptionalStringDockerfileTemplateDataoptionalstringDockerfileTemplateDataoptional*string #The rendered Dockerfile data, for use in CloudFormation.
Default: none if dockerfileTemplateUri is set
dockerfileTemplateUrioptionalstringdockerfile_template_urioptionalstrdockerfileTemplateUrioptionalStringDockerfileTemplateUrioptionalstringDockerfileTemplateUrioptional*string #The rendered Dockerfile URI, for use in CloudFormation.
Default: none if dockerfileTemplateData is set