@aws-cdk_cloud-assembly-schema.DockerImageAsset

interface DockerImageAsset

LanguageType name
.NETAmazon.CDK.CloudAssembly.Schema.DockerImageAsset
Javasoftware.amazon.awscdk.cloudassembly.schema.DockerImageAsset
Pythonaws_cdk.cloud_assembly_schema.DockerImageAsset
TypeScript (source)@aws-cdk/cloud-assembly-schema » DockerImageAsset

A file asset.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cloud_assembly_schema from '@aws-cdk/cloud-assembly-schema';
const dockerImageAsset: cloud_assembly_schema.DockerImageAsset = {
  destinations: {
    destinationsKey: {
      imageTag: 'imageTag',
      repositoryName: 'repositoryName',

      // the properties below are optional
      assumeRoleArn: 'assumeRoleArn',
      assumeRoleExternalId: 'assumeRoleExternalId',
      region: 'region',
    },
  },
  source: {
    cacheFrom: [{
      type: 'type',

      // the properties below are optional
      params: {
        paramsKey: 'params',
      },
    }],
    cacheTo: {
      type: 'type',

      // the properties below are optional
      params: {
        paramsKey: 'params',
      },
    },
    directory: 'directory',
    dockerBuildArgs: {
      dockerBuildArgsKey: 'dockerBuildArgs',
    },
    dockerBuildSecrets: {
      dockerBuildSecretsKey: 'dockerBuildSecrets',
    },
    dockerBuildTarget: 'dockerBuildTarget',
    dockerFile: 'dockerFile',
    dockerOutputs: ['dockerOutputs'],
    executable: ['executable'],
    networkMode: 'networkMode',
    platform: 'platform',
  },
};

Properties

NameTypeDescription
destinations{ [string]: DockerImageDestination }Destinations for this file asset.
sourceDockerImageSourceSource description for file assets.

destinations

Type: { [string]: DockerImageDestination }

Destinations for this file asset.


source

Type: DockerImageSource

Source description for file assets.