ImageRepository

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

Bases: object

(experimental) Describes a source image repository.

Parameters:
  • 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.

  • image_configuration (Union[ImageConfiguration, Dict[str, Any], None]) – (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-imagerepository.html

Stability:

experimental

ExampleMetadata:

fixture=_generated

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_alpha as apprunner_alpha

# secret: apprunner_alpha.Secret

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

    # the properties below are optional
    image_configuration=apprunner_alpha.ImageConfiguration(
        environment={
            "environment_key": "environment"
        },
        environment_secrets={
            "environment_secrets_key": secret
        },
        environment_variables={
            "environment_variables_key": "environmentVariables"
        },
        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

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

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