Interface CfnAsset.AssetFileProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAsset.AssetFileProperty.Jsii$Proxy
- Enclosing class:
CfnAsset
@Stability(Stable)
public static interface CfnAsset.AssetFileProperty
extends software.amazon.jsii.JsiiSerializable
A single file inside an Asset's bundle.
Path is the diff key on update; Content is write-only and not repopulated by Read.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.devopsagent.*;
Object metadata;
AssetFileProperty assetFileProperty = AssetFileProperty.builder()
.path("path")
// the properties below are optional
.contentBytes("contentBytes")
.contentText("contentText")
.metadata(metadata)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAsset.AssetFilePropertystatic final classAn implementation forCfnAsset.AssetFileProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPath
Path of this file within the asset bundle.- See Also:
-
getContentBytes
Base64-encoded binary contents of the file.Mutually exclusive with ContentText (max 6 MiB).
- See Also:
-
getContentText
UTF-8 text contents of the file.Mutually exclusive with ContentBytes (max 1.5 MiB).
- See Also:
-
getMetadata
Per-file metadata document.Values may be strings, numbers, booleans, or lists of any of those (validated server-side).
- See Also:
-
builder
- Returns:
- a
CfnAsset.AssetFileProperty.BuilderofCfnAsset.AssetFileProperty
-