Class AssetEnvironmentFile
Environment file from a local directory.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class AssetEnvironmentFile : EnvironmentFile
Syntax (vb)
Public Class AssetEnvironmentFile
Inherits EnvironmentFile
Remarks
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.Assets;
using Amazon.CDK.AWS.ECS;
using Amazon.CDK.AWS.IAM;
using Amazon.CDK;
DockerImage dockerImage;
IGrantable grantable;
ILocalBundling localBundling;
var assetEnvironmentFile = new AssetEnvironmentFile("path", new AssetOptions {
AssetHash = "assetHash",
AssetHashType = AssetHashType.SOURCE,
Bundling = new BundlingOptions {
Image = dockerImage,
// the properties below are optional
Command = new [] { "command" },
Entrypoint = new [] { "entrypoint" },
Environment = new Dictionary<string, string> {
{ "environmentKey", "environment" }
},
Local = localBundling,
OutputType = BundlingOutput.ARCHIVED,
SecurityOpt = "securityOpt",
User = "user",
Volumes = new [] { new DockerVolume {
ContainerPath = "containerPath",
HostPath = "hostPath",
// the properties below are optional
Consistency = DockerVolumeConsistency.CONSISTENT
} },
WorkingDirectory = "workingDirectory"
},
Exclude = new [] { "exclude" },
Follow = FollowMode.NEVER,
FollowSymlinks = SymlinkFollowMode.NEVER,
IgnoreMode = IgnoreMode.GLOB,
Readers = new [] { grantable },
SourceHash = "sourceHash"
});
Synopsis
Constructors
AssetEnvironmentFile(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AssetEnvironmentFile(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
AssetEnvironmentFile(String, IAssetOptions) |
Properties
Path | The path to the asset file or directory. |
Methods
Bind(Construct) | Called when the container is initialized to allow this object to bind to the stack. |
Constructors
AssetEnvironmentFile(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AssetEnvironmentFile(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AssetEnvironmentFile(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AssetEnvironmentFile(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
AssetEnvironmentFile(String, IAssetOptions)
public AssetEnvironmentFile(string path, IAssetOptions options = null)
Parameters
- path System.String
The path to the asset file or directory.
- options IAssetOptions
The path to the asset file or directory.
Properties
Path
The path to the asset file or directory.
public virtual string Path { get; }
Property Value
System.String
Methods
Bind(Construct)
Called when the container is initialized to allow this object to bind to the stack.
public override IEnvironmentFileConfig Bind(Construct scope)
Parameters
- scope Construct
Returns