@pulumi/aws-native
Version:
The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)
105 lines • 5.75 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.OriginEndpoint = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* <p>Represents an origin endpoint that is associated with a channel, offering a dynamically repackaged version of its content through various streaming media protocols. The content can be efficiently disseminated to end-users via a Content Delivery Network (CDN), like Amazon CloudFront.</p>
*/
class OriginEndpoint extends pulumi.CustomResource {
/**
* Get an existing OriginEndpoint resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, opts) {
return new OriginEndpoint(name, undefined, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of OriginEndpoint. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === OriginEndpoint.__pulumiType;
}
/**
* Create a OriginEndpoint resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name, args, opts) {
let resourceInputs = {};
opts = opts || {};
if (!opts.id) {
if (args?.channelGroupName === undefined && !opts.urn) {
throw new Error("Missing required property 'channelGroupName'");
}
if (args?.channelName === undefined && !opts.urn) {
throw new Error("Missing required property 'channelName'");
}
if (args?.containerType === undefined && !opts.urn) {
throw new Error("Missing required property 'containerType'");
}
resourceInputs["channelGroupName"] = args?.channelGroupName;
resourceInputs["channelName"] = args?.channelName;
resourceInputs["containerType"] = args?.containerType;
resourceInputs["dashManifests"] = args?.dashManifests;
resourceInputs["description"] = args?.description;
resourceInputs["forceEndpointErrorConfiguration"] = args?.forceEndpointErrorConfiguration;
resourceInputs["hlsManifests"] = args?.hlsManifests;
resourceInputs["lowLatencyHlsManifests"] = args?.lowLatencyHlsManifests;
resourceInputs["mssManifests"] = args?.mssManifests;
resourceInputs["originEndpointName"] = args?.originEndpointName;
resourceInputs["segment"] = args?.segment;
resourceInputs["startoverWindowSeconds"] = args?.startoverWindowSeconds;
resourceInputs["tags"] = args?.tags;
resourceInputs["arn"] = undefined /*out*/;
resourceInputs["createdAt"] = undefined /*out*/;
resourceInputs["dashManifestUrls"] = undefined /*out*/;
resourceInputs["hlsManifestUrls"] = undefined /*out*/;
resourceInputs["lowLatencyHlsManifestUrls"] = undefined /*out*/;
resourceInputs["modifiedAt"] = undefined /*out*/;
resourceInputs["mssManifestUrls"] = undefined /*out*/;
}
else {
resourceInputs["arn"] = undefined /*out*/;
resourceInputs["channelGroupName"] = undefined /*out*/;
resourceInputs["channelName"] = undefined /*out*/;
resourceInputs["containerType"] = undefined /*out*/;
resourceInputs["createdAt"] = undefined /*out*/;
resourceInputs["dashManifestUrls"] = undefined /*out*/;
resourceInputs["dashManifests"] = undefined /*out*/;
resourceInputs["description"] = undefined /*out*/;
resourceInputs["forceEndpointErrorConfiguration"] = undefined /*out*/;
resourceInputs["hlsManifestUrls"] = undefined /*out*/;
resourceInputs["hlsManifests"] = undefined /*out*/;
resourceInputs["lowLatencyHlsManifestUrls"] = undefined /*out*/;
resourceInputs["lowLatencyHlsManifests"] = undefined /*out*/;
resourceInputs["modifiedAt"] = undefined /*out*/;
resourceInputs["mssManifestUrls"] = undefined /*out*/;
resourceInputs["mssManifests"] = undefined /*out*/;
resourceInputs["originEndpointName"] = undefined /*out*/;
resourceInputs["segment"] = undefined /*out*/;
resourceInputs["startoverWindowSeconds"] = undefined /*out*/;
resourceInputs["tags"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const replaceOnChanges = { replaceOnChanges: ["channelGroupName", "channelName", "originEndpointName"] };
opts = pulumi.mergeOptions(opts, replaceOnChanges);
super(OriginEndpoint.__pulumiType, name, resourceInputs, opts);
}
}
exports.OriginEndpoint = OriginEndpoint;
/** @internal */
OriginEndpoint.__pulumiType = 'aws-native:mediapackagev2:OriginEndpoint';
//# sourceMappingURL=originEndpoint.js.map