SourceDataOptions Struct
Options for Source.data() sources.
| Source | aws-s3-deployment/lib/source.ts |
|---|---|
| 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_s3_deployment as s3_deployment } from 'aws-cdk-lib';
const sourceDataOptions: s3_deployment.SourceDataOptions = {
jsonEscape: false,
};
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_s3_deployment as s3_deployment
source_data_options = s3_deployment.SourceDataOptions(
json_escape=False
)
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.s3.deployment.*;
SourceDataOptions sourceDataOptions = SourceDataOptions.builder()
.jsonEscape(false)
.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.S3.Deployment;
var sourceDataOptions = new SourceDataOptions {
JsonEscape = false
};
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"
sourceDataOptions := &SourceDataOptions{
JsonEscape: jsii.Boolean(false),
}
Properties
jsonEscapeoptionalbooleanjson_escapeoptionalbooljsonEscapeoptionalBooleanJsonEscapeoptionalboolJsonEscapeoptional*bool = false #Default marker encoding for markers that don't have a `markerEncodings` entry.
notes
- If
false(default), the default marker encoding isMarkerEncoding.LITERAL. - If
true, the default marker encoding isMarkerEncoding.UNQUOTED_JSON_VALUE.
See Source.data() for a full description of the effect of this setting.
Unless you need fine-grained control over marker encoding, you should use Source.jsonData() or Source.yamlData().