EcrPublicProps

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

Bases: object

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

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

  • image_identifier (str) – (experimental) The ECR Public image URI.

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

ecr_public_props = apprunner.EcrPublicProps(
    image_identifier="imageIdentifier",

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

Attributes

image_configuration

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

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 ECR Public image URI.

Stability

experimental

Return type

str