@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)
106 lines • 5.97 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.PlaybackConfiguration = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Resource schema for AWS::MediaTailor::PlaybackConfiguration
*/
class PlaybackConfiguration extends pulumi.CustomResource {
/**
* Get an existing PlaybackConfiguration 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 PlaybackConfiguration(name, undefined, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of PlaybackConfiguration. 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'] === PlaybackConfiguration.__pulumiType;
}
/**
* Create a PlaybackConfiguration 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?.adDecisionServerUrl === undefined && !opts.urn) {
throw new Error("Missing required property 'adDecisionServerUrl'");
}
if (args?.videoContentSourceUrl === undefined && !opts.urn) {
throw new Error("Missing required property 'videoContentSourceUrl'");
}
resourceInputs["adConditioningConfiguration"] = args?.adConditioningConfiguration;
resourceInputs["adDecisionServerConfiguration"] = args?.adDecisionServerConfiguration;
resourceInputs["adDecisionServerUrl"] = args?.adDecisionServerUrl;
resourceInputs["availSuppression"] = args?.availSuppression;
resourceInputs["bumper"] = args?.bumper;
resourceInputs["cdnConfiguration"] = args?.cdnConfiguration;
resourceInputs["configurationAliases"] = args?.configurationAliases;
resourceInputs["dashConfiguration"] = args?.dashConfiguration;
resourceInputs["hlsConfiguration"] = args?.hlsConfiguration;
resourceInputs["insertionMode"] = args?.insertionMode;
resourceInputs["livePreRollConfiguration"] = args?.livePreRollConfiguration;
resourceInputs["logConfiguration"] = args?.logConfiguration;
resourceInputs["manifestProcessingRules"] = args?.manifestProcessingRules;
resourceInputs["name"] = args?.name;
resourceInputs["personalizationThresholdSeconds"] = args?.personalizationThresholdSeconds;
resourceInputs["slateAdUrl"] = args?.slateAdUrl;
resourceInputs["tags"] = args?.tags;
resourceInputs["transcodeProfileName"] = args?.transcodeProfileName;
resourceInputs["videoContentSourceUrl"] = args?.videoContentSourceUrl;
resourceInputs["playbackConfigurationArn"] = undefined /*out*/;
resourceInputs["playbackEndpointPrefix"] = undefined /*out*/;
resourceInputs["sessionInitializationEndpointPrefix"] = undefined /*out*/;
}
else {
resourceInputs["adConditioningConfiguration"] = undefined /*out*/;
resourceInputs["adDecisionServerConfiguration"] = undefined /*out*/;
resourceInputs["adDecisionServerUrl"] = undefined /*out*/;
resourceInputs["availSuppression"] = undefined /*out*/;
resourceInputs["bumper"] = undefined /*out*/;
resourceInputs["cdnConfiguration"] = undefined /*out*/;
resourceInputs["configurationAliases"] = undefined /*out*/;
resourceInputs["dashConfiguration"] = undefined /*out*/;
resourceInputs["hlsConfiguration"] = undefined /*out*/;
resourceInputs["insertionMode"] = undefined /*out*/;
resourceInputs["livePreRollConfiguration"] = undefined /*out*/;
resourceInputs["logConfiguration"] = undefined /*out*/;
resourceInputs["manifestProcessingRules"] = undefined /*out*/;
resourceInputs["name"] = undefined /*out*/;
resourceInputs["personalizationThresholdSeconds"] = undefined /*out*/;
resourceInputs["playbackConfigurationArn"] = undefined /*out*/;
resourceInputs["playbackEndpointPrefix"] = undefined /*out*/;
resourceInputs["sessionInitializationEndpointPrefix"] = undefined /*out*/;
resourceInputs["slateAdUrl"] = undefined /*out*/;
resourceInputs["tags"] = undefined /*out*/;
resourceInputs["transcodeProfileName"] = undefined /*out*/;
resourceInputs["videoContentSourceUrl"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const replaceOnChanges = { replaceOnChanges: ["name"] };
opts = pulumi.mergeOptions(opts, replaceOnChanges);
super(PlaybackConfiguration.__pulumiType, name, resourceInputs, opts);
}
}
exports.PlaybackConfiguration = PlaybackConfiguration;
/** @internal */
PlaybackConfiguration.__pulumiType = 'aws-native:mediatailor:PlaybackConfiguration';
//# sourceMappingURL=playbackConfiguration.js.map