Class CfnAsset.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAsset>
- Enclosing class:
CfnAsset
CfnAsset.-
Method Summary
Modifier and TypeMethodDescriptionagentSpaceId(String agentSpaceId) The unique identifier of the parent Agent Space.The type of asset.build()static CfnAsset.BuilderInline file list.files(IResolvable files) Inline file list.Asset metadata document.Base64-encoded zip bundle containing all files for the asset.
-
Method Details
-
create
@Stability(Stable) public static CfnAsset.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnAsset.Builder.
-
agentSpaceId
The unique identifier of the parent Agent Space.The asset is created as a child of this agent space.
- Parameters:
agentSpaceId- The unique identifier of the parent Agent Space. This parameter is required.- Returns:
this- See Also:
-
assetType
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.
- Parameters:
assetType- The type of asset. This parameter is required.- Returns:
this- See Also:
-
files
Inline file list.Mutually exclusive with Zip; enforced by the handler at Create/Update time. Write-only: not repopulated by Read.
- Parameters:
files- Inline file list. This parameter is required.- Returns:
this- See Also:
-
files
Inline file list.Mutually exclusive with Zip; enforced by the handler at Create/Update time. Write-only: not repopulated by Read.
- Parameters:
files- Inline file list. This parameter is required.- Returns:
this- See Also:
-
metadata
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.
- Parameters:
metadata- Asset metadata document. This parameter is required.- Returns:
this- See Also:
-
zip
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).
- Parameters:
zip- Base64-encoded zip bundle containing all files for the asset. This parameter is required.- Returns:
this- See Also:
-
build
-