Show / Hide Table of Contents

Class Directory

Provides a directory registration in AWS WorkSpaces Service

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var mainVpc = new Aws.Ec2.Vpc("mainVpc", new Aws.Ec2.VpcArgs
    {
        CidrBlock = "10.0.0.0/16",
    });
    var private_a = new Aws.Ec2.Subnet("private-a", new Aws.Ec2.SubnetArgs
    {
        AvailabilityZone = "us-east-1a",
        CidrBlock = "10.0.0.0/24",
        VpcId = mainVpc.Id,
    });
    var private_b = new Aws.Ec2.Subnet("private-b", new Aws.Ec2.SubnetArgs
    {
        AvailabilityZone = "us-east-1b",
        CidrBlock = "10.0.1.0/24",
        VpcId = mainVpc.Id,
    });
    var mainDirectory = new Aws.DirectoryService.Directory("mainDirectory", new Aws.DirectoryService.DirectoryArgs
    {
        Password = "#S1ncerely",
        Size = "Small",
        VpcSettings = new Aws.DirectoryService.Inputs.DirectoryVpcSettingsArgs
        {
            SubnetIds = 
            {
                private_a.Id,
                private_b.Id,
            },
            VpcId = mainVpc.Id,
        },
    });
    var mainWorkspaces_directoryDirectory = new Aws.Workspaces.Directory("mainWorkspaces/directoryDirectory", new Aws.Workspaces.DirectoryArgs
    {
        DirectoryId = mainDirectory.Id,
        SelfServicePermissions = new Aws.Workspaces.Inputs.DirectorySelfServicePermissionsArgs
        {
            IncreaseVolumeSize = true,
            RebuildWorkspace = true,
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Directory
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
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.Workspaces
Assembly: Pulumi.Aws.dll
Syntax
public class Directory : CustomResource

Constructors

View Source

Directory(String, DirectoryArgs, CustomResourceOptions)

Create a Directory resource with the given unique name, arguments, and options.

Declaration
public Directory(string name, DirectoryArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

DirectoryArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Alias

The directory alias.

Declaration
public Output<string> Alias { get; }
Property Value
Type Description
Output<System.String>
View Source

CustomerUserName

The user name for the service account.

Declaration
public Output<string> CustomerUserName { get; }
Property Value
Type Description
Output<System.String>
View Source

DirectoryId

The directory identifier for registration in WorkSpaces service.

Declaration
public Output<string> DirectoryId { get; }
Property Value
Type Description
Output<System.String>
View Source

DirectoryName

The name of the directory.

Declaration
public Output<string> DirectoryName { get; }
Property Value
Type Description
Output<System.String>
View Source

DirectoryType

The directory type.

Declaration
public Output<string> DirectoryType { get; }
Property Value
Type Description
Output<System.String>
View Source

DnsIpAddresses

The IP addresses of the DNS servers for the directory.

Declaration
public Output<ImmutableArray<string>> DnsIpAddresses { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

IamRoleId

The identifier of the IAM role. This is the role that allows Amazon WorkSpaces to make calls to other services, such as Amazon EC2, on your behalf.

Declaration
public Output<string> IamRoleId { get; }
Property Value
Type Description
Output<System.String>
View Source

IpGroupIds

The identifiers of the IP access control groups associated with the directory.

Declaration
public Output<ImmutableArray<string>> IpGroupIds { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

RegistrationCode

The registration code for the directory. This is the code that users enter in their Amazon WorkSpaces client application to connect to the directory.

Declaration
public Output<string> RegistrationCode { get; }
Property Value
Type Description
Output<System.String>
View Source

SelfServicePermissions

The permissions to enable or disable self-service capabilities.

Declaration
public Output<DirectorySelfServicePermissions> SelfServicePermissions { get; }
Property Value
Type Description
Output<DirectorySelfServicePermissions>
View Source

SubnetIds

The identifiers of the subnets where the directory resides.

Declaration
public Output<ImmutableArray<string>> SubnetIds { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

Tags

A map of tags assigned to the WorkSpaces directory.

Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>
View Source

WorkspaceSecurityGroupId

The identifier of the security group that is assigned to new WorkSpaces.

Declaration
public Output<string> WorkspaceSecurityGroupId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, DirectoryState, CustomResourceOptions)

Get an existing Directory resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Directory Get(string name, Input<string> id, DirectoryState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

DirectoryState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Directory
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.