interface AssetFileProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.DevOpsAgent.CfnAssetPropsMixin.AssetFileProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsdevopsagent#CfnAssetPropsMixin_AssetFileProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.devopsagent.CfnAssetPropsMixin.AssetFileProperty |
Python | aws_cdk.cfn_property_mixins.aws_devopsagent.CfnAssetPropsMixin.AssetFileProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_devopsagent » CfnAssetPropsMixin » AssetFileProperty |
A single file inside an Asset's bundle.
Path is the diff key on update; Content is write-only and not repopulated by Read.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_devopsagent as devopsagent } from '@aws-cdk/cfn-property-mixins';
declare const metadata: any;
const assetFileProperty: devopsagent.CfnAssetPropsMixin.AssetFileProperty = {
contentBytes: 'contentBytes',
contentText: 'contentText',
metadata: metadata,
path: 'path',
};
Properties
| Name | Type | Description |
|---|---|---|
| content | string | Base64-encoded binary contents of the file. |
| content | string | UTF-8 text contents of the file. |
| metadata? | any | Per-file metadata document. |
| path? | string | Path of this file within the asset bundle. |
contentBytes?
Type:
string
(optional)
Base64-encoded binary contents of the file.
Mutually exclusive with ContentText (max 6 MiB).
contentText?
Type:
string
(optional)
UTF-8 text contents of the file.
Mutually exclusive with ContentBytes (max 1.5 MiB).
metadata?
Type:
any
(optional)
Per-file metadata document.
Values may be strings, numbers, booleans, or lists of any of those (validated server-side).
path?
Type:
string
(optional)
Path of this file within the asset bundle.

.NET
Go
Java
Python
TypeScript