ConditionalForwader

Provides a conditional forwarder for managed Microsoft AD in AWS Directory Service.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Aws.DirectoryService.ConditionalForwader("example", new Aws.DirectoryService.ConditionalForwaderArgs
        {
            DirectoryId = aws_directory_service_directory.Ad.Id,
            RemoteDomainName = "example.com",
            DnsIps = 
            {
                "8.8.8.8",
                "8.8.4.4",
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/directoryservice"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := directoryservice.NewConditionalForwader(ctx, "example", &directoryservice.ConditionalForwaderArgs{
			DirectoryId:      pulumi.Any(aws_directory_service_directory.Ad.Id),
			RemoteDomainName: pulumi.String("example.com"),
			DnsIps: pulumi.StringArray{
				pulumi.String("8.8.8.8"),
				pulumi.String("8.8.4.4"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_aws as aws

example = aws.directoryservice.ConditionalForwader("example",
    directory_id=aws_directory_service_directory["ad"]["id"],
    remote_domain_name="example.com",
    dns_ips=[
        "8.8.8.8",
        "8.8.4.4",
    ])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.directoryservice.ConditionalForwader("example", {
    directoryId: aws_directory_service_directory.ad.id,
    remoteDomainName: "example.com",
    dnsIps: [
        "8.8.8.8",
        "8.8.4.4",
    ],
});

Create a ConditionalForwader Resource

new ConditionalForwader(name: string, args: ConditionalForwaderArgs, opts?: CustomResourceOptions);
@overload
def ConditionalForwader(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        directory_id: Optional[str] = None,
                        dns_ips: Optional[Sequence[str]] = None,
                        remote_domain_name: Optional[str] = None)
@overload
def ConditionalForwader(resource_name: str,
                        args: ConditionalForwaderArgs,
                        opts: Optional[ResourceOptions] = None)
func NewConditionalForwader(ctx *Context, name string, args ConditionalForwaderArgs, opts ...ResourceOption) (*ConditionalForwader, error)
public ConditionalForwader(string name, ConditionalForwaderArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ConditionalForwaderArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ConditionalForwaderArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ConditionalForwaderArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ConditionalForwaderArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ConditionalForwader Resource Properties

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

Inputs

The ConditionalForwader resource accepts the following input properties:

DirectoryId string
The id of directory.
DnsIps List<string>
A list of forwarder IP addresses.
RemoteDomainName string
The fully qualified domain name of the remote domain for which forwarders will be used.
DirectoryId string
The id of directory.
DnsIps []string
A list of forwarder IP addresses.
RemoteDomainName string
The fully qualified domain name of the remote domain for which forwarders will be used.
directoryId string
The id of directory.
dnsIps string[]
A list of forwarder IP addresses.
remoteDomainName string
The fully qualified domain name of the remote domain for which forwarders will be used.
directory_id str
The id of directory.
dns_ips Sequence[str]
A list of forwarder IP addresses.
remote_domain_name str
The fully qualified domain name of the remote domain for which forwarders will be used.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing ConditionalForwader Resource

Get an existing ConditionalForwader 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?: ConditionalForwaderState, opts?: CustomResourceOptions): ConditionalForwader
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        directory_id: Optional[str] = None,
        dns_ips: Optional[Sequence[str]] = None,
        remote_domain_name: Optional[str] = None) -> ConditionalForwader
func GetConditionalForwader(ctx *Context, name string, id IDInput, state *ConditionalForwaderState, opts ...ResourceOption) (*ConditionalForwader, error)
public static ConditionalForwader Get(string name, Input<string> id, ConditionalForwaderState? 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:

DirectoryId string
The id of directory.
DnsIps List<string>
A list of forwarder IP addresses.
RemoteDomainName string
The fully qualified domain name of the remote domain for which forwarders will be used.
DirectoryId string
The id of directory.
DnsIps []string
A list of forwarder IP addresses.
RemoteDomainName string
The fully qualified domain name of the remote domain for which forwarders will be used.
directoryId string
The id of directory.
dnsIps string[]
A list of forwarder IP addresses.
remoteDomainName string
The fully qualified domain name of the remote domain for which forwarders will be used.
directory_id str
The id of directory.
dns_ips Sequence[str]
A list of forwarder IP addresses.
remote_domain_name str
The fully qualified domain name of the remote domain for which forwarders will be used.

Import

Conditional forwarders can be imported using the directory id and remote_domain_name, e.g.

 $ pulumi import aws:directoryservice/conditionalForwader:ConditionalForwader example d-1234567890:example.com

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.