1. Packages
  2. AWS Classic
  3. API Docs
  4. medialive
  5. InputSecurityGroup

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.medialive.InputSecurityGroup

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    Resource for managing an AWS MediaLive InputSecurityGroup.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.medialive.InputSecurityGroup("example", {
        whitelistRules: [{
            cidr: "10.0.0.8/32",
        }],
        tags: {
            ENVIRONMENT: "prod",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.medialive.InputSecurityGroup("example",
        whitelist_rules=[{
            "cidr": "10.0.0.8/32",
        }],
        tags={
            "ENVIRONMENT": "prod",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/medialive"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := medialive.NewInputSecurityGroup(ctx, "example", &medialive.InputSecurityGroupArgs{
    			WhitelistRules: medialive.InputSecurityGroupWhitelistRuleArray{
    				&medialive.InputSecurityGroupWhitelistRuleArgs{
    					Cidr: pulumi.String("10.0.0.8/32"),
    				},
    			},
    			Tags: pulumi.StringMap{
    				"ENVIRONMENT": pulumi.String("prod"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.MediaLive.InputSecurityGroup("example", new()
        {
            WhitelistRules = new[]
            {
                new Aws.MediaLive.Inputs.InputSecurityGroupWhitelistRuleArgs
                {
                    Cidr = "10.0.0.8/32",
                },
            },
            Tags = 
            {
                { "ENVIRONMENT", "prod" },
            },
        });
    
    });
    
    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 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());
    
        }
    }
    
    resources:
      example:
        type: aws:medialive:InputSecurityGroup
        properties:
          whitelistRules:
            - cidr: 10.0.0.8/32
          tags:
            ENVIRONMENT: prod
    

    Create InputSecurityGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new InputSecurityGroup(name: string, args: InputSecurityGroupArgs, opts?: CustomResourceOptions);
    @overload
    def InputSecurityGroup(resource_name: str,
                           args: InputSecurityGroupArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def InputSecurityGroup(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           whitelist_rules: Optional[Sequence[InputSecurityGroupWhitelistRuleArgs]] = None,
                           tags: Optional[Mapping[str, str]] = None)
    func NewInputSecurityGroup(ctx *Context, name string, args InputSecurityGroupArgs, opts ...ResourceOption) (*InputSecurityGroup, error)
    public InputSecurityGroup(string name, InputSecurityGroupArgs args, CustomResourceOptions? opts = null)
    public InputSecurityGroup(String name, InputSecurityGroupArgs args)
    public InputSecurityGroup(String name, InputSecurityGroupArgs args, CustomResourceOptions options)
    
    type: aws:medialive:InputSecurityGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args InputSecurityGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args InputSecurityGroupArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args InputSecurityGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InputSecurityGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InputSecurityGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var inputSecurityGroupResource = new Aws.MediaLive.InputSecurityGroup("inputSecurityGroupResource", new()
    {
        WhitelistRules = new[]
        {
            new Aws.MediaLive.Inputs.InputSecurityGroupWhitelistRuleArgs
            {
                Cidr = "string",
            },
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := medialive.NewInputSecurityGroup(ctx, "inputSecurityGroupResource", &medialive.InputSecurityGroupArgs{
    	WhitelistRules: medialive.InputSecurityGroupWhitelistRuleArray{
    		&medialive.InputSecurityGroupWhitelistRuleArgs{
    			Cidr: pulumi.String("string"),
    		},
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var inputSecurityGroupResource = new InputSecurityGroup("inputSecurityGroupResource", InputSecurityGroupArgs.builder()
        .whitelistRules(InputSecurityGroupWhitelistRuleArgs.builder()
            .cidr("string")
            .build())
        .tags(Map.of("string", "string"))
        .build());
    
    input_security_group_resource = aws.medialive.InputSecurityGroup("inputSecurityGroupResource",
        whitelist_rules=[{
            "cidr": "string",
        }],
        tags={
            "string": "string",
        })
    
    const inputSecurityGroupResource = new aws.medialive.InputSecurityGroup("inputSecurityGroupResource", {
        whitelistRules: [{
            cidr: "string",
        }],
        tags: {
            string: "string",
        },
    });
    
    type: aws:medialive:InputSecurityGroup
    properties:
        tags:
            string: string
        whitelistRules:
            - cidr: string
    

    InputSecurityGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The InputSecurityGroup resource accepts the following input properties:

    WhitelistRules List<InputSecurityGroupWhitelistRule>

    Whitelist rules. See Whitelist Rules for more details.

    The following arguments are optional:

    Tags Dictionary<string, string>
    A map of tags to assign to the InputSecurityGroup. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    WhitelistRules []InputSecurityGroupWhitelistRuleArgs

    Whitelist rules. See Whitelist Rules for more details.

    The following arguments are optional:

    Tags map[string]string
    A map of tags to assign to the InputSecurityGroup. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    whitelistRules List<InputSecurityGroupWhitelistRule>

    Whitelist rules. See Whitelist Rules for more details.

    The following arguments are optional:

    tags Map<String,String>
    A map of tags to assign to the InputSecurityGroup. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    whitelistRules InputSecurityGroupWhitelistRule[]

    Whitelist rules. See Whitelist Rules for more details.

    The following arguments are optional:

    tags {[key: string]: string}
    A map of tags to assign to the InputSecurityGroup. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    whitelist_rules Sequence[InputSecurityGroupWhitelistRuleArgs]

    Whitelist rules. See Whitelist Rules for more details.

    The following arguments are optional:

    tags Mapping[str, str]
    A map of tags to assign to the InputSecurityGroup. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    whitelistRules List<Property Map>

    Whitelist rules. See Whitelist Rules for more details.

    The following arguments are optional:

    tags Map<String>
    A map of tags to assign to the InputSecurityGroup. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the InputSecurityGroup resource produces the following output properties:

    Arn string
    ARN of the InputSecurityGroup.
    Id string
    The provider-assigned unique ID for this managed resource.
    Inputs List<string>
    The list of inputs currently using this InputSecurityGroup.
    TagsAll Dictionary<string, string>

    Deprecated: Please use tags instead.

    Arn string
    ARN of the InputSecurityGroup.
    Id string
    The provider-assigned unique ID for this managed resource.
    Inputs []string
    The list of inputs currently using this InputSecurityGroup.
    TagsAll map[string]string

    Deprecated: Please use tags instead.

    arn String
    ARN of the InputSecurityGroup.
    id String
    The provider-assigned unique ID for this managed resource.
    inputs List<String>
    The list of inputs currently using this InputSecurityGroup.
    tagsAll Map<String,String>

    Deprecated: Please use tags instead.

    arn string
    ARN of the InputSecurityGroup.
    id string
    The provider-assigned unique ID for this managed resource.
    inputs string[]
    The list of inputs currently using this InputSecurityGroup.
    tagsAll {[key: string]: string}

    Deprecated: Please use tags instead.

    arn str
    ARN of the InputSecurityGroup.
    id str
    The provider-assigned unique ID for this managed resource.
    inputs Sequence[str]
    The list of inputs currently using this InputSecurityGroup.
    tags_all Mapping[str, str]

    Deprecated: Please use tags instead.

    arn String
    ARN of the InputSecurityGroup.
    id String
    The provider-assigned unique ID for this managed resource.
    inputs List<String>
    The list of inputs currently using this InputSecurityGroup.
    tagsAll Map<String>

    Deprecated: Please use tags instead.

    Look up Existing InputSecurityGroup Resource

    Get an existing InputSecurityGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: InputSecurityGroupState, opts?: CustomResourceOptions): InputSecurityGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            inputs: Optional[Sequence[str]] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            whitelist_rules: Optional[Sequence[InputSecurityGroupWhitelistRuleArgs]] = None) -> InputSecurityGroup
    func GetInputSecurityGroup(ctx *Context, name string, id IDInput, state *InputSecurityGroupState, opts ...ResourceOption) (*InputSecurityGroup, error)
    public static InputSecurityGroup Get(string name, Input<string> id, InputSecurityGroupState? state, CustomResourceOptions? opts = null)
    public static InputSecurityGroup get(String name, Output<String> id, InputSecurityGroupState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    ARN of the InputSecurityGroup.
    Inputs List<string>
    The list of inputs currently using this InputSecurityGroup.
    Tags Dictionary<string, string>
    A map of tags to assign to the InputSecurityGroup. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>

    Deprecated: Please use tags instead.

    WhitelistRules List<InputSecurityGroupWhitelistRule>

    Whitelist rules. See Whitelist Rules for more details.

    The following arguments are optional:

    Arn string
    ARN of the InputSecurityGroup.
    Inputs []string
    The list of inputs currently using this InputSecurityGroup.
    Tags map[string]string
    A map of tags to assign to the InputSecurityGroup. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string

    Deprecated: Please use tags instead.

    WhitelistRules []InputSecurityGroupWhitelistRuleArgs

    Whitelist rules. See Whitelist Rules for more details.

    The following arguments are optional:

    arn String
    ARN of the InputSecurityGroup.
    inputs List<String>
    The list of inputs currently using this InputSecurityGroup.
    tags Map<String,String>
    A map of tags to assign to the InputSecurityGroup. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>

    Deprecated: Please use tags instead.

    whitelistRules List<InputSecurityGroupWhitelistRule>

    Whitelist rules. See Whitelist Rules for more details.

    The following arguments are optional:

    arn string
    ARN of the InputSecurityGroup.
    inputs string[]
    The list of inputs currently using this InputSecurityGroup.
    tags {[key: string]: string}
    A map of tags to assign to the InputSecurityGroup. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}

    Deprecated: Please use tags instead.

    whitelistRules InputSecurityGroupWhitelistRule[]

    Whitelist rules. See Whitelist Rules for more details.

    The following arguments are optional:

    arn str
    ARN of the InputSecurityGroup.
    inputs Sequence[str]
    The list of inputs currently using this InputSecurityGroup.
    tags Mapping[str, str]
    A map of tags to assign to the InputSecurityGroup. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]

    Deprecated: Please use tags instead.

    whitelist_rules Sequence[InputSecurityGroupWhitelistRuleArgs]

    Whitelist rules. See Whitelist Rules for more details.

    The following arguments are optional:

    arn String
    ARN of the InputSecurityGroup.
    inputs List<String>
    The list of inputs currently using this InputSecurityGroup.
    tags Map<String>
    A map of tags to assign to the InputSecurityGroup. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>

    Deprecated: Please use tags instead.

    whitelistRules List<Property Map>

    Whitelist rules. See Whitelist Rules for more details.

    The following arguments are optional:

    Supporting Types

    InputSecurityGroupWhitelistRule, InputSecurityGroupWhitelistRuleArgs

    Cidr string
    The IPv4 CIDR that's whitelisted.
    Cidr string
    The IPv4 CIDR that's whitelisted.
    cidr String
    The IPv4 CIDR that's whitelisted.
    cidr string
    The IPv4 CIDR that's whitelisted.
    cidr str
    The IPv4 CIDR that's whitelisted.
    cidr String
    The IPv4 CIDR that's whitelisted.

    Import

    Using pulumi import, import MediaLive InputSecurityGroup using the id. For example:

    $ pulumi import aws:medialive/inputSecurityGroup:InputSecurityGroup example 123456
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi