| « PreviousNext » | |
![]() ![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Creates a set of DHCP options for your VPC.
For more information, see CreateDhcpOptions in the Amazon Elastic Compute Cloud API Reference.
{
"Type" : "AWS::EC2::DHCPOptions",
"Properties" : {
"DomainName" : String,
"DomainNameServers" : [ String, ... ],
"NetbiosNameServers" : [ String, ... ],
"NetbiosNodeType" : Number,
"NtpServers" : [ String, ... ],
"Tags" : [ EC2 Tag, ... ]
}
} A domain name of your choice.
Required: Conditional; see note.
Type: String.
Update requires: replacement
Example: "example.com"
The IP (IPv4) address of a domain name server. You can specify up to four addresses.
Required: Conditional; see note.
Type: A list of strings.
Update requires: replacement
Example: "DomainNameServers" : [ "10.0.0.1", "10.0.0.2" ]
The IP address (IPv4) of a NetBIOS name server. You can specify up to four addresses.
Required: Conditional; see note.
Type: A list of strings.
Update requires: replacement
Example: "NetbiosNameServers" : [ "10.0.0.1", "10.0.0.2" ]
An integer value indicating the NetBIOS node type:
1: Broadcast ("B")
2: Point-to-point ("P")
4: Mixed mode ("M")
8: Hybrid ("H")
For more information about these values and about NetBIOS node types, see
RFC 2132, RFC 1001, and RFC 1002. We recommend that
you use only the value 2 at this time (broadcast and multicast are
not currently supported).
Required: Required if NetBiosNameServers is specified; optional otherwise.
Type: A list of numbers.
Update requires: replacement
Example: "NetbiosNodeType" : 2
The IP address (IPv4) of a Network Time Protocol (NTP) server. You can specify up to four addresses.
Required: Conditional; see note.
Type: A list of strings.
Update requires: replacement
Example: "NtpServers" : [ "10.0.0.1" ]
The tags you want to attach to this resource.
Type: A list of EC2 Tags
Update requires: no interruption
For more information about tags, see Using Tags in the Amazon Elastic Compute Cloud User Guide.
At least one of the following properties must be specified:
After this condition has been fulfilled, the rest of these properties are optional.
If you specify NetbiosNameServers, then NetbiosNodeType is required.
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.
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Resources" : {
"myDhcpOptions" : {
"Type" : "AWS::EC2::DHCPOptions",
"Properties" : {
"DomainName" : "example.com",
"DomainNameServers" : [ "AmazonProvidedDNS" ],
"NtpServers" : [ "10.2.5.1" ],
"NetbiosNameServers" : [ "10.2.5.1" ],
"NetbiosNodeType" : 2,
"Tags" : [ { "Key" : "foo", "Value" : "bar" } ],
}
}
}
}CreateDhcpOptions in the Amazon Elastic Compute Cloud API Reference
Using Tags in the Amazon Elastic Compute Cloud User Guide.
RFC 2132 - DHCP Options and BOOTP Vendor Extensions, Network Working Group, 1997
RFC 1001 - Protocol Standard for a NetBIOS Service on a TCP/UDP Transport: Concepts and Methods, Network Working Group, 1987
RFC 1002 - Protocol Standard for a NetBIOS Service on a TCP/UDP Transport: Detailed Specifications, Network Working Group, 1987