Show / Hide Table of Contents

Class GetVpcDhcpOptions

Inheritance
System.Object
GetVpcDhcpOptions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public static class GetVpcDhcpOptions

Methods

View Source

InvokeAsync(GetVpcDhcpOptionsArgs, InvokeOptions)

Retrieve information about an EC2 DHCP Options configuration.

{{% examples %}}

Example Usage

{{% example %}}

Lookup by DHCP Options ID

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var example = Output.Create(Aws.Ec2.GetVpcDhcpOptions.InvokeAsync(new Aws.Ec2.GetVpcDhcpOptionsArgs
    {
        DhcpOptionsId = "dopts-12345678",
    }));
}

}

{{% /example %}} {{% example %}}

Lookup by Filter

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var example = Output.Create(Aws.Ec2.GetVpcDhcpOptions.InvokeAsync(new Aws.Ec2.GetVpcDhcpOptionsArgs
    {
        Filters = 
        {
            new Aws.Ec2.Inputs.GetVpcDhcpOptionsFilterArgs
            {
                Name = "key",
                Values = 
                {
                    "domain-name",
                },
            },
            new Aws.Ec2.Inputs.GetVpcDhcpOptionsFilterArgs
            {
                Name = "value",
                Values = 
                {
                    "example.com",
                },
            },
        },
    }));
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetVpcDhcpOptionsResult> InvokeAsync(GetVpcDhcpOptionsArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetVpcDhcpOptionsArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetVpcDhcpOptionsResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.