Skip to content
v2.274.0

AssetFileProperty Struct ​

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 ​

ts
// 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 ​

contentBytesoptionalstringcontent_bytesoptionalstrcontentBytesoptionalStringContentBytesoptionalstringContentBytesoptional*string#
Base64-encoded binary contents of the file.

Mutually exclusive with ContentText (max 6 MiB).

contentTextoptionalstringcontent_textoptionalstrcontentTextoptionalStringContentTextoptionalstringContentTextoptional*string#
UTF-8 text contents of the file.

Mutually exclusive with ContentBytes (max 1.5 MiB).

metadataoptionalanymetadataoptionalAnymetadataoptionalObjectMetadataoptionalobjectMetadataoptionalinterface{}#
Per-file metadata document.

Values may be strings, numbers, booleans, or lists of any of those (validated server-side).

pathstringpathstrpathStringPathstringPath*stringrequired#
Path of this file within the asset bundle.