Experimental
@aws-cdk/aws-mediapackagev2-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
DashBaseUrlProperty Struct
The base URLs to use for retrieving segments.
You can specify multiple locations and indicate the priority and weight for when each should be used, for use in multi-CDN workflows.
| Stability | Experimental |
|---|---|
| Source | lib/endpoint.ts |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as mediapackagev2_alpha from '@aws-cdk/aws-mediapackagev2-alpha';
const dashBaseUrlProperty: mediapackagev2_alpha.DashBaseUrlProperty = {
url: 'url',
// the properties below are optional
dvbPriority: 123,
dvbWeight: 123,
serviceLocation: 'serviceLocation',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_mediapackagev2_alpha as mediapackagev2_alpha
dash_base_url_property = mediapackagev2_alpha.DashBaseUrlProperty(
url="url",
# the properties below are optional
dvb_priority=123,
dvb_weight=123,
service_location="serviceLocation"
)
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.mediapackagev2.alpha.*;
DashBaseUrlProperty dashBaseUrlProperty = DashBaseUrlProperty.builder()
.url("url")
// the properties below are optional
.dvbPriority(123)
.dvbWeight(123)
.serviceLocation("serviceLocation")
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaPackageV2.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaPackageV2.Alpha;
var dashBaseUrlProperty = new DashBaseUrlProperty {
Url = "url",
// the properties below are optional
DvbPriority = 123,
DvbWeight = 123,
ServiceLocation = "serviceLocation"
};
go
// Install: go get github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import mediapackagev2_alpha "github.com/aws/aws-cdk-go/awsmediapackagev2alpha"
dashBaseUrlProperty := &DashBaseUrlProperty{
Url: jsii.String("url"),
// the properties below are optional
DvbPriority: jsii.Number(123),
DvbWeight: jsii.Number(123),
ServiceLocation: jsii.String("serviceLocation"),
}
Properties
dvbPriorityoptionalnumberdvb_priorityoptionalint | floatdvbPriorityoptionalNumberDvbPriorityoptionaldoubleDvbPriorityoptional*float64 #For use with DVB-DASH profiles only.
Default: No priority specified
The priority of this location for serving segments. The lower the number, the higher the priority.
dvbWeightoptionalnumberdvb_weightoptionalint | floatdvbWeightoptionalNumberDvbWeightoptionaldoubleDvbWeightoptional*float64 #For use with DVB-DASH profiles only.
Default: No weight specified
The weighting for source locations that have the same priority.
serviceLocationoptionalstringservice_locationoptionalstrserviceLocationoptionalStringServiceLocationoptionalstringServiceLocationoptional*string #The name of the source location.
Default: No service location specified
A source location for segments.