AWS CloudFormation
User Guide (API Version 2010-05-15)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

AWS::EC2::VPCDHCPOptionsAssociation

Associates a set of DHCP options (that you've previously created) with the specified VPC.

Syntax

{ 
   "Type" : "AWS::EC2::VPCDHCPOptionsAssociation",
   "Properties" : {
      "DhcpOptionsId" : String,
      "VpcId" : String
   }
}     

Properties

DhcpOptionsId

The ID of the DHCP options you want to associate with the VPC. Specify default if you want the VPC to use no DHCP options.

Required: Yes

Type: String

Update requires: No interruption

VpcId

The ID of the VPC to associate with this DHCP options set.

Required: Yes

Type: String

Update requires: Replacement

Return Values

Ref

When the logical ID of this resource is provided to the Ref intrinsic function, it returns the resource name.

For more information about using the Ref function, see Ref.

Example

{
   "AWSTemplateFormatVersion" : "2010-09-09",
   "Resources" : {
      "myVPCDHCPOptionsAssociation" : {
         "Type" : "AWS::EC2::VPCDHCPOptionsAssociation",
         "Properties" : {
             "VpcId" : {"Ref" : "myNetworkAcl"},
             "DhcpOptionsId" : {"Ref" : "myDhcpOption"},
         }
      }
   }
}      

See Also