Interface InitFileAssetOptions
- All Superinterfaces:
AssetOptions,AssetOptions,CopyOptions,FileCopyOptions,InitFileOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
InitFileAssetOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.375Z")
@Stability(Stable)
public interface InitFileAssetOptions
extends software.amazon.jsii.JsiiSerializable, InitFileOptions, AssetOptions
Additional options for creating an InitFile from an asset.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.assets.*;
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.iam.*;
import software.amazon.awscdk.core.*;
DockerImage dockerImage;
IGrantable grantable;
InitServiceRestartHandle initServiceRestartHandle;
ILocalBundling localBundling;
InitFileAssetOptions initFileAssetOptions = InitFileAssetOptions.builder()
.assetHash("assetHash")
.assetHashType(AssetHashType.SOURCE)
.base64Encoded(false)
.bundling(BundlingOptions.builder()
.image(dockerImage)
// the properties below are optional
.command(List.of("command"))
.entrypoint(List.of("entrypoint"))
.environment(Map.of(
"environmentKey", "environment"))
.local(localBundling)
.outputType(BundlingOutput.ARCHIVED)
.securityOpt("securityOpt")
.user("user")
.volumes(List.of(DockerVolume.builder()
.containerPath("containerPath")
.hostPath("hostPath")
// the properties below are optional
.consistency(DockerVolumeConsistency.CONSISTENT)
.build()))
.workingDirectory("workingDirectory")
.build())
.exclude(List.of("exclude"))
.follow(FollowMode.NEVER)
.followSymlinks(SymlinkFollowMode.NEVER)
.group("group")
.ignoreMode(IgnoreMode.GLOB)
.mode("mode")
.owner("owner")
.readers(List.of(grantable))
.serviceRestartHandles(List.of(initServiceRestartHandle))
.sourceHash("sourceHash")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forInitFileAssetOptionsstatic final classAn implementation forInitFileAssetOptions -
Method Summary
Static MethodsMethods inherited from interface software.amazon.awscdk.core.AssetOptions
getAssetHash, getAssetHashType, getBundlingMethods inherited from interface software.amazon.awscdk.services.s3.assets.AssetOptions
getExclude, getIgnoreMode, getReaders, getSourceHashMethods inherited from interface software.amazon.awscdk.assets.CopyOptions
getFollowMethods inherited from interface software.amazon.awscdk.core.FileCopyOptions
getFollowSymlinksMethods inherited from interface software.amazon.awscdk.services.ec2.InitFileOptions
getBase64Encoded, getGroup, getMode, getOwner, getServiceRestartHandlesMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
builder
- Returns:
- a
InitFileAssetOptions.BuilderofInitFileAssetOptions
-