CfnAssetMixinProps

class aws_cdk.cfn_property_mixins.aws_devopsagent.CfnAssetMixinProps(*, agent_space_id=None, asset_type=None, files=None, metadata=None, zip=None)

Bases: object

Properties for CfnAssetPropsMixin.

Parameters:
  • agent_space_id (Optional[str]) – The unique identifier of the parent Agent Space. The asset is created as a child of this agent space.

  • asset_type (Optional[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.cfn_property_mixins import aws_devopsagent as devopsagent

# metadata: Any

cfn_asset_mixin_props = devopsagent.CfnAssetMixinProps(
    agent_space_id="agentSpaceId",
    asset_type="assetType",
    files=[devopsagent.CfnAssetPropsMixin.AssetFileProperty(
        content_bytes="contentBytes",
        content_text="contentText",
        metadata=metadata,
        path="path"
    )],
    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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devopsagent-asset.html#cfn-devopsagent-asset-agentspaceid

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devopsagent-asset.html#cfn-devopsagent-asset-assettype

files

Inline file list.

Mutually exclusive with Zip; enforced by the handler at Create/Update time. Write-only: not repopulated by Read.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devopsagent-asset.html#cfn-devopsagent-asset-files

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devopsagent-asset.html#cfn-devopsagent-asset-metadata

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).

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devopsagent-asset.html#cfn-devopsagent-asset-zip