Class CfnContainerRecipeProps
Properties for defining a CfnContainerRecipe
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ImageBuilder
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnContainerRecipeProps : Object, ICfnContainerRecipeProps
Syntax (vb)
Public Class CfnContainerRecipeProps
Inherits Object
Implements ICfnContainerRecipeProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ImageBuilder;
var cfnContainerRecipeProps = new CfnContainerRecipeProps {
Components = new [] { new ComponentConfigurationProperty {
ComponentArn = "componentArn",
Parameters = new [] { new ComponentParameterProperty {
Name = "name",
Value = new [] { "value" }
} }
} },
ContainerType = "containerType",
Name = "name",
ParentImage = "parentImage",
TargetRepository = new TargetContainerRepositoryProperty {
RepositoryName = "repositoryName",
Service = "service"
},
Version = "version",
// the properties below are optional
Description = "description",
DockerfileTemplateData = "dockerfileTemplateData",
DockerfileTemplateUri = "dockerfileTemplateUri",
ImageOsVersionOverride = "imageOsVersionOverride",
InstanceConfiguration = new InstanceConfigurationProperty {
BlockDeviceMappings = new [] { new InstanceBlockDeviceMappingProperty {
DeviceName = "deviceName",
Ebs = new EbsInstanceBlockDeviceSpecificationProperty {
DeleteOnTermination = false,
Encrypted = false,
Iops = 123,
KmsKeyId = "kmsKeyId",
SnapshotId = "snapshotId",
Throughput = 123,
VolumeSize = 123,
VolumeType = "volumeType"
},
NoDevice = "noDevice",
VirtualName = "virtualName"
} },
Image = "image"
},
KmsKeyId = "kmsKeyId",
PlatformOverride = "platformOverride",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
},
WorkingDirectory = "workingDirectory"
};
Synopsis
Constructors
CfnContainerRecipeProps() |
Properties
Components | Build and test components that are included in the container recipe. |
ContainerType | Specifies the type of container, such as Docker. |
Description | The description of the container recipe. |
DockerfileTemplateData | Dockerfiles are text documents that are used to build Docker containers, and ensure that they contain all of the elements required by the application running inside. |
DockerfileTemplateUri | The S3 URI for the Dockerfile that will be used to build your container image. |
ImageOsVersionOverride | Specifies the operating system version for the base image. |
InstanceConfiguration | A group of options that can be used to configure an instance for building and testing container images. |
KmsKeyId | Identifies which KMS key is used to encrypt the container image for distribution to the target Region. |
Name | The name of the container recipe. |
ParentImage | The base image for the container recipe. |
PlatformOverride | Specifies the operating system platform when you use a custom base image. |
Tags | Tags that are attached to the container recipe. |
TargetRepository | The destination repository for the container image. |
Version | The semantic version of the container recipe. |
WorkingDirectory | The working directory for use during build and test workflows. |
Constructors
CfnContainerRecipeProps()
public CfnContainerRecipeProps()
Properties
Components
Build and test components that are included in the container recipe.
public object Components { get; set; }
Property Value
System.Object
Remarks
Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination.
ContainerType
Specifies the type of container, such as Docker.
public string ContainerType { get; set; }
Property Value
System.String
Remarks
Description
The description of the container recipe.
public string Description { get; set; }
Property Value
System.String
Remarks
DockerfileTemplateData
Dockerfiles are text documents that are used to build Docker containers, and ensure that they contain all of the elements required by the application running inside.
public string DockerfileTemplateData { get; set; }
Property Value
System.String
Remarks
The template data consists of contextual variables where Image Builder places build information or scripts, based on your container image recipe.
DockerfileTemplateUri
The S3 URI for the Dockerfile that will be used to build your container image.
public string DockerfileTemplateUri { get; set; }
Property Value
System.String
Remarks
ImageOsVersionOverride
Specifies the operating system version for the base image.
public string ImageOsVersionOverride { get; set; }
Property Value
System.String
Remarks
InstanceConfiguration
A group of options that can be used to configure an instance for building and testing container images.
public object InstanceConfiguration { get; set; }
Property Value
System.Object
Remarks
KmsKeyId
Identifies which KMS key is used to encrypt the container image for distribution to the target Region.
public string KmsKeyId { get; set; }
Property Value
System.String
Remarks
Name
The name of the container recipe.
public string Name { get; set; }
Property Value
System.String
Remarks
ParentImage
The base image for the container recipe.
public string ParentImage { get; set; }
Property Value
System.String
Remarks
PlatformOverride
Specifies the operating system platform when you use a custom base image.
public string PlatformOverride { get; set; }
Property Value
System.String
Remarks
Tags
Tags that are attached to the container recipe.
public IDictionary<string, string> Tags { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Remarks
TargetRepository
The destination repository for the container image.
public object TargetRepository { get; set; }
Property Value
System.Object
Remarks
Version
The semantic version of the container recipe.
public string Version { get; set; }
Property Value
System.String
Remarks
The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.
Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node.
Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.
Filtering: With semantic versioning, you have the flexibility to use wildcards (x) to specify the most recent versions or nodes when selecting the base image or components for your recipe. When you use a wildcard in any node, all nodes to the right of the first wildcard must also be wildcards.
WorkingDirectory
The working directory for use during build and test workflows.
public string WorkingDirectory { get; set; }
Property Value
System.String