Class AssetManifest
Definitions for the asset manifest.
Inheritance
System.Object
AssetManifest
Implements
Namespace: Amazon.CDK.CloudAssembly.Schema
Assembly: Amazon.CDK.CloudAssembly.Schema.dll
Syntax (csharp)
public class AssetManifest : Object, IAssetManifest
Syntax (vb)
Public Class AssetManifest
Inherits Object
Implements IAssetManifest
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 assetManifest = new AssetManifest {
Version = "version",
// the properties below are optional
DockerImages = new Dictionary<string, DockerImageAsset> {
{ "dockerImagesKey", 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"
}
} }
},
Files = new Dictionary<string, FileAsset> {
{ "filesKey", new FileAsset {
Destinations = new Dictionary<string, FileDestination> {
{ "destinationsKey", new FileDestination {
BucketName = "bucketName",
ObjectKey = "objectKey",
// the properties below are optional
AssumeRoleArn = "assumeRoleArn",
AssumeRoleExternalId = "assumeRoleExternalId",
Region = "region"
} }
},
Source = new FileSource {
Executable = new [] { "executable" },
Packaging = FileAssetPackaging.FILE,
Path = "path"
}
} }
}
};
Synopsis
Constructors
AssetManifest() |
Properties
DockerImages | The Docker image assets in this manifest. |
Files | The file assets in this manifest. |
Version | Version of the manifest. |
Constructors
AssetManifest()
public AssetManifest()
Properties
DockerImages
The Docker image assets in this manifest.
public IDictionary<string, IDockerImageAsset> DockerImages { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, IDockerImageAsset>
Remarks
Default: - No Docker images
Files
The file assets in this manifest.
public IDictionary<string, IFileAsset> Files { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, IFileAsset>
Remarks
Default: - No files
Version
Version of the manifest.
public string Version { get; set; }
Property Value
System.String