Try AWS Native preview for resources not in the classic version.
aws.medialive.InputSecurityGroup
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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:
- Whitelist
Rules List<InputSecurity Group Whitelist Rule> Whitelist rules. See Whitelist Rules for more details.
The following arguments are optional:
- 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.
- Whitelist
Rules []InputSecurity Group Whitelist Rule Args Whitelist rules. See Whitelist Rules for more details.
The following arguments are optional:
- 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.
- whitelist
Rules List<InputSecurity Group Whitelist Rule> Whitelist rules. See Whitelist Rules for more details.
The following arguments are optional:
- 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.
- whitelist
Rules InputSecurity Group Whitelist Rule[] Whitelist rules. See Whitelist Rules for more details.
The following arguments are optional:
- {[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[InputSecurity Group Whitelist Rule Args] Whitelist rules. See Whitelist Rules for more details.
The following arguments are optional:
- 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.
- whitelist
Rules List<Property Map> Whitelist rules. See Whitelist Rules for more details.
The following arguments are optional:
- 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:
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.
- Arn string
- ARN of the InputSecurityGroup.
- Inputs List<string>
- The list of inputs currently using this InputSecurityGroup.
- 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. - Dictionary<string, string>
- Whitelist
Rules List<InputSecurity Group Whitelist Rule> 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.
- 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. - map[string]string
- Whitelist
Rules []InputSecurity Group Whitelist Rule Args 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.
- 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. - Map<String,String>
- whitelist
Rules List<InputSecurity Group Whitelist Rule> 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.
- {[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. - {[key: string]: string}
- whitelist
Rules InputSecurity Group Whitelist Rule[] 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.
- 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. - Mapping[str, str]
- whitelist_
rules Sequence[InputSecurity Group Whitelist Rule Args] 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.
- 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. - Map<String>
- whitelist
Rules 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.
Try AWS Native preview for resources not in the classic version.