AvailabilityZoneGroup

Manages an EC2 Availability Zone Group, such as updating its opt-in status.

NOTE: This is an advanced resource. The provider will automatically assume management of the EC2 Availability Zone Group without import and perform no actions on removal from configuration.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Aws.Ec2.AvailabilityZoneGroup("example", new Aws.Ec2.AvailabilityZoneGroupArgs
        {
            GroupName = "us-west-2-lax-1",
            OptInStatus = "opted-in",
        });
    }

}
package main

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

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := ec2.NewAvailabilityZoneGroup(ctx, "example", &ec2.AvailabilityZoneGroupArgs{
            GroupName:   pulumi.String("us-west-2-lax-1"),
            OptInStatus: pulumi.String("opted-in"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

example = aws.ec2.AvailabilityZoneGroup("example",
    group_name="us-west-2-lax-1",
    opt_in_status="opted-in")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.ec2.AvailabilityZoneGroup("example", {
    groupName: "us-west-2-lax-1",
    optInStatus: "opted-in",
});

Create a AvailabilityZoneGroup Resource

def AvailabilityZoneGroup(resource_name, opts=None, group_name=None, opt_in_status=None, __props__=None);
name string
The unique name of the resource.
args AvailabilityZoneGroupArgs
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 AvailabilityZoneGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AvailabilityZoneGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

AvailabilityZoneGroup Resource Properties

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

Inputs

The AvailabilityZoneGroup resource accepts the following input properties:

GroupName string

Name of the Availability Zone Group.

OptInStatus string

Indicates whether to enable or disable Availability Zone Group. Valid values: opted-in or not-opted-in.

GroupName string

Name of the Availability Zone Group.

OptInStatus string

Indicates whether to enable or disable Availability Zone Group. Valid values: opted-in or not-opted-in.

groupName string

Name of the Availability Zone Group.

optInStatus string

Indicates whether to enable or disable Availability Zone Group. Valid values: opted-in or not-opted-in.

group_name str

Name of the Availability Zone Group.

opt_in_status str

Indicates whether to enable or disable Availability Zone Group. Valid values: opted-in or not-opted-in.

Outputs

All input properties are implicitly available as output properties. Additionally, the AvailabilityZoneGroup 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 AvailabilityZoneGroup Resource

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

static get(resource_name, id, opts=None, group_name=None, opt_in_status=None, __props__=None);
func GetAvailabilityZoneGroup(ctx *Context, name string, id IDInput, state *AvailabilityZoneGroupState, opts ...ResourceOption) (*AvailabilityZoneGroup, error)
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:

GroupName string

Name of the Availability Zone Group.

OptInStatus string

Indicates whether to enable or disable Availability Zone Group. Valid values: opted-in or not-opted-in.

GroupName string

Name of the Availability Zone Group.

OptInStatus string

Indicates whether to enable or disable Availability Zone Group. Valid values: opted-in or not-opted-in.

groupName string

Name of the Availability Zone Group.

optInStatus string

Indicates whether to enable or disable Availability Zone Group. Valid values: opted-in or not-opted-in.

group_name str

Name of the Availability Zone Group.

opt_in_status str

Indicates whether to enable or disable Availability Zone Group. Valid values: opted-in or not-opted-in.

Package Details

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