Class AssetSource
(experimental) Represents the source from local assets.
Inherited Members
Namespace: Amazon.CDK.AWS.AppRunner.Alpha
Assembly: Amazon.CDK.AWS.AppRunner.Alpha.dll
Syntax (csharp)
public class AssetSource : Source
Syntax (vb)
Public Class AssetSource
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.Assets;
DockerImageAsset dockerImageAsset;
Secret secret;
var assetSource = new AssetSource(new AssetProps {
Asset = dockerImageAsset,
// 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"
}
});
Synopsis
Constructors
AssetSource(IAssetProps) | |
AssetSource(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AssetSource(DeputyBase.DeputyProps) | 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
AssetSource(IAssetProps)
AssetSource(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AssetSource(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AssetSource(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AssetSource(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
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