AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::DHCPOptions

EC2 DHCPOptions

Resource Type definition for AWS::EC2::DHCPOptions

Properties

7 configurable properties. Click a row to see details.

Filter:
PropertyTypeFlags
DomainName
string
Create-only
DomainNameServers
Array<string>
Create-only
Ipv6AddressPreferredLeaseTime
integer
Create-only
NetbiosNameServers
Array<string>
Create-only
NetbiosNodeType
integer
Create-only
NtpServers
Array<string>
Create-only
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
DhcpOptionsIdstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::DHCPOptions

Resources:
  MyResource:
    Type: AWS::EC2::DHCPOptions
    Properties:
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

ec2:CreateDhcpOptionsec2:DescribeDhcpOptionsec2:CreateTags

read

ec2:DescribeDhcpOptionsec2:DescribeTags

update

ec2:CreateTagsec2:DescribeDhcpOptionsec2:DeleteTags

delete

ec2:DeleteDhcpOptionsec2:DeleteTagsec2:DescribeDhcpOptions

list

ec2:DescribeDhcpOptions

Get the EC2 Cheat Sheet

Everything you need to know about EC2 on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceEC2
Properties8
Required0
TaggingSupported
Primary IDDhcpOptionsId

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

NetbiosNameServersNetbiosNodeTypeNtpServersDomainNameDomainNameServersIpv6AddressPreferredLeaseTime

External Links