CfnOriginEndpoint L1 construct
Specifies the configuration parameters for a MediaPackage V2 origin endpoint.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mediapackagev2 as mediapackagev2 } from 'aws-cdk-lib';
const cfnOriginEndpoint = new mediapackagev2.CfnOriginEndpoint(this, 'MyCfnOriginEndpoint', {
channelGroupName: 'channelGroupName',
channelName: 'channelName',
containerType: 'containerType',
originEndpointName: 'originEndpointName',
// the properties below are optional
dashManifests: [{
manifestName: 'manifestName',
// the properties below are optional
audioTimelinePattern: 'audioTimelinePattern',
availabilityStartTimeConfiguration: {
fixedAvailabilityStartTime: 'fixedAvailabilityStartTime',
},
baseUrls: [{
url: 'url',
// the properties below are optional
dvbPriority: 123,
dvbWeight: 123,
serviceLocation: 'serviceLocation',
}],
compactness: 'compactness',
drmSignaling: 'drmSignaling',
dvbSettings: {
errorMetrics: [{
reportingUrl: 'reportingUrl',
// the properties below are optional
probability: 123,
}],
fontDownload: {
fontFamily: 'fontFamily',
mimeType: 'mimeType',
url: 'url',
},
},
filterConfiguration: {
clipStartTime: 'clipStartTime',
drmSettings: 'drmSettings',
end: 'end',
manifestFilter: 'manifestFilter',
multiview: {
layout: 'layout',
sources: ['sources'],
},
start: 'start',
timeDelaySeconds: 123,
},
manifestWindowSeconds: 123,
minBufferTimeSeconds: 123,
minUpdatePeriodSeconds: 123,
periodTriggers: ['periodTriggers'],
profiles: ['profiles'],
programInformation: {
copyright: 'copyright',
languageCode: 'languageCode',
moreInformationUrl: 'moreInformationUrl',
source: 'source',
title: 'title',
},
scteDash: {
adMarkerDash: 'adMarkerDash',
scteInManifests: 'scteInManifests',
},
segmentTemplateFormat: 'segmentTemplateFormat',
subtitleConfiguration: {
ttmlConfiguration: {
ttmlProfile: 'ttmlProfile',
},
},
suggestedPresentationDelaySeconds: 123,
uriPathType: 'uriPathType',
utcTiming: {
timingMode: 'timingMode',
timingSource: 'timingSource',
},
}],
description: 'description',
forceEndpointErrorConfiguration: {
endpointErrorConditions: ['endpointErrorConditions'],
},
hlsManifests: [{
manifestName: 'manifestName',
// the properties below are optional
childManifestName: 'childManifestName',
filterConfiguration: {
clipStartTime: 'clipStartTime',
drmSettings: 'drmSettings',
end: 'end',
manifestFilter: 'manifestFilter',
multiview: {
layout: 'layout',
sources: ['sources'],
},
start: 'start',
timeDelaySeconds: 123,
},
manifestWindowSeconds: 123,
programDateTimeIntervalSeconds: 123,
scteHls: {
adMarkerHls: 'adMarkerHls',
scteInManifests: 'scteInManifests',
},
startTag: {
timeOffset: 123,
// the properties below are optional
precise: false,
},
uriPathType: 'uriPathType',
url: 'url',
urlEncodeChildManifest: false,
}],
lowLatencyHlsManifests: [{
manifestName: 'manifestName',
// the properties below are optional
childManifestName: 'childManifestName',
filterConfiguration: {
clipStartTime: 'clipStartTime',
drmSettings: 'drmSettings',
end: 'end',
manifestFilter: 'manifestFilter',
start: 'start',
timeDelaySeconds: 123,
},
manifestWindowSeconds: 123,
programDateTimeIntervalSeconds: 123,
scteHls: {
adMarkerHls: 'adMarkerHls',
scteInManifests: 'scteInManifests',
},
startTag: {
timeOffset: 123,
// the properties below are optional
precise: false,
},
uriPathType: 'uriPathType',
url: 'url',
urlEncodeChildManifest: false,
}],
mssManifests: [{
manifestName: 'manifestName',
// the properties below are optional
filterConfiguration: {
clipStartTime: 'clipStartTime',
drmSettings: 'drmSettings',
end: 'end',
manifestFilter: 'manifestFilter',
start: 'start',
timeDelaySeconds: 123,
},
manifestLayout: 'manifestLayout',
manifestWindowSeconds: 123,
}],
segment: {
encryption: {
encryptionMethod: {
cmafEncryptionMethod: 'cmafEncryptionMethod',
ismEncryptionMethod: 'ismEncryptionMethod',
tsEncryptionMethod: 'tsEncryptionMethod',
},
spekeKeyProvider: {
drmSystems: ['drmSystems'],
encryptionContractConfiguration: {
presetSpeke20Audio: 'presetSpeke20Audio',
presetSpeke20Video: 'presetSpeke20Video',
},
resourceId: 'resourceId',
roleArn: 'roleArn',
url: 'url',
// the properties below are optional
certificateArn: 'certificateArn',
contentKeyPeriodConfiguration: {
contentKeyPeriodTiming: 'contentKeyPeriodTiming',
},
spekeVersion: 'spekeVersion',
},
// the properties below are optional
cmafExcludeSegmentDrmMetadata: false,
constantInitializationVector: 'constantInitializationVector',
keyRotationIntervalSeconds: 123,
},
includeIframeOnlyStreams: false,
outputTimestampMode: 'outputTimestampMode',
scte: {
customAdTypes: ['customAdTypes'],
scteFilter: ['scteFilter'],
scteInSegments: 'scteInSegments',
},
segmentDurationSeconds: 123,
segmentName: 'segmentName',
tsIncludeDvbSubtitles: false,
tsUseAudioRenditionGroup: false,
},
startoverWindowSeconds: 123,
streamNameOutputMode: 'streamNameOutputMode',
tags: [{
key: 'key',
value: 'value',
}],
uriSeparator: 'uriSeparator',
});
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_mediapackagev2 as mediapackagev2
cfn_origin_endpoint = mediapackagev2.CfnOriginEndpoint(self, "MyCfnOriginEndpoint",
channel_group_name="channelGroupName",
channel_name="channelName",
container_type="containerType",
origin_endpoint_name="originEndpointName",
# the properties below are optional
dash_manifests=[mediapackagev2.CfnOriginEndpoint.DashManifestConfigurationProperty(
manifest_name="manifestName",
# the properties below are optional
audio_timeline_pattern="audioTimelinePattern",
availability_start_time_configuration=mediapackagev2.CfnOriginEndpoint.DashAvailabilityStartTimeConfigurationProperty(
fixed_availability_start_time="fixedAvailabilityStartTime"
),
base_urls=[mediapackagev2.CfnOriginEndpoint.DashBaseUrlProperty(
url="url",
# the properties below are optional
dvb_priority=123,
dvb_weight=123,
service_location="serviceLocation"
)],
compactness="compactness",
drm_signaling="drmSignaling",
dvb_settings=mediapackagev2.CfnOriginEndpoint.DashDvbSettingsProperty(
error_metrics=[mediapackagev2.CfnOriginEndpoint.DashDvbMetricsReportingProperty(
reporting_url="reportingUrl",
# the properties below are optional
probability=123
)],
font_download=mediapackagev2.CfnOriginEndpoint.DashDvbFontDownloadProperty(
font_family="fontFamily",
mime_type="mimeType",
url="url"
)
),
filter_configuration=mediapackagev2.CfnOriginEndpoint.FilterConfigurationProperty(
clip_start_time="clipStartTime",
drm_settings="drmSettings",
end="end",
manifest_filter="manifestFilter",
multiview=mediapackagev2.CfnOriginEndpoint.MultiviewFilterConfigurationProperty(
layout="layout",
sources=["sources"]
),
start="start",
time_delay_seconds=123
),
manifest_window_seconds=123,
min_buffer_time_seconds=123,
min_update_period_seconds=123,
period_triggers=["periodTriggers"],
profiles=["profiles"],
program_information=mediapackagev2.CfnOriginEndpoint.DashProgramInformationProperty(
copyright="copyright",
language_code="languageCode",
more_information_url="moreInformationUrl",
source="source",
title="title"
),
scte_dash=mediapackagev2.CfnOriginEndpoint.ScteDashProperty(
ad_marker_dash="adMarkerDash",
scte_in_manifests="scteInManifests"
),
segment_template_format="segmentTemplateFormat",
subtitle_configuration=mediapackagev2.CfnOriginEndpoint.DashSubtitleConfigurationProperty(
ttml_configuration=mediapackagev2.CfnOriginEndpoint.DashTtmlConfigurationProperty(
ttml_profile="ttmlProfile"
)
),
suggested_presentation_delay_seconds=123,
uri_path_type="uriPathType",
utc_timing=mediapackagev2.CfnOriginEndpoint.DashUtcTimingProperty(
timing_mode="timingMode",
timing_source="timingSource"
)
)],
description="description",
force_endpoint_error_configuration=mediapackagev2.CfnOriginEndpoint.ForceEndpointErrorConfigurationProperty(
endpoint_error_conditions=["endpointErrorConditions"]
),
hls_manifests=[mediapackagev2.CfnOriginEndpoint.HlsManifestConfigurationProperty(
manifest_name="manifestName",
# the properties below are optional
child_manifest_name="childManifestName",
filter_configuration=mediapackagev2.CfnOriginEndpoint.FilterConfigurationProperty(
clip_start_time="clipStartTime",
drm_settings="drmSettings",
end="end",
manifest_filter="manifestFilter",
multiview=mediapackagev2.CfnOriginEndpoint.MultiviewFilterConfigurationProperty(
layout="layout",
sources=["sources"]
),
start="start",
time_delay_seconds=123
),
manifest_window_seconds=123,
program_date_time_interval_seconds=123,
scte_hls=mediapackagev2.CfnOriginEndpoint.ScteHlsProperty(
ad_marker_hls="adMarkerHls",
scte_in_manifests="scteInManifests"
),
start_tag=mediapackagev2.CfnOriginEndpoint.StartTagProperty(
time_offset=123,
# the properties below are optional
precise=False
),
uri_path_type="uriPathType",
url="url",
url_encode_child_manifest=False
)],
low_latency_hls_manifests=[mediapackagev2.CfnOriginEndpoint.LowLatencyHlsManifestConfigurationProperty(
manifest_name="manifestName",
# the properties below are optional
child_manifest_name="childManifestName",
filter_configuration=mediapackagev2.CfnOriginEndpoint.LowLatencyHlsFilterConfigurationProperty(
clip_start_time="clipStartTime",
drm_settings="drmSettings",
end="end",
manifest_filter="manifestFilter",
start="start",
time_delay_seconds=123
),
manifest_window_seconds=123,
program_date_time_interval_seconds=123,
scte_hls=mediapackagev2.CfnOriginEndpoint.ScteHlsProperty(
ad_marker_hls="adMarkerHls",
scte_in_manifests="scteInManifests"
),
start_tag=mediapackagev2.CfnOriginEndpoint.StartTagProperty(
time_offset=123,
# the properties below are optional
precise=False
),
uri_path_type="uriPathType",
url="url",
url_encode_child_manifest=False
)],
mss_manifests=[mediapackagev2.CfnOriginEndpoint.MssManifestConfigurationProperty(
manifest_name="manifestName",
# the properties below are optional
filter_configuration=mediapackagev2.CfnOriginEndpoint.MssFilterConfigurationProperty(
clip_start_time="clipStartTime",
drm_settings="drmSettings",
end="end",
manifest_filter="manifestFilter",
start="start",
time_delay_seconds=123
),
manifest_layout="manifestLayout",
manifest_window_seconds=123
)],
segment=mediapackagev2.CfnOriginEndpoint.SegmentProperty(
encryption=mediapackagev2.CfnOriginEndpoint.EncryptionProperty(
encryption_method=mediapackagev2.CfnOriginEndpoint.EncryptionMethodProperty(
cmaf_encryption_method="cmafEncryptionMethod",
ism_encryption_method="ismEncryptionMethod",
ts_encryption_method="tsEncryptionMethod"
),
speke_key_provider=mediapackagev2.CfnOriginEndpoint.SpekeKeyProviderProperty(
drm_systems=["drmSystems"],
encryption_contract_configuration=mediapackagev2.CfnOriginEndpoint.EncryptionContractConfigurationProperty(
preset_speke20_audio="presetSpeke20Audio",
preset_speke20_video="presetSpeke20Video"
),
resource_id="resourceId",
role_arn="roleArn",
url="url",
# the properties below are optional
certificate_arn="certificateArn",
content_key_period_configuration=mediapackagev2.CfnOriginEndpoint.ContentKeyPeriodConfigurationProperty(
content_key_period_timing="contentKeyPeriodTiming"
),
speke_version="spekeVersion"
),
# the properties below are optional
cmaf_exclude_segment_drm_metadata=False,
constant_initialization_vector="constantInitializationVector",
key_rotation_interval_seconds=123
),
include_iframe_only_streams=False,
output_timestamp_mode="outputTimestampMode",
scte=mediapackagev2.CfnOriginEndpoint.ScteProperty(
custom_ad_types=["customAdTypes"],
scte_filter=["scteFilter"],
scte_in_segments="scteInSegments"
),
segment_duration_seconds=123,
segment_name="segmentName",
ts_include_dvb_subtitles=False,
ts_use_audio_rendition_group=False
),
startover_window_seconds=123,
stream_name_output_mode="streamNameOutputMode",
tags=[CfnTag(
key="key",
value="value"
)],
uri_separator="uriSeparator"
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.mediapackagev2.*;
CfnOriginEndpoint cfnOriginEndpoint = CfnOriginEndpoint.Builder.create(this, "MyCfnOriginEndpoint")
.channelGroupName("channelGroupName")
.channelName("channelName")
.containerType("containerType")
.originEndpointName("originEndpointName")
// the properties below are optional
.dashManifests(List.of(DashManifestConfigurationProperty.builder()
.manifestName("manifestName")
// the properties below are optional
.audioTimelinePattern("audioTimelinePattern")
.availabilityStartTimeConfiguration(DashAvailabilityStartTimeConfigurationProperty.builder()
.fixedAvailabilityStartTime("fixedAvailabilityStartTime")
.build())
.baseUrls(List.of(DashBaseUrlProperty.builder()
.url("url")
// the properties below are optional
.dvbPriority(123)
.dvbWeight(123)
.serviceLocation("serviceLocation")
.build()))
.compactness("compactness")
.drmSignaling("drmSignaling")
.dvbSettings(DashDvbSettingsProperty.builder()
.errorMetrics(List.of(DashDvbMetricsReportingProperty.builder()
.reportingUrl("reportingUrl")
// the properties below are optional
.probability(123)
.build()))
.fontDownload(DashDvbFontDownloadProperty.builder()
.fontFamily("fontFamily")
.mimeType("mimeType")
.url("url")
.build())
.build())
.filterConfiguration(FilterConfigurationProperty.builder()
.clipStartTime("clipStartTime")
.drmSettings("drmSettings")
.end("end")
.manifestFilter("manifestFilter")
.multiview(MultiviewFilterConfigurationProperty.builder()
.layout("layout")
.sources(List.of("sources"))
.build())
.start("start")
.timeDelaySeconds(123)
.build())
.manifestWindowSeconds(123)
.minBufferTimeSeconds(123)
.minUpdatePeriodSeconds(123)
.periodTriggers(List.of("periodTriggers"))
.profiles(List.of("profiles"))
.programInformation(DashProgramInformationProperty.builder()
.copyright("copyright")
.languageCode("languageCode")
.moreInformationUrl("moreInformationUrl")
.source("source")
.title("title")
.build())
.scteDash(ScteDashProperty.builder()
.adMarkerDash("adMarkerDash")
.scteInManifests("scteInManifests")
.build())
.segmentTemplateFormat("segmentTemplateFormat")
.subtitleConfiguration(DashSubtitleConfigurationProperty.builder()
.ttmlConfiguration(DashTtmlConfigurationProperty.builder()
.ttmlProfile("ttmlProfile")
.build())
.build())
.suggestedPresentationDelaySeconds(123)
.uriPathType("uriPathType")
.utcTiming(DashUtcTimingProperty.builder()
.timingMode("timingMode")
.timingSource("timingSource")
.build())
.build()))
.description("description")
.forceEndpointErrorConfiguration(ForceEndpointErrorConfigurationProperty.builder()
.endpointErrorConditions(List.of("endpointErrorConditions"))
.build())
.hlsManifests(List.of(HlsManifestConfigurationProperty.builder()
.manifestName("manifestName")
// the properties below are optional
.childManifestName("childManifestName")
.filterConfiguration(FilterConfigurationProperty.builder()
.clipStartTime("clipStartTime")
.drmSettings("drmSettings")
.end("end")
.manifestFilter("manifestFilter")
.multiview(MultiviewFilterConfigurationProperty.builder()
.layout("layout")
.sources(List.of("sources"))
.build())
.start("start")
.timeDelaySeconds(123)
.build())
.manifestWindowSeconds(123)
.programDateTimeIntervalSeconds(123)
.scteHls(ScteHlsProperty.builder()
.adMarkerHls("adMarkerHls")
.scteInManifests("scteInManifests")
.build())
.startTag(StartTagProperty.builder()
.timeOffset(123)
// the properties below are optional
.precise(false)
.build())
.uriPathType("uriPathType")
.url("url")
.urlEncodeChildManifest(false)
.build()))
.lowLatencyHlsManifests(List.of(LowLatencyHlsManifestConfigurationProperty.builder()
.manifestName("manifestName")
// the properties below are optional
.childManifestName("childManifestName")
.filterConfiguration(LowLatencyHlsFilterConfigurationProperty.builder()
.clipStartTime("clipStartTime")
.drmSettings("drmSettings")
.end("end")
.manifestFilter("manifestFilter")
.start("start")
.timeDelaySeconds(123)
.build())
.manifestWindowSeconds(123)
.programDateTimeIntervalSeconds(123)
.scteHls(ScteHlsProperty.builder()
.adMarkerHls("adMarkerHls")
.scteInManifests("scteInManifests")
.build())
.startTag(StartTagProperty.builder()
.timeOffset(123)
// the properties below are optional
.precise(false)
.build())
.uriPathType("uriPathType")
.url("url")
.urlEncodeChildManifest(false)
.build()))
.mssManifests(List.of(MssManifestConfigurationProperty.builder()
.manifestName("manifestName")
// the properties below are optional
.filterConfiguration(MssFilterConfigurationProperty.builder()
.clipStartTime("clipStartTime")
.drmSettings("drmSettings")
.end("end")
.manifestFilter("manifestFilter")
.start("start")
.timeDelaySeconds(123)
.build())
.manifestLayout("manifestLayout")
.manifestWindowSeconds(123)
.build()))
.segment(SegmentProperty.builder()
.encryption(EncryptionProperty.builder()
.encryptionMethod(EncryptionMethodProperty.builder()
.cmafEncryptionMethod("cmafEncryptionMethod")
.ismEncryptionMethod("ismEncryptionMethod")
.tsEncryptionMethod("tsEncryptionMethod")
.build())
.spekeKeyProvider(SpekeKeyProviderProperty.builder()
.drmSystems(List.of("drmSystems"))
.encryptionContractConfiguration(EncryptionContractConfigurationProperty.builder()
.presetSpeke20Audio("presetSpeke20Audio")
.presetSpeke20Video("presetSpeke20Video")
.build())
.resourceId("resourceId")
.roleArn("roleArn")
.url("url")
// the properties below are optional
.certificateArn("certificateArn")
.contentKeyPeriodConfiguration(ContentKeyPeriodConfigurationProperty.builder()
.contentKeyPeriodTiming("contentKeyPeriodTiming")
.build())
.spekeVersion("spekeVersion")
.build())
// the properties below are optional
.cmafExcludeSegmentDrmMetadata(false)
.constantInitializationVector("constantInitializationVector")
.keyRotationIntervalSeconds(123)
.build())
.includeIframeOnlyStreams(false)
.outputTimestampMode("outputTimestampMode")
.scte(ScteProperty.builder()
.customAdTypes(List.of("customAdTypes"))
.scteFilter(List.of("scteFilter"))
.scteInSegments("scteInSegments")
.build())
.segmentDurationSeconds(123)
.segmentName("segmentName")
.tsIncludeDvbSubtitles(false)
.tsUseAudioRenditionGroup(false)
.build())
.startoverWindowSeconds(123)
.streamNameOutputMode("streamNameOutputMode")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.uriSeparator("uriSeparator")
.build();
// 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.MediaPackageV2;
var cfnOriginEndpoint = new CfnOriginEndpoint(this, "MyCfnOriginEndpoint", new CfnOriginEndpointProps {
ChannelGroupName = "channelGroupName",
ChannelName = "channelName",
ContainerType = "containerType",
OriginEndpointName = "originEndpointName",
// the properties below are optional
DashManifests = new [] { new DashManifestConfigurationProperty {
ManifestName = "manifestName",
// the properties below are optional
AudioTimelinePattern = "audioTimelinePattern",
AvailabilityStartTimeConfiguration = new DashAvailabilityStartTimeConfigurationProperty {
FixedAvailabilityStartTime = "fixedAvailabilityStartTime"
},
BaseUrls = new [] { new DashBaseUrlProperty {
Url = "url",
// the properties below are optional
DvbPriority = 123,
DvbWeight = 123,
ServiceLocation = "serviceLocation"
} },
Compactness = "compactness",
DrmSignaling = "drmSignaling",
DvbSettings = new DashDvbSettingsProperty {
ErrorMetrics = new [] { new DashDvbMetricsReportingProperty {
ReportingUrl = "reportingUrl",
// the properties below are optional
Probability = 123
} },
FontDownload = new DashDvbFontDownloadProperty {
FontFamily = "fontFamily",
MimeType = "mimeType",
Url = "url"
}
},
FilterConfiguration = new FilterConfigurationProperty {
ClipStartTime = "clipStartTime",
DrmSettings = "drmSettings",
End = "end",
ManifestFilter = "manifestFilter",
Multiview = new MultiviewFilterConfigurationProperty {
Layout = "layout",
Sources = new [] { "sources" }
},
Start = "start",
TimeDelaySeconds = 123
},
ManifestWindowSeconds = 123,
MinBufferTimeSeconds = 123,
MinUpdatePeriodSeconds = 123,
PeriodTriggers = new [] { "periodTriggers" },
Profiles = new [] { "profiles" },
ProgramInformation = new DashProgramInformationProperty {
Copyright = "copyright",
LanguageCode = "languageCode",
MoreInformationUrl = "moreInformationUrl",
Source = "source",
Title = "title"
},
ScteDash = new ScteDashProperty {
AdMarkerDash = "adMarkerDash",
ScteInManifests = "scteInManifests"
},
SegmentTemplateFormat = "segmentTemplateFormat",
SubtitleConfiguration = new DashSubtitleConfigurationProperty {
TtmlConfiguration = new DashTtmlConfigurationProperty {
TtmlProfile = "ttmlProfile"
}
},
SuggestedPresentationDelaySeconds = 123,
UriPathType = "uriPathType",
UtcTiming = new DashUtcTimingProperty {
TimingMode = "timingMode",
TimingSource = "timingSource"
}
} },
Description = "description",
ForceEndpointErrorConfiguration = new ForceEndpointErrorConfigurationProperty {
EndpointErrorConditions = new [] { "endpointErrorConditions" }
},
HlsManifests = new [] { new HlsManifestConfigurationProperty {
ManifestName = "manifestName",
// the properties below are optional
ChildManifestName = "childManifestName",
FilterConfiguration = new FilterConfigurationProperty {
ClipStartTime = "clipStartTime",
DrmSettings = "drmSettings",
End = "end",
ManifestFilter = "manifestFilter",
Multiview = new MultiviewFilterConfigurationProperty {
Layout = "layout",
Sources = new [] { "sources" }
},
Start = "start",
TimeDelaySeconds = 123
},
ManifestWindowSeconds = 123,
ProgramDateTimeIntervalSeconds = 123,
ScteHls = new ScteHlsProperty {
AdMarkerHls = "adMarkerHls",
ScteInManifests = "scteInManifests"
},
StartTag = new StartTagProperty {
TimeOffset = 123,
// the properties below are optional
Precise = false
},
UriPathType = "uriPathType",
Url = "url",
UrlEncodeChildManifest = false
} },
LowLatencyHlsManifests = new [] { new LowLatencyHlsManifestConfigurationProperty {
ManifestName = "manifestName",
// the properties below are optional
ChildManifestName = "childManifestName",
FilterConfiguration = new LowLatencyHlsFilterConfigurationProperty {
ClipStartTime = "clipStartTime",
DrmSettings = "drmSettings",
End = "end",
ManifestFilter = "manifestFilter",
Start = "start",
TimeDelaySeconds = 123
},
ManifestWindowSeconds = 123,
ProgramDateTimeIntervalSeconds = 123,
ScteHls = new ScteHlsProperty {
AdMarkerHls = "adMarkerHls",
ScteInManifests = "scteInManifests"
},
StartTag = new StartTagProperty {
TimeOffset = 123,
// the properties below are optional
Precise = false
},
UriPathType = "uriPathType",
Url = "url",
UrlEncodeChildManifest = false
} },
MssManifests = new [] { new MssManifestConfigurationProperty {
ManifestName = "manifestName",
// the properties below are optional
FilterConfiguration = new MssFilterConfigurationProperty {
ClipStartTime = "clipStartTime",
DrmSettings = "drmSettings",
End = "end",
ManifestFilter = "manifestFilter",
Start = "start",
TimeDelaySeconds = 123
},
ManifestLayout = "manifestLayout",
ManifestWindowSeconds = 123
} },
Segment = new SegmentProperty {
Encryption = new EncryptionProperty {
EncryptionMethod = new EncryptionMethodProperty {
CmafEncryptionMethod = "cmafEncryptionMethod",
IsmEncryptionMethod = "ismEncryptionMethod",
TsEncryptionMethod = "tsEncryptionMethod"
},
SpekeKeyProvider = new SpekeKeyProviderProperty {
DrmSystems = new [] { "drmSystems" },
EncryptionContractConfiguration = new EncryptionContractConfigurationProperty {
PresetSpeke20Audio = "presetSpeke20Audio",
PresetSpeke20Video = "presetSpeke20Video"
},
ResourceId = "resourceId",
RoleArn = "roleArn",
Url = "url",
// the properties below are optional
CertificateArn = "certificateArn",
ContentKeyPeriodConfiguration = new ContentKeyPeriodConfigurationProperty {
ContentKeyPeriodTiming = "contentKeyPeriodTiming"
},
SpekeVersion = "spekeVersion"
},
// the properties below are optional
CmafExcludeSegmentDrmMetadata = false,
ConstantInitializationVector = "constantInitializationVector",
KeyRotationIntervalSeconds = 123
},
IncludeIframeOnlyStreams = false,
OutputTimestampMode = "outputTimestampMode",
Scte = new ScteProperty {
CustomAdTypes = new [] { "customAdTypes" },
ScteFilter = new [] { "scteFilter" },
ScteInSegments = "scteInSegments"
},
SegmentDurationSeconds = 123,
SegmentName = "segmentName",
TsIncludeDvbSubtitles = false,
TsUseAudioRenditionGroup = false
},
StartoverWindowSeconds = 123,
StreamNameOutputMode = "streamNameOutputMode",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
UriSeparator = "uriSeparator"
});
// 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"
cfnOriginEndpoint := awscdk.Aws_mediapackagev2.NewCfnOriginEndpoint(this, jsii.String("MyCfnOriginEndpoint"), &CfnOriginEndpointProps{
ChannelGroupName: jsii.String("channelGroupName"),
ChannelName: jsii.String("channelName"),
ContainerType: jsii.String("containerType"),
OriginEndpointName: jsii.String("originEndpointName"),
// the properties below are optional
DashManifests: []interface{}{
&DashManifestConfigurationProperty{
ManifestName: jsii.String("manifestName"),
// the properties below are optional
AudioTimelinePattern: jsii.String("audioTimelinePattern"),
AvailabilityStartTimeConfiguration: &DashAvailabilityStartTimeConfigurationProperty{
FixedAvailabilityStartTime: jsii.String("fixedAvailabilityStartTime"),
},
BaseUrls: []interface{}{
&DashBaseUrlProperty{
Url: jsii.String("url"),
// the properties below are optional
DvbPriority: jsii.Number(123),
DvbWeight: jsii.Number(123),
ServiceLocation: jsii.String("serviceLocation"),
},
},
Compactness: jsii.String("compactness"),
DrmSignaling: jsii.String("drmSignaling"),
DvbSettings: &DashDvbSettingsProperty{
ErrorMetrics: []interface{}{
&DashDvbMetricsReportingProperty{
ReportingUrl: jsii.String("reportingUrl"),
// the properties below are optional
Probability: jsii.Number(123),
},
},
FontDownload: &DashDvbFontDownloadProperty{
FontFamily: jsii.String("fontFamily"),
MimeType: jsii.String("mimeType"),
Url: jsii.String("url"),
},
},
FilterConfiguration: &FilterConfigurationProperty{
ClipStartTime: jsii.String("clipStartTime"),
DrmSettings: jsii.String("drmSettings"),
End: jsii.String("end"),
ManifestFilter: jsii.String("manifestFilter"),
Multiview: &MultiviewFilterConfigurationProperty{
Layout: jsii.String("layout"),
Sources: []*string{
jsii.String("sources"),
},
},
Start: jsii.String("start"),
TimeDelaySeconds: jsii.Number(123),
},
ManifestWindowSeconds: jsii.Number(123),
MinBufferTimeSeconds: jsii.Number(123),
MinUpdatePeriodSeconds: jsii.Number(123),
PeriodTriggers: []*string{
jsii.String("periodTriggers"),
},
Profiles: []*string{
jsii.String("profiles"),
},
ProgramInformation: &DashProgramInformationProperty{
Copyright: jsii.String("copyright"),
LanguageCode: jsii.String("languageCode"),
MoreInformationUrl: jsii.String("moreInformationUrl"),
Source: jsii.String("source"),
Title: jsii.String("title"),
},
ScteDash: &ScteDashProperty{
AdMarkerDash: jsii.String("adMarkerDash"),
ScteInManifests: jsii.String("scteInManifests"),
},
SegmentTemplateFormat: jsii.String("segmentTemplateFormat"),
SubtitleConfiguration: &DashSubtitleConfigurationProperty{
TtmlConfiguration: &DashTtmlConfigurationProperty{
TtmlProfile: jsii.String("ttmlProfile"),
},
},
SuggestedPresentationDelaySeconds: jsii.Number(123),
UriPathType: jsii.String("uriPathType"),
UtcTiming: &DashUtcTimingProperty{
TimingMode: jsii.String("timingMode"),
TimingSource: jsii.String("timingSource"),
},
},
},
Description: jsii.String("description"),
ForceEndpointErrorConfiguration: &ForceEndpointErrorConfigurationProperty{
EndpointErrorConditions: []*string{
jsii.String("endpointErrorConditions"),
},
},
HlsManifests: []interface{}{
&HlsManifestConfigurationProperty{
ManifestName: jsii.String("manifestName"),
// the properties below are optional
ChildManifestName: jsii.String("childManifestName"),
FilterConfiguration: &FilterConfigurationProperty{
ClipStartTime: jsii.String("clipStartTime"),
DrmSettings: jsii.String("drmSettings"),
End: jsii.String("end"),
ManifestFilter: jsii.String("manifestFilter"),
Multiview: &MultiviewFilterConfigurationProperty{
Layout: jsii.String("layout"),
Sources: []*string{
jsii.String("sources"),
},
},
Start: jsii.String("start"),
TimeDelaySeconds: jsii.Number(123),
},
ManifestWindowSeconds: jsii.Number(123),
ProgramDateTimeIntervalSeconds: jsii.Number(123),
ScteHls: &ScteHlsProperty{
AdMarkerHls: jsii.String("adMarkerHls"),
ScteInManifests: jsii.String("scteInManifests"),
},
StartTag: &StartTagProperty{
TimeOffset: jsii.Number(123),
// the properties below are optional
Precise: jsii.Boolean(false),
},
UriPathType: jsii.String("uriPathType"),
Url: jsii.String("url"),
UrlEncodeChildManifest: jsii.Boolean(false),
},
},
LowLatencyHlsManifests: []interface{}{
&LowLatencyHlsManifestConfigurationProperty{
ManifestName: jsii.String("manifestName"),
// the properties below are optional
ChildManifestName: jsii.String("childManifestName"),
FilterConfiguration: &LowLatencyHlsFilterConfigurationProperty{
ClipStartTime: jsii.String("clipStartTime"),
DrmSettings: jsii.String("drmSettings"),
End: jsii.String("end"),
ManifestFilter: jsii.String("manifestFilter"),
Start: jsii.String("start"),
TimeDelaySeconds: jsii.Number(123),
},
ManifestWindowSeconds: jsii.Number(123),
ProgramDateTimeIntervalSeconds: jsii.Number(123),
ScteHls: &ScteHlsProperty{
AdMarkerHls: jsii.String("adMarkerHls"),
ScteInManifests: jsii.String("scteInManifests"),
},
StartTag: &StartTagProperty{
TimeOffset: jsii.Number(123),
// the properties below are optional
Precise: jsii.Boolean(false),
},
UriPathType: jsii.String("uriPathType"),
Url: jsii.String("url"),
UrlEncodeChildManifest: jsii.Boolean(false),
},
},
MssManifests: []interface{}{
&MssManifestConfigurationProperty{
ManifestName: jsii.String("manifestName"),
// the properties below are optional
FilterConfiguration: &MssFilterConfigurationProperty{
ClipStartTime: jsii.String("clipStartTime"),
DrmSettings: jsii.String("drmSettings"),
End: jsii.String("end"),
ManifestFilter: jsii.String("manifestFilter"),
Start: jsii.String("start"),
TimeDelaySeconds: jsii.Number(123),
},
ManifestLayout: jsii.String("manifestLayout"),
ManifestWindowSeconds: jsii.Number(123),
},
},
Segment: &SegmentProperty{
Encryption: &EncryptionProperty{
EncryptionMethod: &EncryptionMethodProperty{
CmafEncryptionMethod: jsii.String("cmafEncryptionMethod"),
IsmEncryptionMethod: jsii.String("ismEncryptionMethod"),
TsEncryptionMethod: jsii.String("tsEncryptionMethod"),
},
SpekeKeyProvider: &SpekeKeyProviderProperty{
DrmSystems: []*string{
jsii.String("drmSystems"),
},
EncryptionContractConfiguration: &EncryptionContractConfigurationProperty{
PresetSpeke20Audio: jsii.String("presetSpeke20Audio"),
PresetSpeke20Video: jsii.String("presetSpeke20Video"),
},
ResourceId: jsii.String("resourceId"),
RoleArn: jsii.String("roleArn"),
Url: jsii.String("url"),
// the properties below are optional
CertificateArn: jsii.String("certificateArn"),
ContentKeyPeriodConfiguration: &ContentKeyPeriodConfigurationProperty{
ContentKeyPeriodTiming: jsii.String("contentKeyPeriodTiming"),
},
SpekeVersion: jsii.String("spekeVersion"),
},
// the properties below are optional
CmafExcludeSegmentDrmMetadata: jsii.Boolean(false),
ConstantInitializationVector: jsii.String("constantInitializationVector"),
KeyRotationIntervalSeconds: jsii.Number(123),
},
IncludeIframeOnlyStreams: jsii.Boolean(false),
OutputTimestampMode: jsii.String("outputTimestampMode"),
Scte: &ScteProperty{
CustomAdTypes: []*string{
jsii.String("customAdTypes"),
},
ScteFilter: []*string{
jsii.String("scteFilter"),
},
ScteInSegments: jsii.String("scteInSegments"),
},
SegmentDurationSeconds: jsii.Number(123),
SegmentName: jsii.String("segmentName"),
TsIncludeDvbSubtitles: jsii.Boolean(false),
TsUseAudioRenditionGroup: jsii.Boolean(false),
},
StartoverWindowSeconds: jsii.Number(123),
StreamNameOutputMode: jsii.String("streamNameOutputMode"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
UriSeparator: jsii.String("uriSeparator"),
})
Initializer
new CfnOriginEndpoint(scope: Construct, id: string, props: CfnOriginEndpointProps)
CfnOriginEndpoint(scope: Construct, id: str, props: CfnOriginEndpointProps)
new CfnOriginEndpoint(Construct scope, String id, CfnOriginEndpointProps props)
new CfnOriginEndpoint(Construct scope, string id, CfnOriginEndpointProps props)
NewCfnOriginEndpoint(Scope Construct, Id *string, Props CfnOriginEndpointProps)
Construct Props
channelGroupNamestringchannel_group_namestrchannelGroupNameStringChannelGroupNamestringChannelGroupName*stringrequired#containerTypestringcontainer_typestrcontainerTypeStringContainerTypestringContainerType*stringrequired#dashManifestsoptionalIResolvable | IResolvable | CfnOriginEndpoint.DashManifestConfigurationProperty[]dash_manifestsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DashManifestConfigurationProperty]]]dashManifestsoptionalIResolvableDashManifestsoptionalIResolvableDashManifestsoptionalinterface{}#descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#forceEndpointErrorConfigurationoptionalIResolvable | CfnOriginEndpoint.ForceEndpointErrorConfigurationPropertyforce_endpoint_error_configurationoptionaltyping.Union[IResolvable, ForceEndpointErrorConfigurationProperty]forceEndpointErrorConfigurationoptionalIResolvableForceEndpointErrorConfigurationoptionalIResolvableForceEndpointErrorConfigurationoptionalinterface{}#hlsManifestsoptionalIResolvable | IResolvable | CfnOriginEndpoint.HlsManifestConfigurationProperty[]hls_manifestsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, HlsManifestConfigurationProperty]]]hlsManifestsoptionalIResolvableHlsManifestsoptionalIResolvableHlsManifestsoptionalinterface{}#lowLatencyHlsManifestsoptionalIResolvable | IResolvable | CfnOriginEndpoint.LowLatencyHlsManifestConfigurationProperty[]low_latency_hls_manifestsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, LowLatencyHlsManifestConfigurationProperty]]]lowLatencyHlsManifestsoptionalIResolvableLowLatencyHlsManifestsoptionalIResolvableLowLatencyHlsManifestsoptionalinterface{}#mssManifestsoptionalIResolvable | IResolvable | CfnOriginEndpoint.MssManifestConfigurationProperty[]mss_manifestsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MssManifestConfigurationProperty]]]mssManifestsoptionalIResolvableMssManifestsoptionalIResolvableMssManifestsoptionalinterface{}#Each configuration represents a different MSS streaming option available from this endpoint.
originEndpointNamestringorigin_endpoint_namestroriginEndpointNameStringOriginEndpointNamestringOriginEndpointName*stringrequired#segmentoptionalIResolvable | CfnOriginEndpoint.SegmentPropertysegmentoptionaltyping.Union[IResolvable, SegmentProperty]segmentoptionalIResolvableSegmentoptionalIResolvableSegmentoptionalinterface{}#startoverWindowSecondsoptionalnumberstartover_window_secondsoptionalint | floatstartoverWindowSecondsoptionalNumberStartoverWindowSecondsoptionaldoubleStartoverWindowSecondsoptional*float64#Viewers can start-over or catch-up on content that falls within the window.
streamNameOutputModeoptionalstringstream_name_output_modeoptionalstrstreamNameOutputModeoptionalStringStreamNameOutputModeoptionalstringStreamNameOutputModeoptional*string#tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#uriSeparatoroptionalstringuri_separatoroptionalstruriSeparatoroptionalStringUriSeparatoroptionalstringUriSeparatoroptional*string#Properties
attrDashManifestUrlsstring[]attr_dash_manifest_urlstyping.List[str]attrDashManifestUrlsList<String>AttrDashManifestUrlsstring[]AttrDashManifestUrls*[]*string#attrHlsManifestUrlsstring[]attr_hls_manifest_urlstyping.List[str]attrHlsManifestUrlsList<String>AttrHlsManifestUrlsstring[]AttrHlsManifestUrls*[]*string#attrLowLatencyHlsManifestUrlsstring[]attr_low_latency_hls_manifest_urlstyping.List[str]attrLowLatencyHlsManifestUrlsList<String>AttrLowLatencyHlsManifestUrlsstring[]AttrLowLatencyHlsManifestUrls*[]*string#attrModifiedAtstringattr_modified_atstrattrModifiedAtStringAttrModifiedAtstringAttrModifiedAt*string#attrMssManifestUrlsstring[]attr_mss_manifest_urlstyping.List[str]attrMssManifestUrlsList<String>AttrMssManifestUrlsstring[]AttrMssManifestUrls*[]*string#cdkTagManagerTagManagercdk_tag_managerTagManagercdkTagManagerTagManagerCdkTagManagerTagManagerCdkTagManagerTagManager#CFN_RESOURCE_TYPE_NAMEstringcfn_resource_type_namestrCFN_RESOURCE_TYPE_NAMEStringCFN_RESOURCE_TYPE_NAMEstringCFN_RESOURCE_TYPE_NAME*stringstatic#cfnOptionsICfnResourceOptionscfn_optionsICfnResourceOptionscfnOptionsICfnResourceOptionsCfnOptionsICfnResourceOptionsCfnOptionsICfnResourceOptions#cfnResourceTypestringcfn_resource_typestrcfnResourceTypeStringCfnResourceTypestringCfnResourceType*string#channelGroupNamestringchannel_group_namestrchannelGroupNameStringChannelGroupNamestringChannelGroupName*string#creationStackstring[]creation_stacktyping.List[str]creationStackList<String>CreationStackstring[]CreationStack*[]*string#dashManifestsmay be undefinedIResolvable | IResolvable | CfnOriginEndpoint.DashManifestConfigurationProperty[]dash_manifestsmay be undefinedtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DashManifestConfigurationProperty]]]dashManifestsmay be undefinedIResolvableDashManifestsmay be undefinedIResolvableDashManifestsmay be undefinedinterface{}#descriptionmay be undefinedstringdescriptionmay be undefinedstrdescriptionmay be undefinedStringDescriptionmay be undefinedstringDescriptionmay be undefined*string#forceEndpointErrorConfigurationmay be undefinedIResolvable | CfnOriginEndpoint.ForceEndpointErrorConfigurationPropertyforce_endpoint_error_configurationmay be undefinedtyping.Union[IResolvable, ForceEndpointErrorConfigurationProperty]forceEndpointErrorConfigurationmay be undefinedIResolvableForceEndpointErrorConfigurationmay be undefinedIResolvableForceEndpointErrorConfigurationmay be undefinedinterface{}#hlsManifestsmay be undefinedIResolvable | IResolvable | CfnOriginEndpoint.HlsManifestConfigurationProperty[]hls_manifestsmay be undefinedtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, HlsManifestConfigurationProperty]]]hlsManifestsmay be undefinedIResolvableHlsManifestsmay be undefinedIResolvableHlsManifestsmay be undefinedinterface{}#The logical ID of the element is calculated from the path of the resource node in the construct tree.
To override this value, use overrideLogicalId(newLogicalId).
lowLatencyHlsManifestsmay be undefinedIResolvable | IResolvable | CfnOriginEndpoint.LowLatencyHlsManifestConfigurationProperty[]low_latency_hls_manifestsmay be undefinedtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, LowLatencyHlsManifestConfigurationProperty]]]lowLatencyHlsManifestsmay be undefinedIResolvableLowLatencyHlsManifestsmay be undefinedIResolvableLowLatencyHlsManifestsmay be undefinedinterface{}#mssManifestsmay be undefinedIResolvable | IResolvable | CfnOriginEndpoint.MssManifestConfigurationProperty[]mss_manifestsmay be undefinedtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MssManifestConfigurationProperty]]]mssManifestsmay be undefinedIResolvableMssManifestsmay be undefinedIResolvableMssManifestsmay be undefinedinterface{}#originEndpointNamestringorigin_endpoint_namestroriginEndpointNameStringOriginEndpointNamestringOriginEndpointName*string#originEndpointRefOriginEndpointReferenceorigin_endpoint_refOriginEndpointReferenceoriginEndpointRefOriginEndpointReferenceOriginEndpointRefOriginEndpointReferenceOriginEndpointRefOriginEndpointReference#If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through Lazy.any({ produce: resource.ref }).
segmentmay be undefinedIResolvable | CfnOriginEndpoint.SegmentPropertysegmentmay be undefinedtyping.Union[IResolvable, SegmentProperty]segmentmay be undefinedIResolvableSegmentmay be undefinedIResolvableSegmentmay be undefinedinterface{}#CfnElements must be defined within a stack scope (directly or indirectly).
startoverWindowSecondsmay be undefinednumberstartover_window_secondsmay be undefinedint | floatstartoverWindowSecondsmay be undefinedNumberStartoverWindowSecondsmay be undefineddoubleStartoverWindowSecondsmay be undefined*float64#streamNameOutputModemay be undefinedstringstream_name_output_modemay be undefinedstrstreamNameOutputModemay be undefinedStringStreamNameOutputModemay be undefinedstringStreamNameOutputModemay be undefined*string#tagsmay be undefinedCfnTag[]tagsmay be undefinedtyping.List[CfnTag]tagsmay be undefinedList<CfnTag>Tagsmay be undefinedCfnTag[]Tagsmay be undefined*[]CfnTag#uriSeparatormay be undefinedstringuri_separatormay be undefinedstruriSeparatormay be undefinedStringUriSeparatormay be undefinedstringUriSeparatormay be undefined*string#Methods
addDeletionOverride(path: string): voiddef add_deletion_override(self, path: str) -> Nonepublic void addDeletionOverride(String path)public void AddDeletionOverride(string path)func AddDeletionOverride(Path *string)#1 parameter
Parameters
pathpathpathpathPath— The path of the value to delete.
addDependency(target: CfnResource): voiddef add_dependency(self, target: CfnResource) -> Nonepublic void addDependency(CfnResource target)public void AddDependency(CfnResource target)func AddDependency(Target CfnResource)deprecated#This method has been renamed to addResourceDependency to more clearly set it apart from construct.node.addDependency. See the documentation of that function for more details.
addDependsOn(target: CfnResource): voiddef add_depends_on(self, target: CfnResource) -> Nonepublic void addDependsOn(CfnResource target)public void AddDependsOn(CfnResource target)func AddDependsOn(Target CfnResource)deprecated#notes
This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.
This method has been renamed to addResourceDependency, which makes it more clear that this method operates at a different level from the construct-level construct.node.addDependency() mechanism.
addMetadata(key: string, value: any): voiddef add_metadata(self, key: str, value: Any) -> Nonepublic void addMetadata(String key, Object value)public void AddMetadata(string key, object value)func AddMetadata(Key *string, Value interface{})#addOverride(path: string, value: any): voiddef add_override(self, path: str, value: Any) -> Nonepublic void addOverride(String path, Object value)public void AddOverride(string path, object value)func AddOverride(Path *string, Value interface{})#notes · 2 parameters
To add a property override, either use addPropertyOverride or prefix path with "Properties." (i.e. Properties.TopicName).
If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.
To include a literal . in the property name, prefix with a \. In most programming languages you will need to write this as "\\." because the \ itself will need to be escaped.
For example,
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
would add the overrides
"Properties": {
"GlobalSecondaryIndexes": [
{
"Projection": {
"NonKeyAttributes": [ "myattribute" ]
...
}
...
},
{
"ProjectionType": "INCLUDE"
...
},
]
...
}
The value argument to addOverride will not be processed or translated in any way. Pass raw JSON values in here with the correct capitalization for CloudFormation. If you pass CDK classes or structs, they will be rendered with lowercased key names, and CloudFormation will reject the template.
Parameters
pathpathpathpathPath— - The path of the property, you can use dot notation to override values in complex types.valuevaluevaluevalueValue— - The value.
addPropertyDeletionOverride(propertyPath: string): voiddef add_property_deletion_override(self, property_path: str) -> Nonepublic void addPropertyDeletionOverride(String propertyPath)public void AddPropertyDeletionOverride(string propertyPath)func AddPropertyDeletionOverride(PropertyPath *string)#1 parameter
Parameters
propertyPathproperty_pathpropertyPathpropertyPathPropertyPath— The path to the property.
addPropertyOverride(propertyPath: string, value: any): voiddef add_property_override(self, property_path: str, value: Any) -> Nonepublic void addPropertyOverride(String propertyPath, Object value)public void AddPropertyOverride(string propertyPath, object value)func AddPropertyOverride(PropertyPath *string, Value interface{})#Syntactic sugar for addOverride("Properties.<...>", value).
2 parameters
Parameters
propertyPathproperty_pathpropertyPathpropertyPathPropertyPath— The path of the property.valuevaluevaluevalueValue— The value.
addResourceDependency(target: CfnResource, reason?: string): voiddef add_resource_dependency(self, target: CfnResource, reason: typing.Optional[str] = None) -> Nonepublic void addResourceDependency(CfnResource target, String reason)public void AddResourceDependency(CfnResource target, string? reason = null)func AddResourceDependency(Target CfnResource, Reason *string)#notes
This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.
This method only adds dependencies between L1 resources. If you are looking for a generic construct-to-construct dependency mechanism that works for all constructs including L2s, use construct.node.addDependency instead.
applyCrossStackReferenceStrength(strength: ReferenceStrength): voiddef apply_cross_stack_reference_strength(self, strength: ReferenceStrength) -> Nonepublic void applyCrossStackReferenceStrength(ReferenceStrength strength)public void ApplyCrossStackReferenceStrength(ReferenceStrength strength)func ApplyCrossStackReferenceStrength(Strength ReferenceStrength)#When set, any cross-stack reference to this resource will use the specified strength instead of the global default from the consuming stack's context.
1 parameter
Parameters
strengthstrengthstrengthstrengthStrength— - The reference strength to use for this resource.
applyRemovalPolicy(policy?: RemovalPolicy, options?: RemovalPolicyOptions): voiddef apply_removal_policy(self, policy: typing.Optional[RemovalPolicy] = None, options: typing.Optional[RemovalPolicyOptions] = None) -> Nonepublic void applyRemovalPolicy(RemovalPolicy policy, RemovalPolicyOptions options)public void ApplyRemovalPolicy(RemovalPolicy? policy = null, RemovalPolicyOptions? options = null)func ApplyRemovalPolicy(Policy RemovalPolicy, Options RemovalPolicyOptions)#notes
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN). In some cases, a snapshot can be taken of the resource prior to deletion (RemovalPolicy.SNAPSHOT). A list of resources that support this policy can be found in the following link:
arnForOriginEndpoint(resource: IOriginEndpointRef): string@staticmethod def arn_for_origin_endpoint(resource: IOriginEndpointRef) -> strpublic static String arnForOriginEndpoint(IOriginEndpointRef resource)public static string ArnForOriginEndpoint(IOriginEndpointRef resource)func ArnForOriginEndpoint(Resource IOriginEndpointRef) *stringstatic#cfnPropertyName(cdkPropertyName: string): stringdef cfn_property_name(self, cdk_property_name: str) -> strpublic String cfnPropertyName(String cdkPropertyName)public string CfnPropertyName(string cdkPropertyName)func CfnPropertyName(CdkPropertyName *string) *string#getAtt(attributeName: string, typeHint?: ResolutionTypeHint): Referencedef get_att(self, attribute_name: str, type_hint: typing.Optional[ResolutionTypeHint] = None) -> Referencepublic Reference getAtt(String attributeName, ResolutionTypeHint typeHint)public Reference GetAtt(string attributeName, ResolutionTypeHint? typeHint = null)func GetAtt(AttributeName *string, TypeHint ResolutionTypeHint) Reference#Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
1 parameter
Parameters
attributeNameattribute_nameattributeNameattributeNameAttributeName— The name of the attribute.
getMetadata(key: string): anydef get_metadata(self, key: str) -> Anypublic Object getMetadata(String key)public object GetMetadata(string key)func GetMetadata(Key *string) interface{}#inspect(inspector: TreeInspector): voiddef inspect(self, inspector: TreeInspector) -> Nonepublic void inspect(TreeInspector inspector)public void Inspect(TreeInspector inspector)func Inspect(Inspector TreeInspector)#1 parameter
Parameters
inspectorinspectorinspectorinspectorInspector— tree inspector to collect and process attributes.
isCfnElement(x: any): boolean@staticmethod def is_cfn_element(x: Any) -> boolpublic static Boolean isCfnElement(Object x)public static bool IsCfnElement(object x)func IsCfnElement(X interface{}) *boolstatic#Uses duck-typing instead of instanceof to allow stack elements from different versions of this library to be included in the same stack.
returns
Returns: The construct as a stack element or undefined if it is not a stack element.
isCfnOriginEndpoint(x: any): boolean@staticmethod def is_cfn_origin_endpoint(x: Any) -> boolpublic static Boolean isCfnOriginEndpoint(Object x)public static bool IsCfnOriginEndpoint(object x)func IsCfnOriginEndpoint(X interface{}) *boolstatic#isCfnResource(x: any): boolean@staticmethod def is_cfn_resource(x: Any) -> boolpublic static Boolean isCfnResource(Object x)public static bool IsCfnResource(object x)func IsCfnResource(X interface{}) *boolstatic#isConstruct(x: any): boolean@staticmethod def is_construct(x: Any) -> boolpublic static Boolean isConstruct(Object x)public static bool IsConstruct(object x)func IsConstruct(X interface{}) *boolstatic#notes · 1 parameter · returns
Use this method instead of instanceof to properly detect Construct instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on disk are seen as independent, completely different libraries. As a consequence, the class Construct in each copy of the constructs library is seen as a different class, and an instance of one class will not test as instanceof the other class. npm install will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the constructs library can be accidentally installed, and instanceof will behave unpredictably. It is safest to avoid using instanceof, and using this type-testing method instead.
Parameters
xxxxX— Any object.
Returns: true if x is an object created from a class which extends Construct.
obtainDependencies(): Stack | CfnResource[]def obtain_dependencies(self, ) -> typing.List[typing.Union[Stack, CfnResource]]public List<Stack> obtainDependencies()public Stack[] ObtainDependencies()func ObtainDependencies() *[]interface{}#For resources depended on directly, returns the CfnResource object. For dependencies on other stacks, returns the Stack object. The order of the array is not guaranteed.
overrideLogicalId(newLogicalId: string): voiddef override_logical_id(self, new_logical_id: str) -> Nonepublic void overrideLogicalId(String newLogicalId)public void OverrideLogicalId(string newLogicalId)func OverrideLogicalId(NewLogicalId *string)#1 parameter
Parameters
newLogicalIdnew_logical_idnewLogicalIdnewLogicalIdNewLogicalId— The new logical ID to use for this stack element.
removeDependency(target: CfnResource): voiddef remove_dependency(self, target: CfnResource) -> Nonepublic void removeDependency(CfnResource target)public void RemoveDependency(CfnResource target)func RemoveDependency(Target CfnResource)deprecated#This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.
removeResourceDependency(target: CfnResource): voiddef remove_resource_dependency(self, target: CfnResource) -> Nonepublic void removeResourceDependency(CfnResource target)public void RemoveResourceDependency(CfnResource target)func RemoveResourceDependency(Target CfnResource)#This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.
replaceDependency(target: CfnResource, newTarget: CfnResource): voiddef replace_dependency(self, target: CfnResource, new_target: CfnResource) -> Nonepublic void replaceDependency(CfnResource target, CfnResource newTarget)public void ReplaceDependency(CfnResource target, CfnResource newTarget)func ReplaceDependency(Target CfnResource, NewTarget CfnResource)#2 parameters
Parameters
targettargettargettargetTarget— The dependency to replace.newTargetnew_targetnewTargetnewTargetNewTarget— The new dependency to add.
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string#returns
Returns: a string representation of this resource
with(...mixins: IMixin[]): IConstructdef with(self, mixins: IMixin) -> IConstructpublic IConstruct with(IMixin mixins)public IConstruct With(IMixin mixins)func With(Mixins IMixin) IConstruct#Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited. Use multiple with() calls if subsequent mixins should apply to added constructs.