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
Ecr |
|
Ecr |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Ecr |
Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(Construct) | (experimental) Called when the Job is initialized to allow this object to bind. |
Constructors
EcrSource(IEcrProps)
EcrSource(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected EcrSource(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
EcrSource(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected EcrSource(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
Methods
Bind(Construct)
(experimental) Called when the Job is initialized to allow this object to bind.
public override ISourceConfig Bind(Construct scope)
Parameters
- scope Constructs.
Construct
Returns
Overrides
Remarks
Stability: Experimental