@aws-cdk_aws-apprunner-alpha.AssetSource

class AssetSource 🔹

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

Extends Source

Represents the source from local assets.

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';
import { aws_ecr_assets as ecr_assets } from 'aws-cdk-lib';

declare const dockerImageAsset: ecr_assets.DockerImageAsset;
declare const secret: apprunner_alpha.Secret;
const assetSource = new apprunner_alpha.AssetSource({
  asset: dockerImageAsset,

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

Initializer

new AssetSource(props: AssetProps)

Parameters

  • props AssetProps

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.