UNPKG

@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)

104 lines 6.16 kB
"use strict"; // *** 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, Object.assign(Object.assign({}, 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 || args.adDecisionServerUrl === undefined) && !opts.urn) { throw new Error("Missing required property 'adDecisionServerUrl'"); } if ((!args || args.videoContentSourceUrl === undefined) && !opts.urn) { throw new Error("Missing required property 'videoContentSourceUrl'"); } resourceInputs["adConditioningConfiguration"] = args ? args.adConditioningConfiguration : undefined; resourceInputs["adDecisionServerUrl"] = args ? args.adDecisionServerUrl : undefined; resourceInputs["availSuppression"] = args ? args.availSuppression : undefined; resourceInputs["bumper"] = args ? args.bumper : undefined; resourceInputs["cdnConfiguration"] = args ? args.cdnConfiguration : undefined; resourceInputs["configurationAliases"] = args ? args.configurationAliases : undefined; resourceInputs["dashConfiguration"] = args ? args.dashConfiguration : undefined; resourceInputs["hlsConfiguration"] = args ? args.hlsConfiguration : undefined; resourceInputs["insertionMode"] = args ? args.insertionMode : undefined; resourceInputs["livePreRollConfiguration"] = args ? args.livePreRollConfiguration : undefined; resourceInputs["logConfiguration"] = args ? args.logConfiguration : undefined; resourceInputs["manifestProcessingRules"] = args ? args.manifestProcessingRules : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["personalizationThresholdSeconds"] = args ? args.personalizationThresholdSeconds : undefined; resourceInputs["slateAdUrl"] = args ? args.slateAdUrl : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["transcodeProfileName"] = args ? args.transcodeProfileName : undefined; resourceInputs["videoContentSourceUrl"] = args ? args.videoContentSourceUrl : undefined; resourceInputs["playbackConfigurationArn"] = undefined /*out*/; resourceInputs["playbackEndpointPrefix"] = undefined /*out*/; resourceInputs["sessionInitializationEndpointPrefix"] = undefined /*out*/; } else { resourceInputs["adConditioningConfiguration"] = 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