1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. ec2
  5. DhcpOptions

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.ec2.DhcpOptions

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

Resource Type definition for AWS::EC2::DHCPOptions

Create DhcpOptions Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new DhcpOptions(name: string, args?: DhcpOptionsArgs, opts?: CustomResourceOptions);
@overload
def DhcpOptions(resource_name: str,
                args: Optional[DhcpOptionsArgs] = None,
                opts: Optional[ResourceOptions] = None)

@overload
def DhcpOptions(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                domain_name: Optional[str] = None,
                domain_name_servers: Optional[Sequence[str]] = None,
                ipv6_address_preferred_lease_time: Optional[int] = None,
                netbios_name_servers: Optional[Sequence[str]] = None,
                netbios_node_type: Optional[int] = None,
                ntp_servers: Optional[Sequence[str]] = None,
                tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewDhcpOptions(ctx *Context, name string, args *DhcpOptionsArgs, opts ...ResourceOption) (*DhcpOptions, error)
public DhcpOptions(string name, DhcpOptionsArgs? args = null, CustomResourceOptions? opts = null)
public DhcpOptions(String name, DhcpOptionsArgs args)
public DhcpOptions(String name, DhcpOptionsArgs args, CustomResourceOptions options)
type: aws-native:ec2:DhcpOptions
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args DhcpOptionsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args DhcpOptionsArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args DhcpOptionsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args DhcpOptionsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DhcpOptionsArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DhcpOptions Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The DhcpOptions resource accepts the following input properties:

DomainName string
This value is used to complete unqualified DNS hostnames.
DomainNameServers List<string>
The IPv4 addresses of up to four domain name servers, or AmazonProvidedDNS.
Ipv6AddressPreferredLeaseTime int
The preferred Lease Time for ipV6 address in seconds.
NetbiosNameServers List<string>
The IPv4 addresses of up to four NetBIOS name servers.
NetbiosNodeType int
The NetBIOS node type (1, 2, 4, or 8).
NtpServers List<string>
The IPv4 addresses of up to four Network Time Protocol (NTP) servers.
Tags List<Pulumi.AwsNative.Inputs.Tag>
Any tags assigned to the DHCP options set.
DomainName string
This value is used to complete unqualified DNS hostnames.
DomainNameServers []string
The IPv4 addresses of up to four domain name servers, or AmazonProvidedDNS.
Ipv6AddressPreferredLeaseTime int
The preferred Lease Time for ipV6 address in seconds.
NetbiosNameServers []string
The IPv4 addresses of up to four NetBIOS name servers.
NetbiosNodeType int
The NetBIOS node type (1, 2, 4, or 8).
NtpServers []string
The IPv4 addresses of up to four Network Time Protocol (NTP) servers.
Tags TagArgs
Any tags assigned to the DHCP options set.
domainName String
This value is used to complete unqualified DNS hostnames.
domainNameServers List<String>
The IPv4 addresses of up to four domain name servers, or AmazonProvidedDNS.
ipv6AddressPreferredLeaseTime Integer
The preferred Lease Time for ipV6 address in seconds.
netbiosNameServers List<String>
The IPv4 addresses of up to four NetBIOS name servers.
netbiosNodeType Integer
The NetBIOS node type (1, 2, 4, or 8).
ntpServers List<String>
The IPv4 addresses of up to four Network Time Protocol (NTP) servers.
tags List<Tag>
Any tags assigned to the DHCP options set.
domainName string
This value is used to complete unqualified DNS hostnames.
domainNameServers string[]
The IPv4 addresses of up to four domain name servers, or AmazonProvidedDNS.
ipv6AddressPreferredLeaseTime number
The preferred Lease Time for ipV6 address in seconds.
netbiosNameServers string[]
The IPv4 addresses of up to four NetBIOS name servers.
netbiosNodeType number
The NetBIOS node type (1, 2, 4, or 8).
ntpServers string[]
The IPv4 addresses of up to four Network Time Protocol (NTP) servers.
tags Tag[]
Any tags assigned to the DHCP options set.
domain_name str
This value is used to complete unqualified DNS hostnames.
domain_name_servers Sequence[str]
The IPv4 addresses of up to four domain name servers, or AmazonProvidedDNS.
ipv6_address_preferred_lease_time int
The preferred Lease Time for ipV6 address in seconds.
netbios_name_servers Sequence[str]
The IPv4 addresses of up to four NetBIOS name servers.
netbios_node_type int
The NetBIOS node type (1, 2, 4, or 8).
ntp_servers Sequence[str]
The IPv4 addresses of up to four Network Time Protocol (NTP) servers.
tags Sequence[TagArgs]
Any tags assigned to the DHCP options set.
domainName String
This value is used to complete unqualified DNS hostnames.
domainNameServers List<String>
The IPv4 addresses of up to four domain name servers, or AmazonProvidedDNS.
ipv6AddressPreferredLeaseTime Number
The preferred Lease Time for ipV6 address in seconds.
netbiosNameServers List<String>
The IPv4 addresses of up to four NetBIOS name servers.
netbiosNodeType Number
The NetBIOS node type (1, 2, 4, or 8).
ntpServers List<String>
The IPv4 addresses of up to four Network Time Protocol (NTP) servers.
tags List<Property Map>
Any tags assigned to the DHCP options set.

Outputs

All input properties are implicitly available as output properties. Additionally, the DhcpOptions resource produces the following output properties:

DhcpOptionsId string
The ID of the DHCP options set.
Id string
The provider-assigned unique ID for this managed resource.
DhcpOptionsId string
The ID of the DHCP options set.
Id string
The provider-assigned unique ID for this managed resource.
dhcpOptionsId String
The ID of the DHCP options set.
id String
The provider-assigned unique ID for this managed resource.
dhcpOptionsId string
The ID of the DHCP options set.
id string
The provider-assigned unique ID for this managed resource.
dhcp_options_id str
The ID of the DHCP options set.
id str
The provider-assigned unique ID for this managed resource.
dhcpOptionsId String
The ID of the DHCP options set.
id String
The provider-assigned unique ID for this managed resource.

Supporting Types

Tag
, TagArgs

Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag
key This property is required. string
The key name of the tag
value This property is required. string
The value of the tag
key This property is required. str
The key name of the tag
value This property is required. str
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi