ImageRepository

class aws_cdk.aws_apprunner.ImageRepository(*, image_configuration=None, image_identifier, image_repository_type)

Bases: object

(experimental) Describes a source image repository.

Parameters
  • image_configuration (Optional[ImageConfiguration]) – (experimental) Configuration for running the identified image. Default: - no image configuration will be passed. The default port will be 8080.

  • image_identifier (str) – (experimental) The identifier of the image. For ECR_PUBLIC imageRepositoryType, the identifier domain should always be public.ecr.aws. For ECR, the pattern should be ([0-9]{12}.dkr.ecr.[a-z\-]+-[0-9]{1}.amazonaws.com\/.*).

  • image_repository_type (ImageRepositoryType) – (experimental) The type of the image repository. This reflects the repository provider and whether the repository is private or public.

See

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-imagerepository.html

Stability

experimental

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_apprunner as apprunner

image_repository = apprunner.ImageRepository(
    image_identifier="imageIdentifier",
    image_repository_type=apprunner.ImageRepositoryType.ECR_PUBLIC,

    # the properties below are optional
    image_configuration=apprunner.ImageConfiguration(
        environment={
            "environment_key": "environment"
        },
        port=123,
        start_command="startCommand"
    )
)

Attributes

image_configuration

(experimental) Configuration for running the identified image.

Default
  • no image configuration will be passed. The default port will be 8080.

See

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-imageconfiguration.html#cfn-apprunner-service-imageconfiguration-port

Stability

experimental

Return type

Optional[ImageConfiguration]

image_identifier

(experimental) The identifier of the image.

For ECR_PUBLIC imageRepositoryType, the identifier domain should always be public.ecr.aws. For ECR, the pattern should be ([0-9]{12}.dkr.ecr.[a-z\-]+-[0-9]{1}.amazonaws.com\/.*).

See

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-imagerepository.html for more details.

Stability

experimental

Return type

str

image_repository_type

(experimental) The type of the image repository.

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

Stability

experimental

Return type

ImageRepositoryType