All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.medialive.Input Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.medialive;

import com.pulumi.aws.Utilities;
import com.pulumi.aws.medialive.InputArgs;
import com.pulumi.aws.medialive.inputs.InputState;
import com.pulumi.aws.medialive.outputs.InputDestination;
import com.pulumi.aws.medialive.outputs.InputInputDevice;
import com.pulumi.aws.medialive.outputs.InputMediaConnectFlow;
import com.pulumi.aws.medialive.outputs.InputSource;
import com.pulumi.aws.medialive.outputs.InputVpc;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Resource for managing an AWS MediaLive Input.
 * 
 * ## Example Usage
 * 
 * ### Basic Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.medialive.InputSecurityGroup;
 * import com.pulumi.aws.medialive.InputSecurityGroupArgs;
 * import com.pulumi.aws.medialive.inputs.InputSecurityGroupWhitelistRuleArgs;
 * import com.pulumi.aws.medialive.Input;
 * import com.pulumi.aws.medialive.InputArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * 
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 * 
 *     public static void stack(Context ctx) {
 *         var example = new InputSecurityGroup("example", InputSecurityGroupArgs.builder()
 *             .whitelistRules(InputSecurityGroupWhitelistRuleArgs.builder()
 *                 .cidr("10.0.0.8/32")
 *                 .build())
 *             .tags(Map.of("ENVIRONMENT", "prod"))
 *             .build());
 * 
 *         var exampleInput = new Input("exampleInput", InputArgs.builder()
 *             .name("example-input")
 *             .inputSecurityGroups(example.id())
 *             .type("UDP_PUSH")
 *             .tags(Map.of("ENVIRONMENT", "prod"))
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * Using `pulumi import`, import MediaLive Input using the `id`. For example: * * ```sh * $ pulumi import aws:medialive/input:Input example 12345678 * ``` * */ @ResourceType(type="aws:medialive/input:Input") public class Input extends com.pulumi.resources.CustomResource { /** * ARN of the Input. * */ @Export(name="arn", refs={String.class}, tree="[0]") private Output arn; /** * @return ARN of the Input. * */ public Output arn() { return this.arn; } /** * Channels attached to Input. * */ @Export(name="attachedChannels", refs={List.class,String.class}, tree="[0,1]") private Output> attachedChannels; /** * @return Channels attached to Input. * */ public Output> attachedChannels() { return this.attachedChannels; } /** * Destination settings for PUSH type inputs. See Destinations for more details. * */ @Export(name="destinations", refs={List.class,InputDestination.class}, tree="[0,1]") private Output> destinations; /** * @return Destination settings for PUSH type inputs. See Destinations for more details. * */ public Output>> destinations() { return Codegen.optional(this.destinations); } /** * The input class. * */ @Export(name="inputClass", refs={String.class}, tree="[0]") private Output inputClass; /** * @return The input class. * */ public Output inputClass() { return this.inputClass; } /** * Settings for the devices. See Input Devices for more details. * */ @Export(name="inputDevices", refs={List.class,InputInputDevice.class}, tree="[0,1]") private Output> inputDevices; /** * @return Settings for the devices. See Input Devices for more details. * */ public Output> inputDevices() { return this.inputDevices; } /** * A list of IDs for all Inputs which are partners of this one. * */ @Export(name="inputPartnerIds", refs={List.class,String.class}, tree="[0,1]") private Output> inputPartnerIds; /** * @return A list of IDs for all Inputs which are partners of this one. * */ public Output> inputPartnerIds() { return this.inputPartnerIds; } /** * List of input security groups. * */ @Export(name="inputSecurityGroups", refs={List.class,String.class}, tree="[0,1]") private Output> inputSecurityGroups; /** * @return List of input security groups. * */ public Output>> inputSecurityGroups() { return Codegen.optional(this.inputSecurityGroups); } /** * Source type of the input. * */ @Export(name="inputSourceType", refs={String.class}, tree="[0]") private Output inputSourceType; /** * @return Source type of the input. * */ public Output inputSourceType() { return this.inputSourceType; } /** * A list of the MediaConnect Flows. See Media Connect Flows for more details. * */ @Export(name="mediaConnectFlows", refs={List.class,InputMediaConnectFlow.class}, tree="[0,1]") private Output> mediaConnectFlows; /** * @return A list of the MediaConnect Flows. See Media Connect Flows for more details. * */ public Output> mediaConnectFlows() { return this.mediaConnectFlows; } /** * Name of the input. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Name of the input. * */ public Output name() { return this.name; } /** * The ARN of the role this input assumes during and after creation. * */ @Export(name="roleArn", refs={String.class}, tree="[0]") private Output roleArn; /** * @return The ARN of the role this input assumes during and after creation. * */ public Output roleArn() { return this.roleArn; } /** * The source URLs for a PULL-type input. See Sources for more details. * */ @Export(name="sources", refs={List.class,InputSource.class}, tree="[0,1]") private Output> sources; /** * @return The source URLs for a PULL-type input. See Sources for more details. * */ public Output> sources() { return this.sources; } /** * A map of tags to assign to the Input. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return A map of tags to assign to the Input. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * @deprecated * Please use `tags` instead. * */ @Deprecated /* Please use `tags` instead. */ @Export(name="tagsAll", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tagsAll; public Output> tagsAll() { return this.tagsAll; } /** * The different types of inputs that AWS Elemental MediaLive supports. * * The following arguments are optional: * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The different types of inputs that AWS Elemental MediaLive supports. * * The following arguments are optional: * */ public Output type() { return this.type; } /** * Settings for a private VPC Input. See VPC for more details. * */ @Export(name="vpc", refs={InputVpc.class}, tree="[0]") private Output vpc; /** * @return Settings for a private VPC Input. See VPC for more details. * */ public Output> vpc() { return Codegen.optional(this.vpc); } /** * * @param name The _unique_ name of the resulting resource. */ public Input(java.lang.String name) { this(name, InputArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Input(java.lang.String name, InputArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public Input(java.lang.String name, InputArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:medialive/input:Input", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Input(java.lang.String name, Output id, @Nullable InputState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:medialive/input:Input", name, state, makeResourceOptions(options, id), false); } private static InputArgs makeArgs(InputArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? InputArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host 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 state * @param options Optional settings to control the behavior of the CustomResource. */ public static Input get(java.lang.String name, Output id, @Nullable InputState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Input(name, id, state, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy