CfnAssetPropsMixin
- class aws_cdk.cfn_property_mixins.aws_devopsagent.CfnAssetPropsMixin(props, *, strategy=None)
Bases:
MixinResource Type definition for AWS::DevOpsAgent::Asset.
An asset attached to an existing AWS DevOps Agent Space. Customer-creatable types include skill, agents_md, and attachment; call ListAssetTypes for the current authoritative set.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devopsagent-asset.html
- CloudformationResource:
AWS::DevOpsAgent::Asset
- Mixin:
true
- 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 import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy # metadata: Any cfn_asset_props_mixin = devopsagent.CfnAssetPropsMixin(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" ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::DevOpsAgent::Asset.- Parameters:
props (
Union[CfnAssetMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['agentSpaceId', 'assetType', 'files', 'metadata', 'zip']
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
AssetFileProperty
- class CfnAssetPropsMixin.AssetFileProperty(*, content_bytes=None, content_text=None, metadata=None, path=None)
Bases:
objectA single file inside an Asset’s bundle.
Path is the diff key on update; Content is write-only and not repopulated by Read.
- Parameters:
content_bytes (
Optional[str]) – Base64-encoded binary contents of the file. Mutually exclusive with ContentText (max 6 MiB).content_text (
Optional[str]) – UTF-8 text contents of the file. Mutually exclusive with ContentBytes (max 1.5 MiB).metadata (
Any) – Per-file metadata document. Values may be strings, numbers, booleans, or lists of any of those (validated server-side).path (
Optional[str]) – Path of this file within the asset bundle.
- See:
- 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 asset_file_property = devopsagent.CfnAssetPropsMixin.AssetFileProperty( content_bytes="contentBytes", content_text="contentText", metadata=metadata, path="path" )
Attributes
- content_bytes
Base64-encoded binary contents of the file.
Mutually exclusive with ContentText (max 6 MiB).
- content_text
UTF-8 text contents of the file.
Mutually exclusive with ContentBytes (max 1.5 MiB).
- metadata
Per-file metadata document.
Values may be strings, numbers, booleans, or lists of any of those (validated server-side).
- path
Path of this file within the asset bundle.