Class EcrSource
(experimental) Represents the service source from ECR.
Inherited Members
Namespace: Amazon.CDK.AWS.AppRunner.Alpha
Assembly: Amazon.CDK.AWS.AppRunner.Alpha.dll
Syntax (csharp)
public class EcrSource : Source
Syntax (vb)
Public Class EcrSource Inherits Source
Remarks
Stability: Experimental
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppRunner.Alpha;
using Amazon.CDK.AWS.ECR;
Repository repository;
Secret secret;
var ecrSource = new EcrSource(new EcrProps {
Repository = repository,
// the properties below are optional
ImageConfiguration = new ImageConfiguration {
Environment = new Dictionary<string, string> {
{ "environmentKey", "environment" }
},
EnvironmentSecrets = new Dictionary<string, Secret> {
{ "environmentSecretsKey", secret }
},
EnvironmentVariables = new Dictionary<string, string> {
{ "environmentVariablesKey", "environmentVariables" }
},
Port = 123,
StartCommand = "startCommand"
},
Tag = "tag",
TagOrDigest = "tagOrDigest"
});
Synopsis
Constructors
EcrSource(IEcrProps) | (experimental) Represents the service source from ECR. |
Methods
Bind(Construct) | (experimental) Called when the Job is initialized to allow this object to bind. |
Constructors
EcrSource(IEcrProps)
(experimental) Represents the service source from ECR.
public EcrSource(IEcrProps props)
Parameters
- props IEcrProps
Remarks
Stability: Experimental
Methods
Bind(Construct)
(experimental) Called when the Job is initialized to allow this object to bind.
public override ISourceConfig Bind(Construct scope)
Parameters
- scope Construct
Returns
Overrides
Remarks
Stability: Experimental