Class AssetContent
(experimental) Game content from a local directory.
Inherited Members
Namespace: Amazon.CDK.AWS.GameLift.Alpha
Assembly: Amazon.CDK.AWS.GameLift.Alpha.dll
Syntax (csharp)
public class AssetContent : Content
Syntax (vb)
Public Class AssetContent
Inherits Content
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.GameLift.Alpha;
using Amazon.CDK;
using Amazon.CDK.AWS.IAM;
DockerImage dockerImage;
IGrantable grantable;
ILocalBundling localBundling;
var assetContent = new AssetContent("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
AssetContent(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AssetContent(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
AssetContent(String, IAssetOptions) |
Properties
Path | (experimental) The path to the asset file or directory. |
Methods
Bind(Construct, IRole) | (experimental) Called when the Build is initialized to allow this object to bind. |
Constructors
AssetContent(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AssetContent(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AssetContent(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AssetContent(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
AssetContent(String, IAssetOptions)
public AssetContent(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.
Remarks
Stability: Experimental
Properties
Path
(experimental) The path to the asset file or directory.
public virtual string Path { get; }
Property Value
System.String
Remarks
Stability: Experimental
Methods
Bind(Construct, IRole)
(experimental) Called when the Build is initialized to allow this object to bind.
public override IContentConfig Bind(Construct scope, IRole role)
Parameters
- scope Constructs.Construct
- role IRole
Returns
Overrides
Remarks
Stability: Experimental