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
new AvailabilityZoneGroup(name: string, args: AvailabilityZoneGroupArgs, opts?: CustomResourceOptions);def AvailabilityZoneGroup(resource_name, opts=None, group_name=None, opt_in_status=None, __props__=None);func NewAvailabilityZoneGroup(ctx *Context, name string, args AvailabilityZoneGroupArgs, opts ...ResourceOption) (*AvailabilityZoneGroup, error)public AvailabilityZoneGroup(string name, AvailabilityZoneGroupArgs args, CustomResourceOptions? opts = null)- 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:
- Group
Name string Name of the Availability Zone Group.
- Opt
In stringStatus Indicates whether to enable or disable Availability Zone Group. Valid values:
opted-inornot-opted-in.
- Group
Name string Name of the Availability Zone Group.
- Opt
In stringStatus Indicates whether to enable or disable Availability Zone Group. Valid values:
opted-inornot-opted-in.
- group
Name string Name of the Availability Zone Group.
- opt
In stringStatus Indicates whether to enable or disable Availability Zone Group. Valid values:
opted-inornot-opted-in.
- group_
name str Name of the Availability Zone Group.
- opt_
in_ strstatus Indicates whether to enable or disable Availability Zone Group. Valid values:
opted-inornot-opted-in.
Outputs
All input properties are implicitly available as output properties. Additionally, the AvailabilityZoneGroup resource produces the following output properties:
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.
public static get(name: string, id: Input<ID>, state?: AvailabilityZoneGroupState, opts?: CustomResourceOptions): AvailabilityZoneGroupstatic 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)public static AvailabilityZoneGroup Get(string name, Input<string> id, AvailabilityZoneGroupState? 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:
- Group
Name string Name of the Availability Zone Group.
- Opt
In stringStatus Indicates whether to enable or disable Availability Zone Group. Valid values:
opted-inornot-opted-in.
- Group
Name string Name of the Availability Zone Group.
- Opt
In stringStatus Indicates whether to enable or disable Availability Zone Group. Valid values:
opted-inornot-opted-in.
- group
Name string Name of the Availability Zone Group.
- opt
In stringStatus Indicates whether to enable or disable Availability Zone Group. Valid values:
opted-inornot-opted-in.
- group_
name str Name of the Availability Zone Group.
- opt_
in_ strstatus Indicates whether to enable or disable Availability Zone Group. Valid values:
opted-inornot-opted-in.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.