Interface CfnAssetProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAssetProps.Jsii$Proxy
CfnAsset.
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;
CfnAssetProps cfnAssetProps = CfnAssetProps.builder()
.agentSpaceId("agentSpaceId")
.assetType("assetType")
// the properties below are optional
.files(List.of(AssetFileProperty.builder()
.path("path")
// the properties below are optional
.contentBytes("contentBytes")
.contentText("contentText")
.metadata(metadata)
.build()))
.metadata(metadata)
.zip("zip")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAssetPropsstatic final classAn implementation forCfnAssetProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnAssetProps.Builderbuilder()The unique identifier of the parent Agent Space.The type of asset.default ObjectgetFiles()Inline file list.default ObjectAsset metadata document.default StringgetZip()Base64-encoded zip bundle containing all files for the asset.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAgentSpaceId
The unique identifier of the parent Agent Space.The asset is created as a child of this agent space.
- See Also:
-
getAssetType
The type of asset.The Asset API treats this as an open string; call ListAssetTypes for the current authoritative set of supported types. As of launch, customer-creatable types include skill, agents_md, and attachment.
- See Also:
-
getFiles
Inline file list.Mutually exclusive with Zip; enforced by the handler at Create/Update time. Write-only: not repopulated by Read.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnAsset.AssetFileProperty>- See Also:
-
getMetadata
Asset metadata document.Required and optional keys depend on AssetType. Values may be strings, numbers, booleans, or lists of any of those - validated server-side; see the public Asset API docs for the per-type metadata schema.
- See Also:
-
getZip
Base64-encoded zip bundle containing all files for the asset.Mutually exclusive with Files; enforced by the handler at Create/Update time. Write-only: not repopulated by Read. Server treats a zip as 'replace all files' (max 6 MiB).
- See Also:
-
builder
- Returns:
- a
CfnAssetProps.BuilderofCfnAssetProps
-