Show / Hide Table of Contents

Class VpcDhcpOptionsAssociation

Provides a VPC DHCP Options Association resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var dnsResolver = new Aws.Ec2.VpcDhcpOptionsAssociation("dnsResolver", new Aws.Ec2.VpcDhcpOptionsAssociationArgs
    {
        DhcpOptionsId = aws_vpc_dhcp_options.Foo.Id,
        VpcId = aws_vpc.Foo.Id,
    });
}

}

Remarks

  • You can only associate one DHCP Options Set to a given VPC ID.
  • Removing the DHCP Options Association automatically sets AWS's default DHCP Options Set to the VPC.
Inheritance
System.Object
Resource
CustomResource
VpcDhcpOptionsAssociation
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public class VpcDhcpOptionsAssociation : CustomResource

Constructors

View Source

VpcDhcpOptionsAssociation(String, VpcDhcpOptionsAssociationArgs, CustomResourceOptions)

Create a VpcDhcpOptionsAssociation resource with the given unique name, arguments, and options.

Declaration
public VpcDhcpOptionsAssociation(string name, VpcDhcpOptionsAssociationArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

VpcDhcpOptionsAssociationArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

DhcpOptionsId

The ID of the DHCP Options Set to associate to the VPC.

Declaration
public Output<string> DhcpOptionsId { get; }
Property Value
Type Description
Output<System.String>
View Source

VpcId

The ID of the VPC to which we would like to associate a DHCP Options Set.

Declaration
public Output<string> VpcId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, VpcDhcpOptionsAssociationState, CustomResourceOptions)

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

Declaration
public static VpcDhcpOptionsAssociation Get(string name, Input<string> id, VpcDhcpOptionsAssociationState 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.

VpcDhcpOptionsAssociationState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
VpcDhcpOptionsAssociation
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.