Class InlineImportSource
An import source from an inline string.
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class InlineImportSource : ImportSource
Syntax (vb)
Public Class InlineImportSource
Inherits ImportSource
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;
using Amazon.CDK.AWS.CloudFront;
using Amazon.CDK.AWS.IAM;
DockerImage dockerImage;
IGrantable grantable;
ILocalBundling localBundling;
var inlineImportSource = InlineImportSource.FromAsset("path", new AssetOptions {
AssetHash = "assetHash",
AssetHashType = AssetHashType.SOURCE,
Bundling = new BundlingOptions {
Image = dockerImage,
// the properties below are optional
BundlingFileAccess = BundlingFileAccess.VOLUME_COPY,
Command = new [] { "command" },
Entrypoint = new [] { "entrypoint" },
Environment = new Dictionary<string, string> {
{ "environmentKey", "environment" }
},
Local = localBundling,
Network = "network",
OutputType = BundlingOutput.ARCHIVED,
Platform = "platform",
SecurityOpt = "securityOpt",
User = "user",
Volumes = new [] { new DockerVolume {
ContainerPath = "containerPath",
HostPath = "hostPath",
// the properties below are optional
Consistency = DockerVolumeConsistency.CONSISTENT
} },
VolumesFrom = new [] { "volumesFrom" },
WorkingDirectory = "workingDirectory"
},
DeployTime = false,
Exclude = new [] { "exclude" },
FollowSymlinks = SymlinkFollowMode.NEVER,
IgnoreMode = IgnoreMode.GLOB,
Readers = new [] { grantable }
});
Synopsis
Constructors
InlineImportSource(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
InlineImportSource(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
InlineImportSource(String) |
Properties
Data | the contents of the KeyValueStore. |
Constructors
InlineImportSource(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected InlineImportSource(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
InlineImportSource(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected InlineImportSource(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
InlineImportSource(String)
public InlineImportSource(string data)
Parameters
- data System.String
the contents of the KeyValueStore.
Properties
Data
the contents of the KeyValueStore.
public virtual string Data { get; }
Property Value
System.String