Class DockerImageAsset
A file asset.
Inheritance
System.Object
DockerImageAsset
Implements
Namespace: Amazon.CDK.CloudAssembly.Schema
Assembly: Amazon.CDK.CloudAssembly.Schema.dll
Syntax (csharp)
public class DockerImageAsset : Object, IDockerImageAsset
Syntax (vb)
Public Class DockerImageAsset
Inherits Object
Implements IDockerImageAsset
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.CloudAssembly.Schema;
var dockerImageAsset = new DockerImageAsset {
Destinations = new Dictionary<string, DockerImageDestination> {
{ "destinationsKey", new DockerImageDestination {
ImageTag = "imageTag",
RepositoryName = "repositoryName",
// the properties below are optional
AssumeRoleArn = "assumeRoleArn",
AssumeRoleExternalId = "assumeRoleExternalId",
Region = "region"
} }
},
Source = new DockerImageSource {
CacheDisabled = false,
CacheFrom = new [] { new DockerCacheOption {
Type = "type",
// the properties below are optional
Params = new Dictionary<string, string> {
{ "paramsKey", "params" }
}
} },
CacheTo = new DockerCacheOption {
Type = "type",
// the properties below are optional
Params = new Dictionary<string, string> {
{ "paramsKey", "params" }
}
},
Directory = "directory",
DockerBuildArgs = new Dictionary<string, string> {
{ "dockerBuildArgsKey", "dockerBuildArgs" }
},
DockerBuildSecrets = new Dictionary<string, string> {
{ "dockerBuildSecretsKey", "dockerBuildSecrets" }
},
DockerBuildSsh = "dockerBuildSsh",
DockerBuildTarget = "dockerBuildTarget",
DockerFile = "dockerFile",
DockerOutputs = new [] { "dockerOutputs" },
Executable = new [] { "executable" },
NetworkMode = "networkMode",
Platform = "platform"
}
};
Synopsis
Constructors
DockerImageAsset() |
Properties
Destinations | Destinations for this file asset. |
Source | Source description for file assets. |
Constructors
DockerImageAsset()
public DockerImageAsset()
Properties
Destinations
Destinations for this file asset.
public IDictionary<string, IDockerImageDestination> Destinations { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, IDockerImageDestination>
Source
Source description for file assets.
public IDockerImageSource Source { get; set; }
Property Value