Skip to content
v2.273.0

ImageRepositoryProperty Struct ​

Describes a source image repository.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apprunner as apprunner } from 'aws-cdk-lib';
const imageRepositoryProperty: apprunner.CfnService.ImageRepositoryProperty = {
  imageIdentifier: 'imageIdentifier',
  imageRepositoryType: 'imageRepositoryType',

  // the properties below are optional
  imageConfiguration: {
    port: 'port',
    runtimeEnvironmentSecrets: [{
      name: 'name',
      value: 'value',
    }],
    runtimeEnvironmentVariables: [{
      name: 'name',
      value: 'value',
    }],
    startCommand: 'startCommand',
  },
};

Properties ​

imageConfigurationIResolvable | CfnService.ImageConfigurationPropertyimage_configurationtyping.Union[IResolvable, ImageConfigurationProperty]imageConfigurationIResolvableImageConfigurationIResolvableImageConfigurationinterface{}#
Configuration for running the identified image.
imageIdentifierstringimage_identifierstrimageIdentifierStringImageIdentifierstringImageIdentifier*stringrequired#
The identifier of an image.
notes

For an image in Amazon Elastic Container Registry (Amazon ECR), this is an image name. For the image name format, see Pulling an image in the Amazon ECR User Guide .

imageRepositoryTypestringimage_repository_typestrimageRepositoryTypeStringImageRepositoryTypestringImageRepositoryType*stringrequired#
The type of the image repository.

This reflects the repository provider and whether the repository is private or public.