DefaultVpcDhcpOptions
Provides a resource to manage the default AWS DHCP Options Set in the current region.
Each AWS region comes with a default set of DHCP options. This is an advanced resource, and has special caveats to be aware of when using it. Please read this document in its entirety before using this resource.
The aws.ec2.DefaultVpcDhcpOptions behaves differently from normal resources, in that
this provider does not create this resource, but instead “adopts” it
into management.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var @default = new Aws.Ec2.DefaultVpcDhcpOptions("default", new Aws.Ec2.DefaultVpcDhcpOptionsArgs
{
Tags =
{
{ "Name", "Default DHCP Option Set" },
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2.NewDefaultVpcDhcpOptions(ctx, "_default", &ec2.DefaultVpcDhcpOptionsArgs{
Tags: pulumi.StringMap{
"Name": pulumi.String("Default DHCP Option Set"),
},
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
default = aws.ec2.DefaultVpcDhcpOptions("default", tags={
"Name": "Default DHCP Option Set",
})import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const defaultDefaultVpcDhcpOptions = new aws.ec2.DefaultVpcDhcpOptions("default", {
tags: {
Name: "Default DHCP Option Set",
},
});Create a DefaultVpcDhcpOptions Resource
new DefaultVpcDhcpOptions(name: string, args?: DefaultVpcDhcpOptionsArgs, opts?: CustomResourceOptions);def DefaultVpcDhcpOptions(resource_name, opts=None, netbios_name_servers=None, netbios_node_type=None, tags=None, __props__=None);func NewDefaultVpcDhcpOptions(ctx *Context, name string, args *DefaultVpcDhcpOptionsArgs, opts ...ResourceOption) (*DefaultVpcDhcpOptions, error)public DefaultVpcDhcpOptions(string name, DefaultVpcDhcpOptionsArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args DefaultVpcDhcpOptionsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DefaultVpcDhcpOptionsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DefaultVpcDhcpOptionsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
DefaultVpcDhcpOptions Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The DefaultVpcDhcpOptions resource accepts the following input properties:
- Netbios
Name List<string>Servers List of NETBIOS name servers.
- Netbios
Node stringType The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see RFC 2132.
- Dictionary<string, string>
A map of tags to assign to the resource.
- Netbios
Name []stringServers List of NETBIOS name servers.
- Netbios
Node stringType The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see RFC 2132.
- map[string]string
A map of tags to assign to the resource.
- netbios
Name string[]Servers List of NETBIOS name servers.
- netbios
Node stringType The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see RFC 2132.
- {[key: string]: string}
A map of tags to assign to the resource.
- netbios_
name_ List[str]servers List of NETBIOS name servers.
- netbios_
node_ strtype The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see RFC 2132.
- Dict[str, str]
A map of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the DefaultVpcDhcpOptions resource produces the following output properties:
- Arn string
The ARN of the DHCP Options Set.
- Domain
Name string - Domain
Name stringServers - Id string
- The provider-assigned unique ID for this managed resource.
- Ntp
Servers string - Owner
Id string The ID of the AWS account that owns the DHCP options set.
- Arn string
The ARN of the DHCP Options Set.
- Domain
Name string - Domain
Name stringServers - Id string
- The provider-assigned unique ID for this managed resource.
- Ntp
Servers string - Owner
Id string The ID of the AWS account that owns the DHCP options set.
- arn string
The ARN of the DHCP Options Set.
- domain
Name string - domain
Name stringServers - id string
- The provider-assigned unique ID for this managed resource.
- ntp
Servers string - owner
Id string The ID of the AWS account that owns the DHCP options set.
- arn str
The ARN of the DHCP Options Set.
- domain_
name str - domain_
name_ strservers - id str
- The provider-assigned unique ID for this managed resource.
- ntp_
servers str - owner_
id str The ID of the AWS account that owns the DHCP options set.
Look up an Existing DefaultVpcDhcpOptions Resource
Get an existing DefaultVpcDhcpOptions resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DefaultVpcDhcpOptionsState, opts?: CustomResourceOptions): DefaultVpcDhcpOptionsstatic get(resource_name, id, opts=None, arn=None, domain_name=None, domain_name_servers=None, netbios_name_servers=None, netbios_node_type=None, ntp_servers=None, owner_id=None, tags=None, __props__=None);func GetDefaultVpcDhcpOptions(ctx *Context, name string, id IDInput, state *DefaultVpcDhcpOptionsState, opts ...ResourceOption) (*DefaultVpcDhcpOptions, error)public static DefaultVpcDhcpOptions Get(string name, Input<string> id, DefaultVpcDhcpOptionsState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Arn string
The ARN of the DHCP Options Set.
- Domain
Name string - Domain
Name stringServers - Netbios
Name List<string>Servers List of NETBIOS name servers.
- Netbios
Node stringType The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see RFC 2132.
- Ntp
Servers string - Owner
Id string The ID of the AWS account that owns the DHCP options set.
- Dictionary<string, string>
A map of tags to assign to the resource.
- Arn string
The ARN of the DHCP Options Set.
- Domain
Name string - Domain
Name stringServers - Netbios
Name []stringServers List of NETBIOS name servers.
- Netbios
Node stringType The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see RFC 2132.
- Ntp
Servers string - Owner
Id string The ID of the AWS account that owns the DHCP options set.
- map[string]string
A map of tags to assign to the resource.
- arn string
The ARN of the DHCP Options Set.
- domain
Name string - domain
Name stringServers - netbios
Name string[]Servers List of NETBIOS name servers.
- netbios
Node stringType The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see RFC 2132.
- ntp
Servers string - owner
Id string The ID of the AWS account that owns the DHCP options set.
- {[key: string]: string}
A map of tags to assign to the resource.
- arn str
The ARN of the DHCP Options Set.
- domain_
name str - domain_
name_ strservers - netbios_
name_ List[str]servers List of NETBIOS name servers.
- netbios_
node_ strtype The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see RFC 2132.
- ntp_
servers str - owner_
id str The ID of the AWS account that owns the DHCP options set.
- Dict[str, str]
A map of tags to assign to the resource.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.