import * as pulumi from "@pulumi/pulumi"; /** * Manages a group in an AWS Directory Service directory. * * ## Example Usage * * ### Basic Usage * * The following example assumes an existing Directory Service directory with Directory Service Data access enabled. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.directoryservicedata.Group("example", { * directoryId: "d-1234567890", * samAccountName: "examplegroup", * groupScope: "Global", * groupType: "Security", * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `directoryId` (String) ID of the Directory Service directory where the group is managed. * * `samAccountName` (String) SAM account name of the group. * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * `region` (String) Region where this resource is managed. * * Using `pulumi import`, import Directory Service Data Group using the directory ID and SAM account name separated by a comma. For example: * * ```sh * $ pulumi import aws:directoryservicedata/group:Group example d-1234567890,example-group * ``` */ export declare class Group extends pulumi.CustomResource { /** * Get an existing Group resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: GroupState, opts?: pulumi.CustomResourceOptions): Group; /** * Check whether an existing Group resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: GroupState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of Group. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Group; /** * ID of the Directory that's associated with the group. */ readonly directoryId: pulumi.Output; /** * Distinguished name of the group. */ readonly distinguishedName: pulumi.Output; /** * Scope of the AD group. Valid values are `DomainLocal`, `Global`, `Universal`, and `BuiltinLocal`. If omitted, the value is read from AWS. See [AD group scopes](https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/understand-security-groups#group-scope) for scope restrictions. */ readonly groupScope: pulumi.Output; /** * Type of the AD group. Valid values are `Distribution` and `Security`. If omitted, the value is read from AWS. See [AD group types](https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/understand-security-groups#how-active-directory-security-groups-work). */ readonly groupType: pulumi.Output; /** * Region where the group is managed. Defaults to the provider region. * * Changes to `groupScope` and `groupType` in the same apply are sent to AWS as separate requests, with the scope updated first. */ readonly region: pulumi.Output; /** * SAM account name of the group. Must be between 1 and 64 characters and must not contain any of the following characters: `: ; | = + " * ? < > / \ , [ ] @`. * * The following arguments are optional: */ readonly samAccountName: pulumi.Output; /** * Unique Security identifier (SID) of the group. */ readonly sid: pulumi.Output; /** * Create a Group resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: GroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Group resources. */ export interface GroupState { /** * ID of the Directory that's associated with the group. */ directoryId?: pulumi.Input; /** * Distinguished name of the group. */ distinguishedName?: pulumi.Input; /** * Scope of the AD group. Valid values are `DomainLocal`, `Global`, `Universal`, and `BuiltinLocal`. If omitted, the value is read from AWS. See [AD group scopes](https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/understand-security-groups#group-scope) for scope restrictions. */ groupScope?: pulumi.Input; /** * Type of the AD group. Valid values are `Distribution` and `Security`. If omitted, the value is read from AWS. See [AD group types](https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/understand-security-groups#how-active-directory-security-groups-work). */ groupType?: pulumi.Input; /** * Region where the group is managed. Defaults to the provider region. * * Changes to `groupScope` and `groupType` in the same apply are sent to AWS as separate requests, with the scope updated first. */ region?: pulumi.Input; /** * SAM account name of the group. Must be between 1 and 64 characters and must not contain any of the following characters: `: ; | = + " * ? < > / \ , [ ] @`. * * The following arguments are optional: */ samAccountName?: pulumi.Input; /** * Unique Security identifier (SID) of the group. */ sid?: pulumi.Input; } /** * The set of arguments for constructing a Group resource. */ export interface GroupArgs { /** * ID of the Directory that's associated with the group. */ directoryId: pulumi.Input; /** * Scope of the AD group. Valid values are `DomainLocal`, `Global`, `Universal`, and `BuiltinLocal`. If omitted, the value is read from AWS. See [AD group scopes](https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/understand-security-groups#group-scope) for scope restrictions. */ groupScope?: pulumi.Input; /** * Type of the AD group. Valid values are `Distribution` and `Security`. If omitted, the value is read from AWS. See [AD group types](https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/understand-security-groups#how-active-directory-security-groups-work). */ groupType?: pulumi.Input; /** * Region where the group is managed. Defaults to the provider region. * * Changes to `groupScope` and `groupType` in the same apply are sent to AWS as separate requests, with the scope updated first. */ region?: pulumi.Input; /** * SAM account name of the group. Must be between 1 and 64 characters and must not contain any of the following characters: `: ; | = + " * ? < > / \ , [ ] @`. * * The following arguments are optional: */ samAccountName: pulumi.Input; } //# sourceMappingURL=group.d.ts.map