CfnAssetProps
- class aws_cdk.aws_devopsagent.CfnAssetProps(*, agent_space_id, asset_type, files=None, metadata=None, zip=None)
Bases:
objectProperties for defining a
CfnAsset.- Parameters:
agent_space_id (
str) – The unique identifier of the parent Agent Space. The asset is created as a child of this agent space.asset_type (
str) – 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.files (
Union[IResolvable,Sequence[Union[IResolvable,AssetFileProperty,Dict[str,Any]]],None]) – Inline file list. Mutually exclusive with Zip; enforced by the handler at Create/Update time. Write-only: not repopulated by Read.metadata (
Any) – 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.zip (
Optional[str]) – 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:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devopsagent-asset.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_devopsagent as devopsagent # metadata: Any cfn_asset_props = devopsagent.CfnAssetProps( agent_space_id="agentSpaceId", asset_type="assetType", # the properties below are optional files=[devopsagent.CfnAsset.AssetFileProperty( path="path", # the properties below are optional content_bytes="contentBytes", content_text="contentText", metadata=metadata )], metadata=metadata, zip="zip" )
Attributes
- agent_space_id
The unique identifier of the parent Agent Space.
The asset is created as a child of this agent space.
- asset_type
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.
- files
Inline file list.
Mutually exclusive with Zip; enforced by the handler at Create/Update time. Write-only: not repopulated by Read.
- 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.
- 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).