@aws-cdk_aws-apprunner-alpha.EcrPublicSource

class EcrPublicSource 🔹

LanguageType name
.NETAmazon.CDK.AWS.AppRunner.Alpha.EcrPublicSource
Gogithub.com/aws/aws-cdk-go/awscdkapprunneralpha/v2#EcrPublicSource
Javasoftware.amazon.awscdk.services.apprunner.alpha.EcrPublicSource
Pythonaws_cdk.aws_apprunner_alpha.EcrPublicSource
TypeScript (source)@aws-cdk/aws-apprunner-alpha » EcrPublicSource

Extends Source

Represents the service source from ECR Public.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as apprunner_alpha from '@aws-cdk/aws-apprunner-alpha';

declare const secret: apprunner_alpha.Secret;
const ecrPublicSource = new apprunner_alpha.EcrPublicSource({
  imageIdentifier: 'imageIdentifier',

  // the properties below are optional
  imageConfiguration: {
    environment: {
      environmentKey: 'environment',
    },
    environmentSecrets: {
      environmentSecretsKey: secret,
    },
    environmentVariables: {
      environmentVariablesKey: 'environmentVariables',
    },
    port: 123,
    startCommand: 'startCommand',
  },
});

Initializer

new EcrPublicSource(props: EcrPublicProps)

Parameters

  • props EcrPublicProps

Methods

NameDescription
bind(_scope)🔹Called when the Job is initialized to allow this object to bind.

bind(_scope)🔹

public bind(_scope: Construct): SourceConfig

Parameters

  • _scope Construct

Returns

  • SourceConfig

Called when the Job is initialized to allow this object to bind.