@@ -17,6 +17,11 @@ import {
17
17
CancelMailboxExportJobCommandOutput ,
18
18
} from "./commands/CancelMailboxExportJobCommand" ;
19
19
import { CreateAliasCommand , CreateAliasCommandInput , CreateAliasCommandOutput } from "./commands/CreateAliasCommand" ;
20
+ import {
21
+ CreateAvailabilityConfigurationCommand ,
22
+ CreateAvailabilityConfigurationCommandInput ,
23
+ CreateAvailabilityConfigurationCommandOutput ,
24
+ } from "./commands/CreateAvailabilityConfigurationCommand" ;
20
25
import { CreateGroupCommand , CreateGroupCommandInput , CreateGroupCommandOutput } from "./commands/CreateGroupCommand" ;
21
26
import {
22
27
CreateMobileDeviceAccessRuleCommand ,
@@ -40,6 +45,11 @@ import {
40
45
DeleteAccessControlRuleCommandOutput ,
41
46
} from "./commands/DeleteAccessControlRuleCommand" ;
42
47
import { DeleteAliasCommand , DeleteAliasCommandInput , DeleteAliasCommandOutput } from "./commands/DeleteAliasCommand" ;
48
+ import {
49
+ DeleteAvailabilityConfigurationCommand ,
50
+ DeleteAvailabilityConfigurationCommandInput ,
51
+ DeleteAvailabilityConfigurationCommandOutput ,
52
+ } from "./commands/DeleteAvailabilityConfigurationCommand" ;
43
53
import {
44
54
DeleteEmailMonitoringConfigurationCommand ,
45
55
DeleteEmailMonitoringConfigurationCommandInput ,
@@ -168,6 +178,11 @@ import {
168
178
ListAccessControlRulesCommandOutput ,
169
179
} from "./commands/ListAccessControlRulesCommand" ;
170
180
import { ListAliasesCommand , ListAliasesCommandInput , ListAliasesCommandOutput } from "./commands/ListAliasesCommand" ;
181
+ import {
182
+ ListAvailabilityConfigurationsCommand ,
183
+ ListAvailabilityConfigurationsCommandInput ,
184
+ ListAvailabilityConfigurationsCommandOutput ,
185
+ } from "./commands/ListAvailabilityConfigurationsCommand" ;
171
186
import {
172
187
ListGroupMembersCommand ,
173
188
ListGroupMembersCommandInput ,
@@ -271,11 +286,21 @@ import {
271
286
StartMailboxExportJobCommandOutput ,
272
287
} from "./commands/StartMailboxExportJobCommand" ;
273
288
import { TagResourceCommand , TagResourceCommandInput , TagResourceCommandOutput } from "./commands/TagResourceCommand" ;
289
+ import {
290
+ TestAvailabilityConfigurationCommand ,
291
+ TestAvailabilityConfigurationCommandInput ,
292
+ TestAvailabilityConfigurationCommandOutput ,
293
+ } from "./commands/TestAvailabilityConfigurationCommand" ;
274
294
import {
275
295
UntagResourceCommand ,
276
296
UntagResourceCommandInput ,
277
297
UntagResourceCommandOutput ,
278
298
} from "./commands/UntagResourceCommand" ;
299
+ import {
300
+ UpdateAvailabilityConfigurationCommand ,
301
+ UpdateAvailabilityConfigurationCommandInput ,
302
+ UpdateAvailabilityConfigurationCommandOutput ,
303
+ } from "./commands/UpdateAvailabilityConfigurationCommand" ;
279
304
import {
280
305
UpdateDefaultMailDomainCommand ,
281
306
UpdateDefaultMailDomainCommandInput ,
@@ -468,6 +493,38 @@ export class WorkMail extends WorkMailClient {
468
493
}
469
494
}
470
495
496
+ /**
497
+ * <p>Creates an <code>AvailabilityConfiguration</code> for the given WorkMail organization and domain.</p>
498
+ */
499
+ public createAvailabilityConfiguration (
500
+ args : CreateAvailabilityConfigurationCommandInput ,
501
+ options ?: __HttpHandlerOptions
502
+ ) : Promise < CreateAvailabilityConfigurationCommandOutput > ;
503
+ public createAvailabilityConfiguration (
504
+ args : CreateAvailabilityConfigurationCommandInput ,
505
+ cb : ( err : any , data ?: CreateAvailabilityConfigurationCommandOutput ) => void
506
+ ) : void ;
507
+ public createAvailabilityConfiguration (
508
+ args : CreateAvailabilityConfigurationCommandInput ,
509
+ options : __HttpHandlerOptions ,
510
+ cb : ( err : any , data ?: CreateAvailabilityConfigurationCommandOutput ) => void
511
+ ) : void ;
512
+ public createAvailabilityConfiguration (
513
+ args : CreateAvailabilityConfigurationCommandInput ,
514
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: CreateAvailabilityConfigurationCommandOutput ) => void ) ,
515
+ cb ?: ( err : any , data ?: CreateAvailabilityConfigurationCommandOutput ) => void
516
+ ) : Promise < CreateAvailabilityConfigurationCommandOutput > | void {
517
+ const command = new CreateAvailabilityConfigurationCommand ( args ) ;
518
+ if ( typeof optionsOrCb === "function" ) {
519
+ this . send ( command , optionsOrCb ) ;
520
+ } else if ( typeof cb === "function" ) {
521
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
522
+ this . send ( command , optionsOrCb || { } , cb ) ;
523
+ } else {
524
+ return this . send ( command , optionsOrCb ) ;
525
+ }
526
+ }
527
+
471
528
/**
472
529
* <p>Creates a group that can be used in Amazon WorkMail by calling the <a>RegisterToWorkMail</a> operation.</p>
473
530
*/
@@ -682,6 +739,38 @@ export class WorkMail extends WorkMailClient {
682
739
}
683
740
}
684
741
742
+ /**
743
+ * <p>Deletes the <code>AvailabilityConfiguration</code> for the given WorkMail organization and domain.</p>
744
+ */
745
+ public deleteAvailabilityConfiguration (
746
+ args : DeleteAvailabilityConfigurationCommandInput ,
747
+ options ?: __HttpHandlerOptions
748
+ ) : Promise < DeleteAvailabilityConfigurationCommandOutput > ;
749
+ public deleteAvailabilityConfiguration (
750
+ args : DeleteAvailabilityConfigurationCommandInput ,
751
+ cb : ( err : any , data ?: DeleteAvailabilityConfigurationCommandOutput ) => void
752
+ ) : void ;
753
+ public deleteAvailabilityConfiguration (
754
+ args : DeleteAvailabilityConfigurationCommandInput ,
755
+ options : __HttpHandlerOptions ,
756
+ cb : ( err : any , data ?: DeleteAvailabilityConfigurationCommandOutput ) => void
757
+ ) : void ;
758
+ public deleteAvailabilityConfiguration (
759
+ args : DeleteAvailabilityConfigurationCommandInput ,
760
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DeleteAvailabilityConfigurationCommandOutput ) => void ) ,
761
+ cb ?: ( err : any , data ?: DeleteAvailabilityConfigurationCommandOutput ) => void
762
+ ) : Promise < DeleteAvailabilityConfigurationCommandOutput > | void {
763
+ const command = new DeleteAvailabilityConfigurationCommand ( args ) ;
764
+ if ( typeof optionsOrCb === "function" ) {
765
+ this . send ( command , optionsOrCb ) ;
766
+ } else if ( typeof cb === "function" ) {
767
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
768
+ this . send ( command , optionsOrCb || { } , cb ) ;
769
+ } else {
770
+ return this . send ( command , optionsOrCb ) ;
771
+ }
772
+ }
773
+
685
774
/**
686
775
* <p>Deletes the email monitoring configuration for a specified organization.</p>
687
776
*/
@@ -1575,6 +1664,38 @@ export class WorkMail extends WorkMailClient {
1575
1664
}
1576
1665
}
1577
1666
1667
+ /**
1668
+ * <p>List all the <code>AvailabilityConfiguration</code>'s for the given WorkMail organization.</p>
1669
+ */
1670
+ public listAvailabilityConfigurations (
1671
+ args : ListAvailabilityConfigurationsCommandInput ,
1672
+ options ?: __HttpHandlerOptions
1673
+ ) : Promise < ListAvailabilityConfigurationsCommandOutput > ;
1674
+ public listAvailabilityConfigurations (
1675
+ args : ListAvailabilityConfigurationsCommandInput ,
1676
+ cb : ( err : any , data ?: ListAvailabilityConfigurationsCommandOutput ) => void
1677
+ ) : void ;
1678
+ public listAvailabilityConfigurations (
1679
+ args : ListAvailabilityConfigurationsCommandInput ,
1680
+ options : __HttpHandlerOptions ,
1681
+ cb : ( err : any , data ?: ListAvailabilityConfigurationsCommandOutput ) => void
1682
+ ) : void ;
1683
+ public listAvailabilityConfigurations (
1684
+ args : ListAvailabilityConfigurationsCommandInput ,
1685
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ListAvailabilityConfigurationsCommandOutput ) => void ) ,
1686
+ cb ?: ( err : any , data ?: ListAvailabilityConfigurationsCommandOutput ) => void
1687
+ ) : Promise < ListAvailabilityConfigurationsCommandOutput > | void {
1688
+ const command = new ListAvailabilityConfigurationsCommand ( args ) ;
1689
+ if ( typeof optionsOrCb === "function" ) {
1690
+ this . send ( command , optionsOrCb ) ;
1691
+ } else if ( typeof cb === "function" ) {
1692
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1693
+ this . send ( command , optionsOrCb || { } , cb ) ;
1694
+ } else {
1695
+ return this . send ( command , optionsOrCb ) ;
1696
+ }
1697
+ }
1698
+
1578
1699
/**
1579
1700
* <p>Returns an overview of the members of a group. Users and groups can be members of a
1580
1701
* group.</p>
@@ -2312,6 +2433,45 @@ export class WorkMail extends WorkMailClient {
2312
2433
}
2313
2434
}
2314
2435
2436
+ /**
2437
+ * <p>Performs a test on an availability provider to ensure that access is allowed. For EWS, it verifies the provided credentials can be used to successfully log in. For Lambda, it verifies that the Lambda function can be invoked and that the resource access
2438
+ * policy was configured to deny anonymous access. An anonymous invocation is one done without providing either a <code>SourceArn</code> or <code>SourceAccount</code> header.</p>
2439
+ * <note>
2440
+ * <p>The request must contain either one provider definition (<code>EwsProvider</code> or
2441
+ * <code>LambdaProvider</code>) or the <code>DomainName</code> parameter. If the
2442
+ * <code>DomainName</code> parameter is provided, the configuration stored under the
2443
+ * <code>DomainName</code> will be tested. </p>
2444
+ * </note>
2445
+ */
2446
+ public testAvailabilityConfiguration (
2447
+ args : TestAvailabilityConfigurationCommandInput ,
2448
+ options ?: __HttpHandlerOptions
2449
+ ) : Promise < TestAvailabilityConfigurationCommandOutput > ;
2450
+ public testAvailabilityConfiguration (
2451
+ args : TestAvailabilityConfigurationCommandInput ,
2452
+ cb : ( err : any , data ?: TestAvailabilityConfigurationCommandOutput ) => void
2453
+ ) : void ;
2454
+ public testAvailabilityConfiguration (
2455
+ args : TestAvailabilityConfigurationCommandInput ,
2456
+ options : __HttpHandlerOptions ,
2457
+ cb : ( err : any , data ?: TestAvailabilityConfigurationCommandOutput ) => void
2458
+ ) : void ;
2459
+ public testAvailabilityConfiguration (
2460
+ args : TestAvailabilityConfigurationCommandInput ,
2461
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: TestAvailabilityConfigurationCommandOutput ) => void ) ,
2462
+ cb ?: ( err : any , data ?: TestAvailabilityConfigurationCommandOutput ) => void
2463
+ ) : Promise < TestAvailabilityConfigurationCommandOutput > | void {
2464
+ const command = new TestAvailabilityConfigurationCommand ( args ) ;
2465
+ if ( typeof optionsOrCb === "function" ) {
2466
+ this . send ( command , optionsOrCb ) ;
2467
+ } else if ( typeof cb === "function" ) {
2468
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
2469
+ this . send ( command , optionsOrCb || { } , cb ) ;
2470
+ } else {
2471
+ return this . send ( command , optionsOrCb ) ;
2472
+ }
2473
+ }
2474
+
2315
2475
/**
2316
2476
* <p>Untags the specified tags from the specified Amazon WorkMail organization
2317
2477
* resource.</p>
@@ -2345,6 +2505,39 @@ export class WorkMail extends WorkMailClient {
2345
2505
}
2346
2506
}
2347
2507
2508
+ /**
2509
+ * <p>Updates an existing <code>AvailabilityConfiguration</code> for the given WorkMail
2510
+ * organization and domain.</p>
2511
+ */
2512
+ public updateAvailabilityConfiguration (
2513
+ args : UpdateAvailabilityConfigurationCommandInput ,
2514
+ options ?: __HttpHandlerOptions
2515
+ ) : Promise < UpdateAvailabilityConfigurationCommandOutput > ;
2516
+ public updateAvailabilityConfiguration (
2517
+ args : UpdateAvailabilityConfigurationCommandInput ,
2518
+ cb : ( err : any , data ?: UpdateAvailabilityConfigurationCommandOutput ) => void
2519
+ ) : void ;
2520
+ public updateAvailabilityConfiguration (
2521
+ args : UpdateAvailabilityConfigurationCommandInput ,
2522
+ options : __HttpHandlerOptions ,
2523
+ cb : ( err : any , data ?: UpdateAvailabilityConfigurationCommandOutput ) => void
2524
+ ) : void ;
2525
+ public updateAvailabilityConfiguration (
2526
+ args : UpdateAvailabilityConfigurationCommandInput ,
2527
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: UpdateAvailabilityConfigurationCommandOutput ) => void ) ,
2528
+ cb ?: ( err : any , data ?: UpdateAvailabilityConfigurationCommandOutput ) => void
2529
+ ) : Promise < UpdateAvailabilityConfigurationCommandOutput > | void {
2530
+ const command = new UpdateAvailabilityConfigurationCommand ( args ) ;
2531
+ if ( typeof optionsOrCb === "function" ) {
2532
+ this . send ( command , optionsOrCb ) ;
2533
+ } else if ( typeof cb === "function" ) {
2534
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
2535
+ this . send ( command , optionsOrCb || { } , cb ) ;
2536
+ } else {
2537
+ return this . send ( command , optionsOrCb ) ;
2538
+ }
2539
+ }
2540
+
2348
2541
/**
2349
2542
* <p>Updates the default mail domain for an organization. The default mail domain is used by the WorkMail AWS Console to suggest an email address when enabling a mail user. You can only have one default domain.</p>
2350
2543
*/
0 commit comments