@aws-sdk/client-directory-service-data 3.782.0 → 3.783.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-types/commands/AddGroupMemberCommand.d.ts +17 -0
- package/dist-types/commands/CreateGroupCommand.d.ts +29 -0
- package/dist-types/commands/CreateUserCommand.d.ts +30 -0
- package/dist-types/commands/DeleteGroupCommand.d.ts +15 -0
- package/dist-types/commands/DeleteUserCommand.d.ts +15 -0
- package/dist-types/commands/DescribeGroupCommand.d.ts +38 -0
- package/dist-types/commands/DescribeUserCommand.d.ts +45 -0
- package/dist-types/commands/DisableUserCommand.d.ts +15 -0
- package/dist-types/commands/ListGroupMembersCommand.d.ts +35 -0
- package/dist-types/commands/ListGroupsCommand.d.ts +33 -0
- package/dist-types/commands/ListGroupsForMemberCommand.d.ts +32 -0
- package/dist-types/commands/ListUsersCommand.d.ts +33 -0
- package/dist-types/commands/RemoveGroupMemberCommand.d.ts +17 -0
- package/dist-types/commands/SearchGroupsCommand.d.ts +37 -0
- package/dist-types/commands/SearchUsersCommand.d.ts +38 -0
- package/dist-types/commands/UpdateGroupCommand.d.ts +26 -0
- package/dist-types/commands/UpdateUserCommand.d.ts +42 -0
- package/dist-types/models/models_0.d.ts +4 -4
- package/package.json +1 -1
|
@@ -91,6 +91,23 @@ declare const AddGroupMemberCommand_base: {
|
|
|
91
91
|
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
92
92
|
*
|
|
93
93
|
*
|
|
94
|
+
* @example To add a member to the Marketing group
|
|
95
|
+
* ```javascript
|
|
96
|
+
* // The following command adds an existing user to the Marketing group in the europe.example.com domain.
|
|
97
|
+
* const input = {
|
|
98
|
+
* ClientToken: "550e8400-e29b-41d4-a716-446655440000",
|
|
99
|
+
* DirectoryId: "d-12233abcde",
|
|
100
|
+
* GroupName: "Marketing",
|
|
101
|
+
* MemberName: "Pat Candella",
|
|
102
|
+
* MemberRealm: "europe.example.com"
|
|
103
|
+
* };
|
|
104
|
+
* const command = new AddGroupMemberCommand(input);
|
|
105
|
+
* const response = await client.send(command);
|
|
106
|
+
* /* response is
|
|
107
|
+
* { /* empty *\/ }
|
|
108
|
+
* *\/
|
|
109
|
+
* ```
|
|
110
|
+
*
|
|
94
111
|
* @public
|
|
95
112
|
*/
|
|
96
113
|
export declare class AddGroupMemberCommand extends AddGroupMemberCommand_base {
|
|
@@ -102,6 +102,35 @@ declare const CreateGroupCommand_base: {
|
|
|
102
102
|
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
103
103
|
*
|
|
104
104
|
*
|
|
105
|
+
* @example To create a group
|
|
106
|
+
* ```javascript
|
|
107
|
+
* // The following command creates a distribution list group named AcctngMail.
|
|
108
|
+
* const input = {
|
|
109
|
+
* ClientToken: "550e8400-e29b-41d4-a716-446655440000",
|
|
110
|
+
* DirectoryId: "d-12233abcde",
|
|
111
|
+
* GroupScope: "DomainLocal",
|
|
112
|
+
* GroupType: "Distribution",
|
|
113
|
+
* OtherAttributes: {
|
|
114
|
+
* description: {
|
|
115
|
+
* S: "Accounting dept mailing list"
|
|
116
|
+
* },
|
|
117
|
+
* displayName: {
|
|
118
|
+
* S: "Acctng-mailing-list"
|
|
119
|
+
* }
|
|
120
|
+
* },
|
|
121
|
+
* SAMAccountName: "AcctngMail"
|
|
122
|
+
* };
|
|
123
|
+
* const command = new CreateGroupCommand(input);
|
|
124
|
+
* const response = await client.send(command);
|
|
125
|
+
* /* response is
|
|
126
|
+
* {
|
|
127
|
+
* DirectoryId: "d-12233abcde",
|
|
128
|
+
* SAMAccountName: "AcctngMail",
|
|
129
|
+
* SID: "S-1-5-33-123"
|
|
130
|
+
* }
|
|
131
|
+
* *\/
|
|
132
|
+
* ```
|
|
133
|
+
*
|
|
105
134
|
* @public
|
|
106
135
|
*/
|
|
107
136
|
export declare class CreateGroupCommand extends CreateGroupCommand_base {
|
|
@@ -103,6 +103,36 @@ declare const CreateUserCommand_base: {
|
|
|
103
103
|
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
104
104
|
*
|
|
105
105
|
*
|
|
106
|
+
* @example To create a new user in the directory
|
|
107
|
+
* ```javascript
|
|
108
|
+
* // The following command
|
|
109
|
+
* const input = {
|
|
110
|
+
* ClientToken: "550e8400-e29b-41d4-a716-446655440000",
|
|
111
|
+
* DirectoryId: "d-12233abcde",
|
|
112
|
+
* EmailAddress: "pcandella@exampledomain.com",
|
|
113
|
+
* GivenName: "Pat Candella",
|
|
114
|
+
* OtherAttributes: {
|
|
115
|
+
* department: {
|
|
116
|
+
* S: "HR"
|
|
117
|
+
* },
|
|
118
|
+
* homePhone: {
|
|
119
|
+
* S: "212-555-0100"
|
|
120
|
+
* }
|
|
121
|
+
* },
|
|
122
|
+
* SAMAccountName: "pcandella",
|
|
123
|
+
* Surname: "Candella"
|
|
124
|
+
* };
|
|
125
|
+
* const command = new CreateUserCommand(input);
|
|
126
|
+
* const response = await client.send(command);
|
|
127
|
+
* /* response is
|
|
128
|
+
* {
|
|
129
|
+
* DirectoryId: "d-12233abcde",
|
|
130
|
+
* SAMAccountName: "pcandella",
|
|
131
|
+
* SID: "S-1-5-99-789"
|
|
132
|
+
* }
|
|
133
|
+
* *\/
|
|
134
|
+
* ```
|
|
135
|
+
*
|
|
106
136
|
* @public
|
|
107
137
|
*/
|
|
108
138
|
export declare class CreateUserCommand extends CreateUserCommand_base {
|
|
@@ -89,6 +89,21 @@ declare const DeleteGroupCommand_base: {
|
|
|
89
89
|
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
90
90
|
*
|
|
91
91
|
*
|
|
92
|
+
* @example To delete a group
|
|
93
|
+
* ```javascript
|
|
94
|
+
* // The following command deletes the marketing group from the specified directory.
|
|
95
|
+
* const input = {
|
|
96
|
+
* ClientToken: "550e8400-e29b-41d4-a716-446655440000",
|
|
97
|
+
* DirectoryId: "d-12233abcde",
|
|
98
|
+
* SAMAccountName: "marketing"
|
|
99
|
+
* };
|
|
100
|
+
* const command = new DeleteGroupCommand(input);
|
|
101
|
+
* const response = await client.send(command);
|
|
102
|
+
* /* response is
|
|
103
|
+
* { /* empty *\/ }
|
|
104
|
+
* *\/
|
|
105
|
+
* ```
|
|
106
|
+
*
|
|
92
107
|
* @public
|
|
93
108
|
*/
|
|
94
109
|
export declare class DeleteGroupCommand extends DeleteGroupCommand_base {
|
|
@@ -89,6 +89,21 @@ declare const DeleteUserCommand_base: {
|
|
|
89
89
|
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
90
90
|
*
|
|
91
91
|
*
|
|
92
|
+
* @example To delete a user
|
|
93
|
+
* ```javascript
|
|
94
|
+
* // The following command deletes a group from the directory.
|
|
95
|
+
* const input = {
|
|
96
|
+
* ClientToken: "550e8400-e29b-41d4-a716-446655440000",
|
|
97
|
+
* DirectoryId: "d-12233abcde",
|
|
98
|
+
* SAMAccountName: "pcandella"
|
|
99
|
+
* };
|
|
100
|
+
* const command = new DeleteUserCommand(input);
|
|
101
|
+
* const response = await client.send(command);
|
|
102
|
+
* /* response is
|
|
103
|
+
* { /* empty *\/ }
|
|
104
|
+
* *\/
|
|
105
|
+
* ```
|
|
106
|
+
*
|
|
92
107
|
* @public
|
|
93
108
|
*/
|
|
94
109
|
export declare class DeleteUserCommand extends DeleteUserCommand_base {
|
|
@@ -101,6 +101,44 @@ declare const DescribeGroupCommand_base: {
|
|
|
101
101
|
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
102
102
|
*
|
|
103
103
|
*
|
|
104
|
+
* @example To return the attributes of a group
|
|
105
|
+
* ```javascript
|
|
106
|
+
* // The following command returns the mapped attributes for a group along with the display name, description, and GUID for the group.
|
|
107
|
+
* const input = {
|
|
108
|
+
* DirectoryId: "d-12233abcde",
|
|
109
|
+
* OtherAttributes: [
|
|
110
|
+
* "displayName",
|
|
111
|
+
* "description",
|
|
112
|
+
* "objectGUID"
|
|
113
|
+
* ],
|
|
114
|
+
* Realm: "example.domain.com",
|
|
115
|
+
* SAMAccountName: "DevOpsMail"
|
|
116
|
+
* };
|
|
117
|
+
* const command = new DescribeGroupCommand(input);
|
|
118
|
+
* const response = await client.send(command);
|
|
119
|
+
* /* response is
|
|
120
|
+
* {
|
|
121
|
+
* DirectoryId: "d-12233abcde",
|
|
122
|
+
* DistinguishedName: "DevOpsmail",
|
|
123
|
+
* GroupScope: "Global",
|
|
124
|
+
* GroupType: "Distribution",
|
|
125
|
+
* OtherAttributes: {
|
|
126
|
+
* description: {
|
|
127
|
+
* S: "A group for DevOps email."
|
|
128
|
+
* },
|
|
129
|
+
* displayName: {
|
|
130
|
+
* S: "DevOps mailing list"
|
|
131
|
+
* },
|
|
132
|
+
* objectGUID: {
|
|
133
|
+
* S: "123456789"
|
|
134
|
+
* }
|
|
135
|
+
* },
|
|
136
|
+
* SAMAccountName: "DevOpsMail",
|
|
137
|
+
* SID: "S-1-5-55-678"
|
|
138
|
+
* }
|
|
139
|
+
* *\/
|
|
140
|
+
* ```
|
|
141
|
+
*
|
|
104
142
|
* @public
|
|
105
143
|
*/
|
|
106
144
|
export declare class DescribeGroupCommand extends DescribeGroupCommand_base {
|
|
@@ -104,6 +104,51 @@ declare const DescribeUserCommand_base: {
|
|
|
104
104
|
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
105
105
|
*
|
|
106
106
|
*
|
|
107
|
+
* @example To return the attributes of a user
|
|
108
|
+
* ```javascript
|
|
109
|
+
* // The following command returns the mapped attributes for a user along with the department, manager, IP phone, and date the user last set a password.
|
|
110
|
+
* const input = {
|
|
111
|
+
* DirectoryId: "d-12233abcde",
|
|
112
|
+
* OtherAttributes: [
|
|
113
|
+
* "department",
|
|
114
|
+
* "manager",
|
|
115
|
+
* "ipPhone",
|
|
116
|
+
* "pwdLastSet"
|
|
117
|
+
* ],
|
|
118
|
+
* Realm: "examplecorp.com",
|
|
119
|
+
* SAMAccountName: "twhitlock"
|
|
120
|
+
* };
|
|
121
|
+
* const command = new DescribeUserCommand(input);
|
|
122
|
+
* const response = await client.send(command);
|
|
123
|
+
* /* response is
|
|
124
|
+
* {
|
|
125
|
+
* DirectoryId: "d-12233abcde",
|
|
126
|
+
* DistinguishedName: "Terry Whitlock",
|
|
127
|
+
* EmailAddress: "terry.whitlock@examplecorp.com",
|
|
128
|
+
* Enabled: true,
|
|
129
|
+
* GivenName: "Terry Whitlock",
|
|
130
|
+
* OtherAttributes: {
|
|
131
|
+
* department: {
|
|
132
|
+
* S: "communications"
|
|
133
|
+
* },
|
|
134
|
+
* ipPhone: {
|
|
135
|
+
* S: "111.111.111.111"
|
|
136
|
+
* },
|
|
137
|
+
* manager: {
|
|
138
|
+
* S: "OU=Users,DC=mmajors"
|
|
139
|
+
* },
|
|
140
|
+
* pwdLastSet: {
|
|
141
|
+
* N: 0
|
|
142
|
+
* }
|
|
143
|
+
* },
|
|
144
|
+
* SAMAccountName: "twhitlock",
|
|
145
|
+
* SID: "123-456-7890",
|
|
146
|
+
* Surname: "Whitlock",
|
|
147
|
+
* UserPrincipalName: "terry.whitlock"
|
|
148
|
+
* }
|
|
149
|
+
* *\/
|
|
150
|
+
* ```
|
|
151
|
+
*
|
|
107
152
|
* @public
|
|
108
153
|
*/
|
|
109
154
|
export declare class DescribeUserCommand extends DescribeUserCommand_base {
|
|
@@ -91,6 +91,21 @@ declare const DisableUserCommand_base: {
|
|
|
91
91
|
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
92
92
|
*
|
|
93
93
|
*
|
|
94
|
+
* @example To disable a user account
|
|
95
|
+
* ```javascript
|
|
96
|
+
* // The following command disables the account for twhitlock.
|
|
97
|
+
* const input = {
|
|
98
|
+
* ClientToken: "550e8400-e29b-41d4-a716-446655440000",
|
|
99
|
+
* DirectoryId: "d-12233abcde",
|
|
100
|
+
* SAMAccountName: "twhitlock"
|
|
101
|
+
* };
|
|
102
|
+
* const command = new DisableUserCommand(input);
|
|
103
|
+
* const response = await client.send(command);
|
|
104
|
+
* /* response is
|
|
105
|
+
* { /* empty *\/ }
|
|
106
|
+
* *\/
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
94
109
|
* @public
|
|
95
110
|
*/
|
|
96
111
|
export declare class DisableUserCommand extends DisableUserCommand_base {
|
|
@@ -101,6 +101,41 @@ declare const ListGroupMembersCommand_base: {
|
|
|
101
101
|
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
102
102
|
*
|
|
103
103
|
*
|
|
104
|
+
* @example To list members of a group
|
|
105
|
+
* ```javascript
|
|
106
|
+
* // The following command lists Marketing users in the trusted domain example.local.
|
|
107
|
+
* const input = {
|
|
108
|
+
* DirectoryId: "d-12233abcde",
|
|
109
|
+
* MemberRealm: "example.local",
|
|
110
|
+
* Realm: "examplecorp.com",
|
|
111
|
+
* SAMAccountName: "marketing"
|
|
112
|
+
* };
|
|
113
|
+
* const command = new ListGroupMembersCommand(input);
|
|
114
|
+
* const response = await client.send(command);
|
|
115
|
+
* /* response is
|
|
116
|
+
* {
|
|
117
|
+
* DirectoryId: "d-12233abcde",
|
|
118
|
+
* Members: [
|
|
119
|
+
* {
|
|
120
|
+
* MemberType: "USER",
|
|
121
|
+
* SAMAccountName: "twhitlock",
|
|
122
|
+
* SID: "S-1-5-11-111"
|
|
123
|
+
* },
|
|
124
|
+
* {
|
|
125
|
+
* MemberType: "USER",
|
|
126
|
+
* SAMAccountName: "pcandella",
|
|
127
|
+
* SID: "S-1-5-11-112"
|
|
128
|
+
* },
|
|
129
|
+
* {
|
|
130
|
+
* MemberType: "USER",
|
|
131
|
+
* SAMAccountName: "jstiles",
|
|
132
|
+
* SID: "S-1-5-11-113"
|
|
133
|
+
* }
|
|
134
|
+
* ]
|
|
135
|
+
* }
|
|
136
|
+
* *\/
|
|
137
|
+
* ```
|
|
138
|
+
*
|
|
104
139
|
* @public
|
|
105
140
|
*/
|
|
106
141
|
export declare class ListGroupMembersCommand extends ListGroupMembersCommand_base {
|
|
@@ -96,6 +96,39 @@ declare const ListGroupsCommand_base: {
|
|
|
96
96
|
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
97
97
|
*
|
|
98
98
|
*
|
|
99
|
+
* @example To list domain groups
|
|
100
|
+
* ```javascript
|
|
101
|
+
* // The following command lists the name and default attributes for groups on the examplecorp.com domain.
|
|
102
|
+
* const input = {
|
|
103
|
+
* DirectoryId: "d-12233abcde",
|
|
104
|
+
* MaxResults: 123,
|
|
105
|
+
* NextToken: "123456",
|
|
106
|
+
* Realm: "examplecorp.com"
|
|
107
|
+
* };
|
|
108
|
+
* const command = new ListGroupsCommand(input);
|
|
109
|
+
* const response = await client.send(command);
|
|
110
|
+
* /* response is
|
|
111
|
+
* {
|
|
112
|
+
* DirectoryId: "d-12233abcde",
|
|
113
|
+
* Groups: [
|
|
114
|
+
* {
|
|
115
|
+
* GroupScope: "BuiltinLocal",
|
|
116
|
+
* GroupType: "Security",
|
|
117
|
+
* SAMAccountName: "Administrators",
|
|
118
|
+
* SID: "S-1-5-32-544"
|
|
119
|
+
* },
|
|
120
|
+
* {
|
|
121
|
+
* GroupScope: "BuiltinLocal",
|
|
122
|
+
* GroupType: "Security",
|
|
123
|
+
* SAMAccountName: "Users",
|
|
124
|
+
* SID: "S-1-5-32-545"
|
|
125
|
+
* }
|
|
126
|
+
* ],
|
|
127
|
+
* NextToken: "223456"
|
|
128
|
+
* }
|
|
129
|
+
* *\/
|
|
130
|
+
* ```
|
|
131
|
+
*
|
|
99
132
|
* @public
|
|
100
133
|
*/
|
|
101
134
|
export declare class ListGroupsCommand extends ListGroupsCommand_base {
|
|
@@ -102,6 +102,38 @@ declare const ListGroupsForMemberCommand_base: {
|
|
|
102
102
|
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
103
103
|
*
|
|
104
104
|
*
|
|
105
|
+
* @example To list groups for a member
|
|
106
|
+
* ```javascript
|
|
107
|
+
* // The following command
|
|
108
|
+
* const input = {
|
|
109
|
+
* DirectoryId: "d-12233abcde",
|
|
110
|
+
* MemberRealm: "example.local",
|
|
111
|
+
* Realm: "examplecorp.com",
|
|
112
|
+
* SAMAccountName: "twhitlock"
|
|
113
|
+
* };
|
|
114
|
+
* const command = new ListGroupsForMemberCommand(input);
|
|
115
|
+
* const response = await client.send(command);
|
|
116
|
+
* /* response is
|
|
117
|
+
* {
|
|
118
|
+
* DirectoryId: "d-12233abcde",
|
|
119
|
+
* Groups: [
|
|
120
|
+
* {
|
|
121
|
+
* GroupScope: "BuiltinLocal",
|
|
122
|
+
* GroupType: "Security",
|
|
123
|
+
* SAMAccountName: "Administrators",
|
|
124
|
+
* SID: "S-1-5-32-544"
|
|
125
|
+
* },
|
|
126
|
+
* {
|
|
127
|
+
* GroupScope: "BuiltinLocal",
|
|
128
|
+
* GroupType: "Security",
|
|
129
|
+
* SAMAccountName: "Users",
|
|
130
|
+
* SID: "S-1-5-32-545"
|
|
131
|
+
* }
|
|
132
|
+
* ]
|
|
133
|
+
* }
|
|
134
|
+
* *\/
|
|
135
|
+
* ```
|
|
136
|
+
*
|
|
105
137
|
* @public
|
|
106
138
|
*/
|
|
107
139
|
export declare class ListGroupsForMemberCommand extends ListGroupsForMemberCommand_base {
|
|
@@ -97,6 +97,39 @@ declare const ListUsersCommand_base: {
|
|
|
97
97
|
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
98
98
|
*
|
|
99
99
|
*
|
|
100
|
+
* @example To list users in a realm
|
|
101
|
+
* ```javascript
|
|
102
|
+
* // The following command lists users on the examplecorp.com domain.
|
|
103
|
+
* const input = {
|
|
104
|
+
* DirectoryId: "d-12233abcde",
|
|
105
|
+
* Realm: "examplecorp.com"
|
|
106
|
+
* };
|
|
107
|
+
* const command = new ListUsersCommand(input);
|
|
108
|
+
* const response = await client.send(command);
|
|
109
|
+
* /* response is
|
|
110
|
+
* {
|
|
111
|
+
* DirectoryId: "d-12233abcde",
|
|
112
|
+
* Users: [
|
|
113
|
+
* {
|
|
114
|
+
* Enabled: true,
|
|
115
|
+
* SAMAccountName: "twhitlock",
|
|
116
|
+
* SID: "S-1-5-11-111"
|
|
117
|
+
* },
|
|
118
|
+
* {
|
|
119
|
+
* Enabled: true,
|
|
120
|
+
* SAMAccountName: "pcandella",
|
|
121
|
+
* SID: "S-1-5-11-112"
|
|
122
|
+
* },
|
|
123
|
+
* {
|
|
124
|
+
* Enabled: true,
|
|
125
|
+
* SAMAccountName: "jstiles",
|
|
126
|
+
* SID: "S-1-5-11-113"
|
|
127
|
+
* }
|
|
128
|
+
* ]
|
|
129
|
+
* }
|
|
130
|
+
* *\/
|
|
131
|
+
* ```
|
|
132
|
+
*
|
|
100
133
|
* @public
|
|
101
134
|
*/
|
|
102
135
|
export declare class ListUsersCommand extends ListUsersCommand_base {
|
|
@@ -91,6 +91,23 @@ declare const RemoveGroupMemberCommand_base: {
|
|
|
91
91
|
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
92
92
|
*
|
|
93
93
|
*
|
|
94
|
+
* @example To remove a member from a group
|
|
95
|
+
* ```javascript
|
|
96
|
+
* // The following command removes the specified member from the example.local domain.
|
|
97
|
+
* const input = {
|
|
98
|
+
* ClientToken: "550e8400-e29b-41d4-a716-446655440000",
|
|
99
|
+
* DirectoryId: "d-12233abcde",
|
|
100
|
+
* GroupName: "DevOps",
|
|
101
|
+
* MemberName: "Pat Candella",
|
|
102
|
+
* MemberRealm: "example.local"
|
|
103
|
+
* };
|
|
104
|
+
* const command = new RemoveGroupMemberCommand(input);
|
|
105
|
+
* const response = await client.send(command);
|
|
106
|
+
* /* response is
|
|
107
|
+
* { /* empty *\/ }
|
|
108
|
+
* *\/
|
|
109
|
+
* ```
|
|
110
|
+
*
|
|
94
111
|
* @public
|
|
95
112
|
*/
|
|
96
113
|
export declare class RemoveGroupMemberCommand extends RemoveGroupMemberCommand_base {
|
|
@@ -113,6 +113,43 @@ declare const SearchGroupsCommand_base: {
|
|
|
113
113
|
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
114
114
|
*
|
|
115
115
|
*
|
|
116
|
+
* @example To search for groups
|
|
117
|
+
* ```javascript
|
|
118
|
+
* // The following command searches the examplecorp.com domain for groups with the GroupType security.
|
|
119
|
+
* const input = {
|
|
120
|
+
* DirectoryId: "d-12233abcde",
|
|
121
|
+
* MaxResults: 123,
|
|
122
|
+
* NextToken: "123456",
|
|
123
|
+
* Realm: "examplecorp.com",
|
|
124
|
+
* SearchAttributes: [
|
|
125
|
+
* "GroupScope"
|
|
126
|
+
* ],
|
|
127
|
+
* SearchString: "Security"
|
|
128
|
+
* };
|
|
129
|
+
* const command = new SearchGroupsCommand(input);
|
|
130
|
+
* const response = await client.send(command);
|
|
131
|
+
* /* response is
|
|
132
|
+
* {
|
|
133
|
+
* DirectoryId: "d-12233abcde",
|
|
134
|
+
* Groups: [
|
|
135
|
+
* {
|
|
136
|
+
* GroupScope: "BuiltinLocal",
|
|
137
|
+
* GroupType: "Security",
|
|
138
|
+
* SAMAccountName: "Administrators",
|
|
139
|
+
* SID: "S-1-5-32-544"
|
|
140
|
+
* },
|
|
141
|
+
* {
|
|
142
|
+
* GroupScope: "BuiltinLocal",
|
|
143
|
+
* GroupType: "Security",
|
|
144
|
+
* SAMAccountName: "Users",
|
|
145
|
+
* SID: "S-1-5-32-545"
|
|
146
|
+
* }
|
|
147
|
+
* ],
|
|
148
|
+
* NextToken: "223456"
|
|
149
|
+
* }
|
|
150
|
+
* *\/
|
|
151
|
+
* ```
|
|
152
|
+
*
|
|
116
153
|
* @public
|
|
117
154
|
*/
|
|
118
155
|
export declare class SearchGroupsCommand extends SearchGroupsCommand_base {
|
|
@@ -116,6 +116,44 @@ declare const SearchUsersCommand_base: {
|
|
|
116
116
|
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
117
117
|
*
|
|
118
118
|
*
|
|
119
|
+
* @example To search for users
|
|
120
|
+
* ```javascript
|
|
121
|
+
* // The following command searches for users in the domain based on the SearchAttributes.
|
|
122
|
+
* const input = {
|
|
123
|
+
* DirectoryId: "d-12233abcde",
|
|
124
|
+
* Realm: "examplecorp.com",
|
|
125
|
+
* SearchAttributes: [
|
|
126
|
+
* "department"
|
|
127
|
+
* ],
|
|
128
|
+
* SearchString: "DevOps"
|
|
129
|
+
* };
|
|
130
|
+
* const command = new SearchUsersCommand(input);
|
|
131
|
+
* const response = await client.send(command);
|
|
132
|
+
* /* response is
|
|
133
|
+
* {
|
|
134
|
+
* DirectoryId: "d-12233abcde",
|
|
135
|
+
* NextToken: "223456",
|
|
136
|
+
* Users: [
|
|
137
|
+
* {
|
|
138
|
+
* EmailAddress: "twhitlock@examplecorp.com",
|
|
139
|
+
* SAMAccountName: "twhitlock",
|
|
140
|
+
* SID: "S-1-5-11-111"
|
|
141
|
+
* },
|
|
142
|
+
* {
|
|
143
|
+
* EmailAddress: "pcandella@examplecorp.com",
|
|
144
|
+
* SAMAccountName: "pcandella",
|
|
145
|
+
* SID: "S-1-5-11-112"
|
|
146
|
+
* },
|
|
147
|
+
* {
|
|
148
|
+
* EmailAddress: "jstiles@examplecorp.com",
|
|
149
|
+
* SAMAccountName: "jstiles",
|
|
150
|
+
* SID: "S-1-5-11-113"
|
|
151
|
+
* }
|
|
152
|
+
* ]
|
|
153
|
+
* }
|
|
154
|
+
* *\/
|
|
155
|
+
* ```
|
|
156
|
+
*
|
|
119
157
|
* @public
|
|
120
158
|
*/
|
|
121
159
|
export declare class SearchUsersCommand extends SearchUsersCommand_base {
|
|
@@ -102,6 +102,32 @@ declare const UpdateGroupCommand_base: {
|
|
|
102
102
|
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
103
103
|
*
|
|
104
104
|
*
|
|
105
|
+
* @example To update a group
|
|
106
|
+
* ```javascript
|
|
107
|
+
* // The following command updates the preferred language and country attributes for the GuestsLocal group.
|
|
108
|
+
* const input = {
|
|
109
|
+
* ClientToken: "550e8400-e29b-41d4-a716-446655440000",
|
|
110
|
+
* DirectoryId: "d-12233abcde",
|
|
111
|
+
* GroupScope: "Global",
|
|
112
|
+
* GroupType: "Security",
|
|
113
|
+
* OtherAttributes: {
|
|
114
|
+
* co: {
|
|
115
|
+
* S: "US"
|
|
116
|
+
* },
|
|
117
|
+
* preferredLanguage: {
|
|
118
|
+
* S: "English"
|
|
119
|
+
* }
|
|
120
|
+
* },
|
|
121
|
+
* SAMAccountName: "GuestsLocal",
|
|
122
|
+
* UpdateType: "REPLACE"
|
|
123
|
+
* };
|
|
124
|
+
* const command = new UpdateGroupCommand(input);
|
|
125
|
+
* const response = await client.send(command);
|
|
126
|
+
* /* response is
|
|
127
|
+
* { /* empty *\/ }
|
|
128
|
+
* *\/
|
|
129
|
+
* ```
|
|
130
|
+
*
|
|
105
131
|
* @public
|
|
106
132
|
*/
|
|
107
133
|
export declare class UpdateGroupCommand extends UpdateGroupCommand_base {
|
|
@@ -103,6 +103,48 @@ declare const UpdateUserCommand_base: {
|
|
|
103
103
|
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
104
104
|
*
|
|
105
105
|
*
|
|
106
|
+
* @example To update user attributes
|
|
107
|
+
* ```javascript
|
|
108
|
+
* // The following command
|
|
109
|
+
* const input = {
|
|
110
|
+
* ClientToken: "550e8400-e29b-41d4-a716-446655440000",
|
|
111
|
+
* DirectoryId: "d-12233abcde",
|
|
112
|
+
* EmailAddress: "twhitlock@examplecorp.com",
|
|
113
|
+
* GivenName: "Terry",
|
|
114
|
+
* OtherAttributes: {
|
|
115
|
+
* co: {
|
|
116
|
+
* S: "US"
|
|
117
|
+
* },
|
|
118
|
+
* homePhone: {
|
|
119
|
+
* S: "333-333-3333"
|
|
120
|
+
* },
|
|
121
|
+
* physicalDeliveryOfficeName: {
|
|
122
|
+
* S: "Example Company"
|
|
123
|
+
* },
|
|
124
|
+
* postalCode: {
|
|
125
|
+
* S: "54321"
|
|
126
|
+
* },
|
|
127
|
+
* st: {
|
|
128
|
+
* S: "WA"
|
|
129
|
+
* },
|
|
130
|
+
* streetAddress: {
|
|
131
|
+
* S: "123 Any Street"
|
|
132
|
+
* },
|
|
133
|
+
* telephoneNumber: {
|
|
134
|
+
* S: "212-555-1111"
|
|
135
|
+
* }
|
|
136
|
+
* },
|
|
137
|
+
* SAMAccountName: "twhitlock",
|
|
138
|
+
* Surname: "Whitlock",
|
|
139
|
+
* UpdateType: "ADD"
|
|
140
|
+
* };
|
|
141
|
+
* const command = new UpdateUserCommand(input);
|
|
142
|
+
* const response = await client.send(command);
|
|
143
|
+
* /* response is
|
|
144
|
+
* { /* empty *\/ }
|
|
145
|
+
* *\/
|
|
146
|
+
* ```
|
|
147
|
+
*
|
|
106
148
|
* @public
|
|
107
149
|
*/
|
|
108
150
|
export declare class UpdateUserCommand extends UpdateUserCommand_base {
|
|
@@ -579,7 +579,7 @@ export interface DescribeGroupRequest {
|
|
|
579
579
|
SAMAccountName: string | undefined;
|
|
580
580
|
/**
|
|
581
581
|
* <p> One or more attributes to be returned for the group. For a list of supported attributes,
|
|
582
|
-
* see <a href="https://docs.aws.amazon.com/directoryservice/latest/admin-guide/
|
|
582
|
+
* see <a href="https://docs.aws.amazon.com/directoryservice/latest/admin-guide/ad_data_attributes.html">Directory Service Data Attributes</a>.
|
|
583
583
|
* </p>
|
|
584
584
|
* @public
|
|
585
585
|
*/
|
|
@@ -693,7 +693,7 @@ export interface DescribeUserResult {
|
|
|
693
693
|
DistinguishedName?: string | undefined;
|
|
694
694
|
/**
|
|
695
695
|
* <p> The UPN that is an Internet-style login name for a user and is based on the Internet
|
|
696
|
-
* standard <a href="https://
|
|
696
|
+
* standard <a href="https://datatracker.ietf.org/doc/html/rfc822">RFC 822</a>. The UPN is shorter
|
|
697
697
|
* than the distinguished name and easier to remember. </p>
|
|
698
698
|
* @public
|
|
699
699
|
*/
|
|
@@ -1355,7 +1355,7 @@ export interface User {
|
|
|
1355
1355
|
DistinguishedName?: string | undefined;
|
|
1356
1356
|
/**
|
|
1357
1357
|
* <p> The UPN that is an internet-style login name for a user and based on the internet
|
|
1358
|
-
* standard <a href="https://
|
|
1358
|
+
* standard <a href="https://datatracker.ietf.org/doc/html/rfc822">RFC 822</a>. The UPN is shorter
|
|
1359
1359
|
* than the distinguished name and easier to remember. </p>
|
|
1360
1360
|
* @public
|
|
1361
1361
|
*/
|
|
@@ -1515,7 +1515,7 @@ export interface UpdateUserRequest {
|
|
|
1515
1515
|
/**
|
|
1516
1516
|
* <p> An expression that defines one or more attribute names with the data type and value of
|
|
1517
1517
|
* each attribute. A key is an attribute name, and the value is a list of maps. For a list of
|
|
1518
|
-
* supported attributes, see <a href="https://docs.aws.amazon.com/directoryservice/latest/admin-guide/
|
|
1518
|
+
* supported attributes, see <a href="https://docs.aws.amazon.com/directoryservice/latest/admin-guide/ad_data_attributes.html">Directory Service Data Attributes</a>. </p>
|
|
1519
1519
|
* <note>
|
|
1520
1520
|
* <p> Attribute names are case insensitive. </p>
|
|
1521
1521
|
* </note>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-directory-service-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Directory Service Data Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.783.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|