@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:06.666Z") @Stability(value=Experimental) public class MultipartUserData extends UserData
This class represents MIME multipart user data, as described in. Specifying Multiple User Data Blocks Using a MIME Multi Part Archive
| Modifier and Type | Class and Description |
|---|---|
static class |
MultipartUserData.Builder
(experimental) A fluent builder for
MultipartUserData. |
| Modifier | Constructor and Description |
|---|---|
|
MultipartUserData() |
protected |
MultipartUserData(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
MultipartUserData(software.amazon.jsii.JsiiObjectRef objRef) |
|
MultipartUserData(MultipartUserDataOptions opts) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommands(String... commands)
(experimental) Add one or more commands to the user data.
|
void |
addExecuteFileCommand(ExecuteFileOptions params)
(experimental) Adds commands to execute a file.
|
void |
addOnExitCommands(String... commands)
(experimental) Add one or more commands to the user data that will run when the script exits.
|
void |
addPart(MultipartBody part)
(experimental) Adds a part to the list of parts.
|
String |
addS3DownloadCommand(S3DownloadOptions params)
(experimental) Adds commands to download a file from S3.
|
void |
addSignalOnExitCommand(Resource resource)
(experimental) Adds a command which will send a cfn-signal when the user data script ends.
|
void |
addUserDataPart(UserData userData)
(experimental) Adds a multipart part based on a UserData object.
|
void |
addUserDataPart(UserData userData,
String contentType)
(experimental) Adds a multipart part based on a UserData object.
|
void |
addUserDataPart(UserData userData,
String contentType,
Boolean makeDefault)
(experimental) Adds a multipart part based on a UserData object.
|
String |
render()
(experimental) Render the UserData for use in a construct.
|
custom, forLinux, forLinux, forOperatingSystem, forWindowsjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected MultipartUserData(software.amazon.jsii.JsiiObjectRef objRef)
protected MultipartUserData(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public MultipartUserData(@Nullable
MultipartUserDataOptions opts)
opts - @Stability(value=Experimental) public MultipartUserData()
@Stability(value=Experimental)
public void addCommands(@NotNull
String... commands)
addCommands in class UserDatacommands - This parameter is required.@Stability(value=Experimental)
public void addExecuteFileCommand(@NotNull
ExecuteFileOptions params)
addExecuteFileCommand in class UserDataparams - This parameter is required.@Stability(value=Experimental)
public void addOnExitCommands(@NotNull
String... commands)
addOnExitCommands in class UserDatacommands - This parameter is required.@Stability(value=Experimental)
public void addPart(@NotNull
MultipartBody part)
part - This parameter is required.@Stability(value=Experimental) @NotNull public String addS3DownloadCommand(@NotNull S3DownloadOptions params)
addS3DownloadCommand in class UserDataparams - This parameter is required.@Stability(value=Experimental)
public void addSignalOnExitCommand(@NotNull
Resource resource)
addSignalOnExitCommand in class UserDataresource - This parameter is required.@Stability(value=Experimental)
public void addUserDataPart(@NotNull
UserData userData,
@Nullable
String contentType,
@Nullable
Boolean makeDefault)
If makeDefault is true, then the UserData added by this method
will also be the target of calls to the add*Command methods on
this MultipartUserData object.
If makeDefault is false, then this is the same as calling:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 multiPart.addPart(MultipartBody.fromUserData(userData, contentType));
An undefined makeDefault defaults to either:
true if no default UserData has been set yet; orfalse if there is no default UserData set.userData - This parameter is required.contentType - makeDefault - @Stability(value=Experimental)
public void addUserDataPart(@NotNull
UserData userData,
@Nullable
String contentType)
If makeDefault is true, then the UserData added by this method
will also be the target of calls to the add*Command methods on
this MultipartUserData object.
If makeDefault is false, then this is the same as calling:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 multiPart.addPart(MultipartBody.fromUserData(userData, contentType));
An undefined makeDefault defaults to either:
true if no default UserData has been set yet; orfalse if there is no default UserData set.userData - This parameter is required.contentType - @Stability(value=Experimental)
public void addUserDataPart(@NotNull
UserData userData)
If makeDefault is true, then the UserData added by this method
will also be the target of calls to the add*Command methods on
this MultipartUserData object.
If makeDefault is false, then this is the same as calling:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 multiPart.addPart(MultipartBody.fromUserData(userData, contentType));
An undefined makeDefault defaults to either:
true if no default UserData has been set yet; orfalse if there is no default UserData set.userData - This parameter is required.Copyright © 2021. All rights reserved.