Interface InitFileAssetOptions
- All Superinterfaces:
AssetOptions
,AssetOptions
,FileCopyOptions
,InitFileOptions
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
InitFileAssetOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)",
date="2024-07-12T19:34:00.920Z")
@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.*; import software.amazon.awscdk.services.ec2.*; import software.amazon.awscdk.services.iam.*; 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 .bundlingFileAccess(BundlingFileAccess.VOLUME_COPY) .command(List.of("command")) .entrypoint(List.of("entrypoint")) .environment(Map.of( "environmentKey", "environment")) .local(localBundling) .network("network") .outputType(BundlingOutput.ARCHIVED) .platform("platform") .securityOpt("securityOpt") .user("user") .volumes(List.of(DockerVolume.builder() .containerPath("containerPath") .hostPath("hostPath") // the properties below are optional .consistency(DockerVolumeConsistency.CONSISTENT) .build())) .volumesFrom(List.of("volumesFrom")) .workingDirectory("workingDirectory") .build()) .deployTime(false) .exclude(List.of("exclude")) .followSymlinks(SymlinkFollowMode.NEVER) .group("group") .ignoreMode(IgnoreMode.GLOB) .mode("mode") .owner("owner") .readers(List.of(grantable)) .serviceRestartHandles(List.of(initServiceRestartHandle)) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forInitFileAssetOptions
static final class
An implementation forInitFileAssetOptions
-
Method Summary
Methods inherited from interface software.amazon.awscdk.AssetOptions
getAssetHash, getAssetHashType, getBundling
Methods inherited from interface software.amazon.awscdk.services.s3.assets.AssetOptions
getDeployTime, getReaders
Methods inherited from interface software.amazon.awscdk.FileCopyOptions
getExclude, getFollowSymlinks, getIgnoreMode
Methods inherited from interface software.amazon.awscdk.services.ec2.InitFileOptions
getBase64Encoded, getGroup, getMode, getOwner, getServiceRestartHandles
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
builder
- Returns:
- a
InitFileAssetOptions.Builder
ofInitFileAssetOptions
-