@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:06.638Z") @Stability(value=Experimental) public abstract class InitFile extends InitElement
| Modifier | Constructor and Description |
|---|---|
protected |
InitFile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
InitFile(software.amazon.jsii.JsiiObjectRef objRef) |
protected |
InitFile(String fileName,
InitFileOptions options) |
| Modifier and Type | Method and Description |
|---|---|
static InitFile |
fromAsset(String targetFileName,
String path)
(experimental) Create an asset from the given file.
|
static InitFile |
fromAsset(String targetFileName,
String path,
InitFileAssetOptions options)
(experimental) Create an asset from the given file.
|
static InitFile |
fromExistingAsset(String targetFileName,
Asset asset)
(experimental) Use a file from an asset at instance startup time.
|
static InitFile |
fromExistingAsset(String targetFileName,
Asset asset,
InitFileOptions options)
(experimental) Use a file from an asset at instance startup time.
|
static InitFile |
fromFileInline(String targetFileName,
String sourceFileName)
(experimental) Read a file from disk and use its contents.
|
static InitFile |
fromFileInline(String targetFileName,
String sourceFileName,
InitFileOptions options)
(experimental) Read a file from disk and use its contents.
|
static InitFile |
fromObject(String fileName,
Map<String,? extends Object> obj)
(experimental) Use a JSON-compatible object as the file content, write it to a JSON file.
|
static InitFile |
fromObject(String fileName,
Map<String,? extends Object> obj,
InitFileOptions options)
(experimental) Use a JSON-compatible object as the file content, write it to a JSON file.
|
static InitFile |
fromS3Object(String fileName,
IBucket bucket,
String key)
(experimental) Download a file from an S3 bucket at instance startup time.
|
static InitFile |
fromS3Object(String fileName,
IBucket bucket,
String key,
InitFileOptions options)
(experimental) Download a file from an S3 bucket at instance startup time.
|
static InitFile |
fromString(String fileName,
String content)
(experimental) Use a literal string as the file content.
|
static InitFile |
fromString(String fileName,
String content,
InitFileOptions options)
(experimental) Use a literal string as the file content.
|
static InitFile |
fromUrl(String fileName,
String url)
(experimental) Download from a URL at instance startup time.
|
static InitFile |
fromUrl(String fileName,
String url,
InitFileOptions options)
(experimental) Download from a URL at instance startup time.
|
String |
getElementType()
(experimental) Returns the init element type for this element.
|
static InitFile |
symlink(String fileName,
String target)
(experimental) Write a symlink with the given symlink target.
|
static InitFile |
symlink(String fileName,
String target,
InitFileOptions options)
(experimental) Write a symlink with the given symlink target.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected InitFile(software.amazon.jsii.JsiiObjectRef objRef)
protected InitFile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
protected InitFile(@NotNull
String fileName,
@NotNull
InitFileOptions options)
fileName - This parameter is required.options - This parameter is required.@Stability(value=Experimental) @NotNull public static InitFile fromAsset(@NotNull String targetFileName, @NotNull String path, @Nullable InitFileAssetOptions options)
This is appropriate for files that are too large to embed into the template.
targetFileName - This parameter is required.path - This parameter is required.options - @Stability(value=Experimental) @NotNull public static InitFile fromAsset(@NotNull String targetFileName, @NotNull String path)
This is appropriate for files that are too large to embed into the template.
targetFileName - This parameter is required.path - This parameter is required.@Stability(value=Experimental) @NotNull public static InitFile fromExistingAsset(@NotNull String targetFileName, @NotNull Asset asset, @Nullable InitFileOptions options)
targetFileName - This parameter is required.asset - This parameter is required.options - @Stability(value=Experimental) @NotNull public static InitFile fromExistingAsset(@NotNull String targetFileName, @NotNull Asset asset)
targetFileName - This parameter is required.asset - This parameter is required.@Stability(value=Experimental) @NotNull public static InitFile fromFileInline(@NotNull String targetFileName, @NotNull String sourceFileName, @Nullable InitFileOptions options)
The file will be embedded in the template, so care should be taken to not exceed the template size.
If options.base64encoded is set to true, this will base64-encode the file's contents.
targetFileName - This parameter is required.sourceFileName - This parameter is required.options - @Stability(value=Experimental) @NotNull public static InitFile fromFileInline(@NotNull String targetFileName, @NotNull String sourceFileName)
The file will be embedded in the template, so care should be taken to not exceed the template size.
If options.base64encoded is set to true, this will base64-encode the file's contents.
targetFileName - This parameter is required.sourceFileName - This parameter is required.@Stability(value=Experimental) @NotNull public static InitFile fromObject(@NotNull String fileName, @NotNull Map<String,? extends Object> obj, @Nullable InitFileOptions options)
May contain tokens.
fileName - This parameter is required.obj - This parameter is required.options - @Stability(value=Experimental) @NotNull public static InitFile fromObject(@NotNull String fileName, @NotNull Map<String,? extends Object> obj)
May contain tokens.
fileName - This parameter is required.obj - This parameter is required.@Stability(value=Experimental) @NotNull public static InitFile fromS3Object(@NotNull String fileName, @NotNull IBucket bucket, @NotNull String key, @Nullable InitFileOptions options)
fileName - This parameter is required.bucket - This parameter is required.key - This parameter is required.options - @Stability(value=Experimental) @NotNull public static InitFile fromS3Object(@NotNull String fileName, @NotNull IBucket bucket, @NotNull String key)
fileName - This parameter is required.bucket - This parameter is required.key - This parameter is required.@Stability(value=Experimental) @NotNull public static InitFile fromString(@NotNull String fileName, @NotNull String content, @Nullable InitFileOptions options)
fileName - This parameter is required.content - This parameter is required.options - @Stability(value=Experimental) @NotNull public static InitFile fromString(@NotNull String fileName, @NotNull String content)
fileName - This parameter is required.content - This parameter is required.@Stability(value=Experimental) @NotNull public static InitFile fromUrl(@NotNull String fileName, @NotNull String url, @Nullable InitFileOptions options)
fileName - This parameter is required.url - This parameter is required.options - @Stability(value=Experimental) @NotNull public static InitFile fromUrl(@NotNull String fileName, @NotNull String url)
fileName - This parameter is required.url - This parameter is required.@Stability(value=Experimental) @NotNull public static InitFile symlink(@NotNull String fileName, @NotNull String target, @Nullable InitFileOptions options)
fileName - This parameter is required.target - This parameter is required.options - @Stability(value=Experimental) @NotNull public static InitFile symlink(@NotNull String fileName, @NotNull String target)
fileName - This parameter is required.target - This parameter is required.@Stability(value=Experimental) @NotNull public String getElementType()
getElementType in class InitElementCopyright © 2021. All rights reserved.