EcrProps

class aws_cdk.aws_apprunner.EcrProps(*, image_configuration=None, repository, tag=None)

Bases: object

(experimental) Properties of the image repository for Source.fromEcr().

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

  • repository (IRepository) – (experimental) Represents the ECR repository.

  • tag (Optional[str]) – (experimental) Image tag. Default: - ‘latest’

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
import aws_cdk.aws_ecr as ecr

# repository is of type Repository

ecr_props = apprunner.EcrProps(
    repository=repository,

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

Attributes

image_configuration

(experimental) The image configuration for the image from ECR.

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]

repository

(experimental) Represents the ECR repository.

Stability

experimental

Return type

IRepository

tag

(experimental) Image tag.

Default
  • ‘latest’

Stability

experimental

Return type

Optional[str]