GetDirectory
Get attributes of AWS Directory Service directory (SimpleAD, Managed AD, AD Connector). It’s especially useful to refer AWS Managed AD or on-premise AD in AD Connector configuration.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Aws.DirectoryService.GetDirectory.InvokeAsync(new Aws.DirectoryService.GetDirectoryArgs
{
DirectoryId = aws_directory_service_directory.Main.Id,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/directoryservice"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := directoryservice.LookupDirectory(ctx, &directoryservice.LookupDirectoryArgs{
DirectoryId: aws_directory_service_directory.Main.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.directoryservice.get_directory(directory_id=aws_directory_service_directory["main"]["id"])import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws_directory_service_directory_main.id.apply(id => aws.directoryservice.getDirectory({
directoryId: id,
}, { async: true }));Using GetDirectory
function getDirectory(args: GetDirectoryArgs, opts?: InvokeOptions): Promise<GetDirectoryResult>function get_directory(directory_id=None, tags=None, opts=None)func LookupDirectory(ctx *Context, args *LookupDirectoryArgs, opts ...InvokeOption) (*LookupDirectoryResult, error)Note: This function is named
LookupDirectoryin the Go SDK.
public static class GetDirectory {
public static Task<GetDirectoryResult> InvokeAsync(GetDirectoryArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Directory
Id string The ID of the directory.
- Dictionary<string, string>
A map of tags assigned to the directory/connector.
- Directory
Id string The ID of the directory.
- map[string]string
A map of tags assigned to the directory/connector.
- directory
Id string The ID of the directory.
- {[key: string]: string}
A map of tags assigned to the directory/connector.
- directory_
id str The ID of the directory.
- Dict[str, str]
A map of tags assigned to the directory/connector.
GetDirectory Result
The following output properties are available:
- Access
Url string The access URL for the directory/connector, such as http://alias.awsapps.com.
- Alias string
The alias for the directory/connector, such as
d-991708b282.awsapps.com.- Connect
Settings List<GetDirectory Connect Setting> - Description string
A textual description for the directory/connector.
- Directory
Id string - Dns
Ip List<string>Addresses A list of IP addresses of the DNS servers for the directory/connector.
- Edition string
(for
MicrosoftAD) The Microsoft AD edition (StandardorEnterprise).- Enable
Sso bool The directory/connector single-sign on status.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
The fully qualified name for the directory/connector.
- Security
Group stringId The ID of the security group created by the directory/connector.
- Short
Name string The short name of the directory/connector, such as
CORP.- Size string
(for
SimpleADandADConnector) The size of the directory/connector (SmallorLarge).- Type string
The directory type (
SimpleAD,ADConnectororMicrosoftAD).- Vpc
Settings List<GetDirectory Vpc Setting> - Dictionary<string, string>
A map of tags assigned to the directory/connector.
- Access
Url string The access URL for the directory/connector, such as http://alias.awsapps.com.
- Alias string
The alias for the directory/connector, such as
d-991708b282.awsapps.com.- Connect
Settings []GetDirectory Connect Setting - Description string
A textual description for the directory/connector.
- Directory
Id string - Dns
Ip []stringAddresses A list of IP addresses of the DNS servers for the directory/connector.
- Edition string
(for
MicrosoftAD) The Microsoft AD edition (StandardorEnterprise).- Enable
Sso bool The directory/connector single-sign on status.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
The fully qualified name for the directory/connector.
- Security
Group stringId The ID of the security group created by the directory/connector.
- Short
Name string The short name of the directory/connector, such as
CORP.- Size string
(for
SimpleADandADConnector) The size of the directory/connector (SmallorLarge).- Type string
The directory type (
SimpleAD,ADConnectororMicrosoftAD).- Vpc
Settings []GetDirectory Vpc Setting - map[string]string
A map of tags assigned to the directory/connector.
- access
Url string The access URL for the directory/connector, such as http://alias.awsapps.com.
- alias string
The alias for the directory/connector, such as
d-991708b282.awsapps.com.- connect
Settings GetDirectory Connect Setting[] - description string
A textual description for the directory/connector.
- directory
Id string - dns
Ip string[]Addresses A list of IP addresses of the DNS servers for the directory/connector.
- edition string
(for
MicrosoftAD) The Microsoft AD edition (StandardorEnterprise).- enable
Sso boolean The directory/connector single-sign on status.
- id string
The provider-assigned unique ID for this managed resource.
- name string
The fully qualified name for the directory/connector.
- security
Group stringId The ID of the security group created by the directory/connector.
- short
Name string The short name of the directory/connector, such as
CORP.- size string
(for
SimpleADandADConnector) The size of the directory/connector (SmallorLarge).- type string
The directory type (
SimpleAD,ADConnectororMicrosoftAD).- vpc
Settings GetDirectory Vpc Setting[] - {[key: string]: string}
A map of tags assigned to the directory/connector.
- access_
url str The access URL for the directory/connector, such as http://alias.awsapps.com.
- alias str
The alias for the directory/connector, such as
d-991708b282.awsapps.com.- connect_
settings List[GetDirectory Connect Setting] - description str
A textual description for the directory/connector.
- directory_
id str - dns_
ip_ List[str]addresses A list of IP addresses of the DNS servers for the directory/connector.
- edition str
(for
MicrosoftAD) The Microsoft AD edition (StandardorEnterprise).- enable_
sso bool The directory/connector single-sign on status.
- id str
The provider-assigned unique ID for this managed resource.
- name str
The fully qualified name for the directory/connector.
- security_
group_ strid The ID of the security group created by the directory/connector.
- short_
name str The short name of the directory/connector, such as
CORP.- size str
(for
SimpleADandADConnector) The size of the directory/connector (SmallorLarge).- type str
The directory type (
SimpleAD,ADConnectororMicrosoftAD).- vpc_
settings List[GetDirectory Vpc Setting] - Dict[str, str]
A map of tags assigned to the directory/connector.
Supporting Types
GetDirectoryConnectSetting
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Availability
Zones List<string> - Connect
Ips List<string> The IP addresses of the AD Connector servers.
- Customer
Dns List<string>Ips The DNS IP addresses of the domain to connect to.
- Customer
Username string The username corresponding to the password provided.
- Subnet
Ids List<string> The identifiers of the subnets for the connector servers (2 subnets in 2 different AZs).
- Vpc
Id string The ID of the VPC that the connector is in.
- Availability
Zones []string - Connect
Ips []string The IP addresses of the AD Connector servers.
- Customer
Dns []stringIps The DNS IP addresses of the domain to connect to.
- Customer
Username string The username corresponding to the password provided.
- Subnet
Ids []string The identifiers of the subnets for the connector servers (2 subnets in 2 different AZs).
- Vpc
Id string The ID of the VPC that the connector is in.
- availability
Zones string[] - connect
Ips string[] The IP addresses of the AD Connector servers.
- customer
Dns string[]Ips The DNS IP addresses of the domain to connect to.
- customer
Username string The username corresponding to the password provided.
- subnet
Ids string[] The identifiers of the subnets for the connector servers (2 subnets in 2 different AZs).
- vpc
Id string The ID of the VPC that the connector is in.
- availability_
zones List[str] - connect
Ips List[str] The IP addresses of the AD Connector servers.
- customer
Dns List[str]Ips The DNS IP addresses of the domain to connect to.
- customer
Username str The username corresponding to the password provided.
- subnet_
ids List[str] The identifiers of the subnets for the connector servers (2 subnets in 2 different AZs).
- vpc_
id str The ID of the VPC that the connector is in.
GetDirectoryVpcSetting
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Availability
Zones List<string> - Subnet
Ids List<string> The identifiers of the subnets for the connector servers (2 subnets in 2 different AZs).
- Vpc
Id string The ID of the VPC that the connector is in.
- availability_
zones List[str] - subnet_
ids List[str] The identifiers of the subnets for the connector servers (2 subnets in 2 different AZs).
- vpc_
id str The ID of the VPC that the connector is in.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.