interface AssetFileProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.DevOpsAgent.CfnAsset.AssetFileProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsdevopsagent#CfnAsset_AssetFileProperty |
Java | software.amazon.awscdk.services.devopsagent.CfnAsset.AssetFileProperty |
Python | aws_cdk.aws_devopsagent.CfnAsset.AssetFileProperty |
TypeScript | aws-cdk-lib » aws_devopsagent » CfnAsset » 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-lib';
declare const metadata: any;
const assetFileProperty: devopsagent.CfnAsset.AssetFileProperty = {
path: 'path',
// the properties below are optional
contentBytes: 'contentBytes',
contentText: 'contentText',
metadata: metadata,
};
Properties
| Name | Type | Description |
|---|---|---|
| path | string | Path of this file within the asset bundle. |
| 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
Type:
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).

.NET
Go
Java
Python
TypeScript