IpGroup

Provides an IP access control group in AWS WorkSpaces Service

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var contractors = new Aws.Workspaces.IpGroup("contractors", new Aws.Workspaces.IpGroupArgs
        {
            Description = "Contractors IP access control group",
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/workspaces"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := workspaces.NewIpGroup(ctx, "contractors", &workspaces.IpGroupArgs{
            Description: pulumi.String("Contractors IP access control group"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

contractors = aws.workspaces.IpGroup("contractors", description="Contractors IP access control group")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const contractors = new aws.workspaces.IpGroup("contractors", {
    description: "Contractors IP access control group",
});

Create a IpGroup Resource

new IpGroup(name: string, args?: IpGroupArgs, opts?: CustomResourceOptions);
def IpGroup(resource_name, opts=None, description=None, name=None, rules=None, tags=None, __props__=None);
func NewIpGroup(ctx *Context, name string, args *IpGroupArgs, opts ...ResourceOption) (*IpGroup, error)
public IpGroup(string name, IpGroupArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args IpGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args IpGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args IpGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

IpGroup Resource Properties

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

Inputs

The IpGroup resource accepts the following input properties:

Description string

The description.

Name string

The name of the IP group.

Rules List<IpGroupRuleArgs>

One or more pairs specifying the IP group rule (in CIDR format) from which web requests originate.

Tags Dictionary<string, string>
Description string

The description.

Name string

The name of the IP group.

Rules []IpGroupRule

One or more pairs specifying the IP group rule (in CIDR format) from which web requests originate.

Tags map[string]string
description string

The description.

name string

The name of the IP group.

rules IpGroupRule[]

One or more pairs specifying the IP group rule (in CIDR format) from which web requests originate.

tags {[key: string]: string}
description str

The description.

name str

The name of the IP group.

rules List[IpGroupRule]

One or more pairs specifying the IP group rule (in CIDR format) from which web requests originate.

tags Dict[str, str]

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing IpGroup Resource

Get an existing IpGroup 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?: IpGroupState, opts?: CustomResourceOptions): IpGroup
static get(resource_name, id, opts=None, description=None, name=None, rules=None, tags=None, __props__=None);
func GetIpGroup(ctx *Context, name string, id IDInput, state *IpGroupState, opts ...ResourceOption) (*IpGroup, error)
public static IpGroup Get(string name, Input<string> id, IpGroupState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

Description string

The description.

Name string

The name of the IP group.

Rules List<IpGroupRuleArgs>

One or more pairs specifying the IP group rule (in CIDR format) from which web requests originate.

Tags Dictionary<string, string>
Description string

The description.

Name string

The name of the IP group.

Rules []IpGroupRule

One or more pairs specifying the IP group rule (in CIDR format) from which web requests originate.

Tags map[string]string
description string

The description.

name string

The name of the IP group.

rules IpGroupRule[]

One or more pairs specifying the IP group rule (in CIDR format) from which web requests originate.

tags {[key: string]: string}
description str

The description.

name str

The name of the IP group.

rules List[IpGroupRule]

One or more pairs specifying the IP group rule (in CIDR format) from which web requests originate.

tags Dict[str, str]

Supporting Types

IpGroupRule

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Source string

The IP address range, in CIDR notation, e.g. 10.0.0.0/16

Description string

The description.

Source string

The IP address range, in CIDR notation, e.g. 10.0.0.0/16

Description string

The description.

source string

The IP address range, in CIDR notation, e.g. 10.0.0.0/16

description string

The description.

source str

The IP address range, in CIDR notation, e.g. 10.0.0.0/16

description str

The description.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.