iam-floyd 0.660.0 → 0.663.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/README.md CHANGED
@@ -17,9 +17,9 @@
17
17
  Support for:
18
18
 
19
19
  - 417 Services
20
- - 18178 Actions
21
- - 1948 Resource Types
22
- - 1897 Condition keys
20
+ - 18192 Actions
21
+ - 1954 Resource Types
22
+ - 1899 Condition keys
23
23
  <!-- /stats -->
24
24
 
25
25
  ![EXPERIMENTAL](https://img.shields.io/badge/stability-experimantal-orange?style=for-the-badge)**<br>This is an early version of the package. The API will change while I implement new features. Therefore make sure you use an exact version in your `package.json` before it reaches 1.0.0.**
@@ -21,6 +21,14 @@ export declare class Apigateway extends PolicyStatement {
21
21
  * https://docs.aws.amazon.com/apigateway/latest/api/API_Operations.html
22
22
  */
23
23
  toAddCertificateToDomain(): this;
24
+ /**
25
+ * Grants permission to create an access association from an access association source to a custom domain name for private APIs
26
+ *
27
+ * Access Level: Permissions management
28
+ *
29
+ * https://docs.aws.amazon.com/apigateway/latest/api/API_Operations.html
30
+ */
31
+ toCreateAccessAssociation(): this;
24
32
  /**
25
33
  * Grants permission to delete a particular resource
26
34
  *
@@ -77,6 +85,14 @@ export declare class Apigateway extends PolicyStatement {
77
85
  * https://docs.aws.amazon.com/apigateway/latest/api/API_Operations.html
78
86
  */
79
87
  toPUT(): this;
88
+ /**
89
+ * Grants permission to reject an existing access association owned by another account to a custom domain name for private APIs
90
+ *
91
+ * Access Level: Permissions management
92
+ *
93
+ * https://docs.aws.amazon.com/apigateway/latest/api/API_Operations.html
94
+ */
95
+ toRejectAccessAssociation(): this;
80
96
  /**
81
97
  * Grants permission to remove certificates for mutual TLS authentication from a domain name. This is an additional authorization control for managing the DomainName resource due to the sensitive nature of mTLS
82
98
  *
@@ -93,6 +109,22 @@ export declare class Apigateway extends PolicyStatement {
93
109
  * https://docs.aws.amazon.com/apigateway/latest/api/API_Operations.html
94
110
  */
95
111
  toSetWebACL(): this;
112
+ /**
113
+ * Grants permission to update the management policy of a custom domain name for private APIs
114
+ *
115
+ * Access Level: Permissions management
116
+ *
117
+ * https://docs.aws.amazon.com/apigateway/latest/api/API_Operations.html
118
+ */
119
+ toUpdateDomainNameManagementPolicy(): this;
120
+ /**
121
+ * Grants permission to update the invoke policy of a custom domain name for private APIs
122
+ *
123
+ * Access Level: Permissions management
124
+ *
125
+ * https://docs.aws.amazon.com/apigateway/latest/api/API_Operations.html
126
+ */
127
+ toUpdateDomainNamePolicy(): this;
96
128
  /**
97
129
  * Grants permission to manage the IAM resource policy for an API. This is an additional authorization control for managing an API due to the sensitive nature of the resource policy
98
130
  *
@@ -340,6 +372,34 @@ export declare class Apigateway extends PolicyStatement {
340
372
  * - .ifAwsResourceTag()
341
373
  */
342
374
  onDomainNames(region?: string, partition?: string): this;
375
+ /**
376
+ * Adds a resource of type DomainNameAccessAssociation to the statement
377
+ *
378
+ * https://docs.aws.amazon.com/apigateway/latest/api/API_DomainNameAccessAssociation.html
379
+ *
380
+ * @param domainName - Identifier for the domainName.
381
+ * @param sourceType - Identifier for the sourceType.
382
+ * @param sourceId - Identifier for the sourceId.
383
+ * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
384
+ * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
385
+ * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
386
+ */
387
+ onDomainNameAccessAssociation(domainName: string, sourceType: string, sourceId: string, account?: string, region?: string, partition?: string): this;
388
+ /**
389
+ * Adds a resource of type DomainNameAccessAssociations to the statement
390
+ *
391
+ * https://docs.aws.amazon.com/apigateway/latest/api/API_DomainNameAccessAssociation.html
392
+ *
393
+ * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
394
+ * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
395
+ * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
396
+ *
397
+ * Possible conditions:
398
+ * - .ifRequestAccessAssociationSource()
399
+ * - .ifRequestDomainNameArn()
400
+ * - .ifAwsResourceTag()
401
+ */
402
+ onDomainNameAccessAssociations(account?: string, region?: string, partition?: string): this;
343
403
  /**
344
404
  * Adds a resource of type GatewayResponse to the statement
345
405
  *
@@ -460,6 +520,52 @@ export declare class Apigateway extends PolicyStatement {
460
520
  * - .ifAwsResourceTag()
461
521
  */
462
522
  onModels(restApiId: string, region?: string, partition?: string): this;
523
+ /**
524
+ * Adds a resource of type PrivateBasePathMapping to the statement
525
+ *
526
+ * https://docs.aws.amazon.com/apigateway/latest/api/API_BasePathMapping.html
527
+ *
528
+ * @param domainName - Identifier for the domainName.
529
+ * @param domainIdentifier - Identifier for the domainIdentifier.
530
+ * @param basePath - Identifier for the basePath.
531
+ * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
532
+ * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
533
+ *
534
+ * Possible conditions:
535
+ * - .ifAwsResourceTag()
536
+ */
537
+ onPrivateBasePathMapping(domainName: string, domainIdentifier: string, basePath: string, region?: string, partition?: string): this;
538
+ /**
539
+ * Adds a resource of type PrivateBasePathMappings to the statement
540
+ *
541
+ * https://docs.aws.amazon.com/apigateway/latest/api/API_BasePathMapping.html
542
+ *
543
+ * @param domainName - Identifier for the domainName.
544
+ * @param domainIdentifier - Identifier for the domainIdentifier.
545
+ * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
546
+ * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
547
+ *
548
+ * Possible conditions:
549
+ * - .ifAwsResourceTag()
550
+ */
551
+ onPrivateBasePathMappings(domainName: string, domainIdentifier: string, region?: string, partition?: string): this;
552
+ /**
553
+ * Adds a resource of type PrivateDomainName to the statement
554
+ *
555
+ * https://docs.aws.amazon.com/apigateway/latest/api/API_DomainName.html
556
+ *
557
+ * @param domainName - Identifier for the domainName.
558
+ * @param domainIdentifier - Identifier for the domainIdentifier.
559
+ * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
560
+ * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
561
+ * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
562
+ *
563
+ * Possible conditions:
564
+ * - .ifRequestEndpointType()
565
+ * - .ifResourceEndpointType()
566
+ * - .ifAwsResourceTag()
567
+ */
568
+ onPrivateDomainName(domainName: string, domainIdentifier: string, account?: string, region?: string, partition?: string): this;
463
569
  /**
464
570
  * Adds a resource of type RequestValidator to the statement
465
571
  *
@@ -708,6 +814,18 @@ export declare class Apigateway extends PolicyStatement {
708
814
  * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
709
815
  */
710
816
  onTags(urlEncodedResourceARN: string, region?: string, partition?: string): this;
817
+ /**
818
+ * Filters access by access association source. Available during the CreateDomainNameAccessAssociation operation
819
+ *
820
+ * https://docs.aws.amazon.com/apigateway/latest/developerguide/security_iam_service-with-iam.html
821
+ *
822
+ * Applies to resource types:
823
+ * - DomainNameAccessAssociations
824
+ *
825
+ * @param value The value(s) to check
826
+ * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
827
+ */
828
+ ifRequestAccessAssociationSource(value: string | string[], operator?: Operator | string): this;
711
829
  /**
712
830
  * Filters access by access log destination. Available during the CreateStage and UpdateStage operations
713
831
  *
@@ -802,6 +920,18 @@ export declare class Apigateway extends PolicyStatement {
802
920
  * @param value `true` or `false`. **Default:** `true`
803
921
  */
804
922
  ifRequestDisableExecuteApiEndpoint(value?: boolean): this;
923
+ /**
924
+ * Filters access by domain name ARN. Available during the CreateDomainNameAccessAssociation operation
925
+ *
926
+ * https://docs.aws.amazon.com/apigateway/latest/developerguide/security_iam_service-with-iam.html
927
+ *
928
+ * Applies to resource types:
929
+ * - DomainNameAccessAssociations
930
+ *
931
+ * @param value The value(s) to check
932
+ * @param operator Works with [arn operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_ARN). **Default:** `ArnLike`
933
+ */
934
+ ifRequestDomainNameArn(value: string | string[], operator?: Operator | string): this;
805
935
  /**
806
936
  * Filters access by endpoint type. Available during the CreateDomainName, UpdateDomainName, CreateRestApi, and UpdateRestApi operations
807
937
  *
@@ -810,6 +940,7 @@ export declare class Apigateway extends PolicyStatement {
810
940
  * Applies to resource types:
811
941
  * - DomainName
812
942
  * - DomainNames
943
+ * - PrivateDomainName
813
944
  * - RestApi
814
945
  * - RestApis
815
946
  *
@@ -974,6 +1105,7 @@ export declare class Apigateway extends PolicyStatement {
974
1105
  *
975
1106
  * Applies to resource types:
976
1107
  * - DomainName
1108
+ * - PrivateDomainName
977
1109
  * - RestApi
978
1110
  *
979
1111
  * @param value The value(s) to check
@@ -1067,6 +1199,7 @@ export declare class Apigateway extends PolicyStatement {
1067
1199
  * - DocumentationVersions
1068
1200
  * - DomainName
1069
1201
  * - DomainNames
1202
+ * - DomainNameAccessAssociations
1070
1203
  * - GatewayResponse
1071
1204
  * - GatewayResponses
1072
1205
  * - Integration
@@ -1075,6 +1208,9 @@ export declare class Apigateway extends PolicyStatement {
1075
1208
  * - MethodResponse
1076
1209
  * - Model
1077
1210
  * - Models
1211
+ * - PrivateBasePathMapping
1212
+ * - PrivateBasePathMappings
1213
+ * - PrivateDomainName
1078
1214
  * - RequestValidator
1079
1215
  * - RequestValidators
1080
1216
  * - Resource