aws-cdk-lib.aws_apprunner.CfnService.ImageRepositoryProperty

interface ImageRepositoryProperty

LanguageType name
.NETAmazon.CDK.AWS.AppRunner.CfnService.ImageRepositoryProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsapprunner#CfnService_ImageRepositoryProperty
Javasoftware.amazon.awscdk.services.apprunner.CfnService.ImageRepositoryProperty
Pythonaws_cdk.aws_apprunner.CfnService.ImageRepositoryProperty
TypeScript aws-cdk-lib » aws_apprunner » CfnService » ImageRepositoryProperty

Describes a source image repository.

Example

// 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

NameTypeDescription
imageIdentifierstringThe identifier of an image.
imageRepositoryTypestringThe type of the image repository.
imageConfiguration?IResolvable | ImageConfigurationPropertyConfiguration for running the identified image.

imageIdentifier

Type: string

The identifier of an image.

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 .


imageRepositoryType

Type: string

The type of the image repository.

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


imageConfiguration?

Type: IResolvable | ImageConfigurationProperty (optional)

Configuration for running the identified image.