Class S3ImportSource
An import source from an S3 object.
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class S3ImportSource : ImportSource
Syntax (vb)
Public Class S3ImportSource
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 s3ImportSource = S3ImportSource.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
S3ImportSource(IBucket, String) | |
S3ImportSource(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
S3ImportSource(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Bucket | the S3 bucket that contains the data. |
Key | the key within the S3 bucket that contains the data. |
Constructors
S3ImportSource(IBucket, String)
public S3ImportSource(IBucket bucket, string key)
Parameters
- bucket IBucket
the S3 bucket that contains the data.
- key System.String
the key within the S3 bucket that contains the data.
S3ImportSource(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected S3ImportSource(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
S3ImportSource(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected S3ImportSource(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Bucket
Key
the key within the S3 bucket that contains the data.
public virtual string Key { get; }
Property Value
System.String