Class 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",
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public class AvailabilityZoneGroup : CustomResource
Constructors
View SourceAvailabilityZoneGroup(String, AvailabilityZoneGroupArgs, CustomResourceOptions)
Create a AvailabilityZoneGroup resource with the given unique name, arguments, and options.
Declaration
public AvailabilityZoneGroup(string name, AvailabilityZoneGroupArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AvailabilityZoneGroupArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceGroupName
Name of the Availability Zone Group.
Declaration
public Output<string> GroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OptInStatus
Indicates whether to enable or disable Availability Zone Group. Valid values: opted-in or not-opted-in.
Declaration
public Output<string> OptInStatus { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, AvailabilityZoneGroupState, CustomResourceOptions)
Get an existing AvailabilityZoneGroup resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AvailabilityZoneGroup Get(string name, Input<string> id, AvailabilityZoneGroupState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AvailabilityZoneGroupState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AvailabilityZoneGroup |