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.
| Source | |
|---|---|
| Type last changed |
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,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_devopsagent as devopsagent
# metadata: Any
asset_file_property = devopsagent.CfnAsset.AssetFileProperty(
path="path",
# the properties below are optional
content_bytes="contentBytes",
content_text="contentText",
metadata=metadata
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.devopsagent.*;
Object metadata;
AssetFileProperty assetFileProperty = AssetFileProperty.builder()
.path("path")
// the properties below are optional
.contentBytes("contentBytes")
.contentText("contentText")
.metadata(metadata)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DevOpsAgent;
var metadata;
var assetFileProperty = new AssetFileProperty {
Path = "path",
// the properties below are optional
ContentBytes = "contentBytes",
ContentText = "contentText",
Metadata = metadata
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var metadata interface{}
assetFileProperty := &AssetFileProperty{
Path: jsii.String("path"),
// the properties below are optional
ContentBytes: jsii.String("contentBytes"),
ContentText: jsii.String("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).
Path of this file within the asset bundle.