iam-floyd 0.807.0 → 0.809.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.
@@ -41,6 +41,14 @@ export declare class Lambda extends PolicyStatement {
41
41
  * https://docs.aws.amazon.com/lambda/latest/dg/API_CheckpointDurableExecution.html
42
42
  */
43
43
  toCheckpointDurableExecution(): this;
44
+ /**
45
+ * Grants permission to connect to a Lambda MicroVM via HTTP (VPC Endpoint only)
46
+ *
47
+ * Access Level: Write
48
+ *
49
+ * https://docs.aws.amazon.com/lambda/latest/dg/lambda-permissions.html
50
+ */
51
+ toConnectMicrovm(): this;
44
52
  /**
45
53
  * Grants permission to create an alias for a Lambda function version
46
54
  *
@@ -126,6 +134,56 @@ export declare class Lambda extends PolicyStatement {
126
134
  * https://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunctionUrlConfig.html
127
135
  */
128
136
  toCreateFunctionUrlConfig(): this;
137
+ /**
138
+ * Grants permission to create an auth token for an AWS Lambda MicroVM
139
+ *
140
+ * Access Level: Write
141
+ *
142
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_CreateMicrovmAuthToken.html
143
+ */
144
+ toCreateMicrovmAuthToken(): this;
145
+ /**
146
+ * Grants permission to create an AWS Lambda MicroVM image
147
+ *
148
+ * Access Level: Write
149
+ *
150
+ * Possible conditions:
151
+ * - .ifAwsRequestTag()
152
+ * - .ifAwsTagKeys()
153
+ *
154
+ * Dependent actions:
155
+ * - iam:PassRole
156
+ * - lambda:PassNetworkConnector
157
+ *
158
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_CreateMicrovmImage.html
159
+ */
160
+ toCreateMicrovmImage(): this;
161
+ /**
162
+ * Grants permission to create a shell auth token for an AWS Lambda MicroVM
163
+ *
164
+ * Access Level: Write
165
+ *
166
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_CreateMicrovmShellAuthToken.html
167
+ */
168
+ toCreateMicrovmShellAuthToken(): this;
169
+ /**
170
+ * Grants permission to create an AWS Lambda network connector
171
+ *
172
+ * Access Level: Write
173
+ *
174
+ * Possible conditions:
175
+ * - .ifAwsRequestTag()
176
+ * - .ifAwsTagKeys()
177
+ * - .ifSecurityGroupIds()
178
+ * - .ifSubnetIds()
179
+ *
180
+ * Dependent actions:
181
+ * - iam:CreateServiceLinkedRole
182
+ * - iam:PassRole
183
+ *
184
+ * https://docs.aws.amazon.com/lambda/latest/dg/API_CreateNetworkConnector.html
185
+ */
186
+ toCreateNetworkConnector(): this;
129
187
  /**
130
188
  * Grants permission to delete an AWS Lambda function alias
131
189
  *
@@ -213,6 +271,30 @@ export declare class Lambda extends PolicyStatement {
213
271
  * https://docs.aws.amazon.com/lambda/latest/dg/API_DeleteLayerVersion.html
214
272
  */
215
273
  toDeleteLayerVersion(): this;
274
+ /**
275
+ * Grants permission to delete an AWS Lambda MicroVM image
276
+ *
277
+ * Access Level: Write
278
+ *
279
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_DeleteMicrovmImage.html
280
+ */
281
+ toDeleteMicrovmImage(): this;
282
+ /**
283
+ * Grants permission to delete a version of an AWS Lambda MicroVM image
284
+ *
285
+ * Access Level: Write
286
+ *
287
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_DeleteMicrovmImageVersion.html
288
+ */
289
+ toDeleteMicrovmImageVersion(): this;
290
+ /**
291
+ * Grants permission to delete an AWS Lambda network connector
292
+ *
293
+ * Access Level: Write
294
+ *
295
+ * https://docs.aws.amazon.com/lambda/latest/dg/API_DeleteNetworkConnector.html
296
+ */
297
+ toDeleteNetworkConnector(): this;
216
298
  /**
217
299
  * Grants permission to delete the provisioned concurrency configuration for an AWS Lambda function
218
300
  *
@@ -388,6 +470,46 @@ export declare class Lambda extends PolicyStatement {
388
470
  * https://docs.aws.amazon.com/lambda/latest/dg/API_GetLayerVersionPolicy.html
389
471
  */
390
472
  toGetLayerVersionPolicy(): this;
473
+ /**
474
+ * Grants permission to view information about an AWS Lambda MicroVM
475
+ *
476
+ * Access Level: Read
477
+ *
478
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_GetMicrovm.html
479
+ */
480
+ toGetMicrovm(): this;
481
+ /**
482
+ * Grants permission to view information about an AWS Lambda MicroVM image
483
+ *
484
+ * Access Level: Read
485
+ *
486
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_GetMicrovmImage.html
487
+ */
488
+ toGetMicrovmImage(): this;
489
+ /**
490
+ * Grants permission to view information about a build of an AWS Lambda MicroVM image version
491
+ *
492
+ * Access Level: Read
493
+ *
494
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_GetMicrovmImageBuild.html
495
+ */
496
+ toGetMicrovmImageBuild(): this;
497
+ /**
498
+ * Grants permission to view information about a version of an AWS Lambda MicroVM image
499
+ *
500
+ * Access Level: Read
501
+ *
502
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_GetMicrovmImageVersion.html
503
+ */
504
+ toGetMicrovmImageVersion(): this;
505
+ /**
506
+ * Grants permission to view details about an AWS Lambda network connector
507
+ *
508
+ * Access Level: Read
509
+ *
510
+ * https://docs.aws.amazon.com/lambda/latest/dg/API_GetNetworkConnector.html
511
+ */
512
+ toGetNetworkConnector(): this;
391
513
  /**
392
514
  * Grants permission to view the resource-based policy for an AWS Lambda function, version, or alias
393
515
  *
@@ -544,6 +666,62 @@ export declare class Lambda extends PolicyStatement {
544
666
  * https://docs.aws.amazon.com/lambda/latest/dg/API_ListLayers.html
545
667
  */
546
668
  toListLayers(): this;
669
+ /**
670
+ * Grants permission to retrieve a list of versions for a managed AWS Lambda MicroVM image
671
+ *
672
+ * Access Level: List
673
+ *
674
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_ListManagedMicrovmImageVersions.html
675
+ */
676
+ toListManagedMicrovmImageVersions(): this;
677
+ /**
678
+ * Grants permission to retrieve a list of managed AWS Lambda MicroVM images
679
+ *
680
+ * Access Level: List
681
+ *
682
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_ListManagedMicrovmImages.html
683
+ */
684
+ toListManagedMicrovmImages(): this;
685
+ /**
686
+ * Grants permission to retrieve a list of builds for an AWS Lambda MicroVM image version
687
+ *
688
+ * Access Level: List
689
+ *
690
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_ListMicrovmImageBuilds.html
691
+ */
692
+ toListMicrovmImageBuilds(): this;
693
+ /**
694
+ * Grants permission to retrieve a list of versions for an AWS Lambda MicroVM image
695
+ *
696
+ * Access Level: List
697
+ *
698
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_ListMicrovmImageVersions.html
699
+ */
700
+ toListMicrovmImageVersions(): this;
701
+ /**
702
+ * Grants permission to retrieve a list of AWS Lambda MicroVM images
703
+ *
704
+ * Access Level: List
705
+ *
706
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_ListMicrovmImages.html
707
+ */
708
+ toListMicrovmImages(): this;
709
+ /**
710
+ * Grants permission to retrieve a list of AWS Lambda MicroVMs
711
+ *
712
+ * Access Level: List
713
+ *
714
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_ListMicrovms.html
715
+ */
716
+ toListMicrovms(): this;
717
+ /**
718
+ * Grants permission to retrieve a list of AWS Lambda network connectors
719
+ *
720
+ * Access Level: List
721
+ *
722
+ * https://docs.aws.amazon.com/lambda/latest/dg/API_ListNetworkConnectors.html
723
+ */
724
+ toListNetworkConnectors(): this;
547
725
  /**
548
726
  * Grants permission to retrieve a list of provisioned concurrency configurations for an AWS Lambda function
549
727
  *
@@ -553,7 +731,7 @@ export declare class Lambda extends PolicyStatement {
553
731
  */
554
732
  toListProvisionedConcurrencyConfigs(): this;
555
733
  /**
556
- * Grants permission to retrieve a list of tags for an AWS Lambda function, event source mapping, capacity provider, or code signing configuration resource
734
+ * Grants permission to retrieve a list of tags for an AWS Lambda function, event source mapping, capacity provider, code signing configuration, network connector or MicroVM image resource
557
735
  *
558
736
  * Access Level: Read
559
737
  *
@@ -576,6 +754,14 @@ export declare class Lambda extends PolicyStatement {
576
754
  * https://docs.aws.amazon.com/lambda/latest/dg/lambda-permissions.html
577
755
  */
578
756
  toPassCapacityProvider(): this;
757
+ /**
758
+ * Grants permission to pass an AWS Lambda network connector to a service
759
+ *
760
+ * Access Level: Write
761
+ *
762
+ * https://docs.aws.amazon.com/lambda/latest/dg/lambda-permissions.html
763
+ */
764
+ toPassNetworkConnector(): this;
579
765
  /**
580
766
  * Grants permission to create an AWS Lambda layer
581
767
  *
@@ -671,6 +857,26 @@ export declare class Lambda extends PolicyStatement {
671
857
  * https://docs.aws.amazon.com/lambda/latest/dg/API_RemovePermission.html
672
858
  */
673
859
  toRemovePermission(): this;
860
+ /**
861
+ * Grants permission to resume a suspended AWS Lambda MicroVM
862
+ *
863
+ * Access Level: Write
864
+ *
865
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_ResumeMicrovm.html
866
+ */
867
+ toResumeMicrovm(): this;
868
+ /**
869
+ * Grants permission to run an AWS Lambda MicroVM from a MicroVM image
870
+ *
871
+ * Access Level: Write
872
+ *
873
+ * Dependent actions:
874
+ * - iam:PassRole
875
+ * - lambda:PassNetworkConnector
876
+ *
877
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_RunMicrovm.html
878
+ */
879
+ toRunMicrovm(): this;
674
880
  /**
675
881
  * Grants permission to send a failure response for a callback operation in an AWS Lambda durable execution
676
882
  *
@@ -704,7 +910,15 @@ export declare class Lambda extends PolicyStatement {
704
910
  */
705
911
  toStopDurableExecution(): this;
706
912
  /**
707
- * Grants permission to add tags to an AWS Lambda function, event source mapping, capacity provider, or code signing configuration resource
913
+ * Grants permission to suspend an AWS Lambda MicroVM
914
+ *
915
+ * Access Level: Write
916
+ *
917
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_SuspendMicrovm.html
918
+ */
919
+ toSuspendMicrovm(): this;
920
+ /**
921
+ * Grants permission to add tags to an AWS Lambda function, event source mapping, capacity provider, code signing configuration, network connector or MicroVM image resource
708
922
  *
709
923
  * Access Level: Tagging
710
924
  *
@@ -716,7 +930,15 @@ export declare class Lambda extends PolicyStatement {
716
930
  */
717
931
  toTagResource(): this;
718
932
  /**
719
- * Grants permission to remove tags from an AWS Lambda function, event source mapping, capacity provider, or code signing configuration resource
933
+ * Grants permission to terminate an AWS Lambda MicroVM
934
+ *
935
+ * Access Level: Write
936
+ *
937
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_TerminateMicrovm.html
938
+ */
939
+ toTerminateMicrovm(): this;
940
+ /**
941
+ * Grants permission to remove tags from an AWS Lambda function, event source mapping, capacity provider, code signing configuration, network connector or MicroVM image resource
720
942
  *
721
943
  * Access Level: Tagging
722
944
  *
@@ -811,6 +1033,34 @@ export declare class Lambda extends PolicyStatement {
811
1033
  * https://docs.aws.amazon.com/lambda/latest/dg/API_UpdateFunctionUrlConfig.html
812
1034
  */
813
1035
  toUpdateFunctionUrlConfig(): this;
1036
+ /**
1037
+ * Grants permission to update an AWS Lambda MicroVM image
1038
+ *
1039
+ * Access Level: Write
1040
+ *
1041
+ * Dependent actions:
1042
+ * - iam:PassRole
1043
+ * - lambda:PassNetworkConnector
1044
+ *
1045
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_UpdateMicrovmImage.html
1046
+ */
1047
+ toUpdateMicrovmImage(): this;
1048
+ /**
1049
+ * Grants permission to update a version of an AWS Lambda MicroVM image
1050
+ *
1051
+ * Access Level: Write
1052
+ *
1053
+ * https://docs.aws.amazon.com/lambda/latest/microvm-api/API_UpdateMicrovmImageVersion.html
1054
+ */
1055
+ toUpdateMicrovmImageVersion(): this;
1056
+ /**
1057
+ * Grants permission to update an AWS Lambda network connector
1058
+ *
1059
+ * Access Level: Write
1060
+ *
1061
+ * https://docs.aws.amazon.com/lambda/latest/dg/API_UpdateNetworkConnector.html
1062
+ */
1063
+ toUpdateNetworkConnector(): this;
814
1064
  protected accessLevelList: AccessLevelList;
815
1065
  /**
816
1066
  * Adds a resource of type capacityProvider to the statement
@@ -935,6 +1185,34 @@ export declare class Lambda extends PolicyStatement {
935
1185
  * @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.
936
1186
  */
937
1187
  onLayerVersion(layerName: string, layerVersion: string, account?: string, region?: string, partition?: string): this;
1188
+ /**
1189
+ * Adds a resource of type networkConnector to the statement
1190
+ *
1191
+ * https://docs.aws.amazon.com/lambda/latest/dg/lambda-api-permissions-ref.html
1192
+ *
1193
+ * @param networkConnectorId - Identifier for the networkConnectorId.
1194
+ * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
1195
+ * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
1196
+ * @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.
1197
+ *
1198
+ * Possible conditions:
1199
+ * - .ifAwsResourceTag()
1200
+ */
1201
+ onNetworkConnector(networkConnectorId: string, account?: string, region?: string, partition?: string): this;
1202
+ /**
1203
+ * Adds a resource of type microvmImage to the statement
1204
+ *
1205
+ * https://docs.aws.amazon.com/lambda/latest/dg/lambda-api-permissions-ref.html
1206
+ *
1207
+ * @param microvmImageName - Identifier for the microvmImageName.
1208
+ * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
1209
+ * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
1210
+ * @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.
1211
+ *
1212
+ * Possible conditions:
1213
+ * - .ifAwsResourceTag()
1214
+ */
1215
+ onMicrovmImage(microvmImageName: string, account?: string, region?: string, partition?: string): this;
938
1216
  /**
939
1217
  * Filters access by the tags that are passed in the request
940
1218
  *
@@ -945,6 +1223,8 @@ export declare class Lambda extends PolicyStatement {
945
1223
  * - .toCreateCodeSigningConfig()
946
1224
  * - .toCreateEventSourceMapping()
947
1225
  * - .toCreateFunction()
1226
+ * - .toCreateMicrovmImage()
1227
+ * - .toCreateNetworkConnector()
948
1228
  * - .toTagResource()
949
1229
  *
950
1230
  * @param tagKey The tag key to check
@@ -964,6 +1244,8 @@ export declare class Lambda extends PolicyStatement {
964
1244
  * - function
965
1245
  * - function alias
966
1246
  * - function version
1247
+ * - networkConnector
1248
+ * - microvmImage
967
1249
  *
968
1250
  * @param tagKey The tag key to check
969
1251
  * @param value The value(s) to check
@@ -980,6 +1262,8 @@ export declare class Lambda extends PolicyStatement {
980
1262
  * - .toCreateCodeSigningConfig()
981
1263
  * - .toCreateEventSourceMapping()
982
1264
  * - .toCreateFunction()
1265
+ * - .toCreateMicrovmImage()
1266
+ * - .toCreateNetworkConnector()
983
1267
  * - .toTagResource()
984
1268
  * - .toUntagResource()
985
1269
  *
@@ -1097,6 +1381,7 @@ export declare class Lambda extends PolicyStatement {
1097
1381
  * Applies to actions:
1098
1382
  * - .toCreateCapacityProvider()
1099
1383
  * - .toCreateFunction()
1384
+ * - .toCreateNetworkConnector()
1100
1385
  * - .toUpdateFunctionConfiguration()
1101
1386
  *
1102
1387
  * @param value The value(s) to check
@@ -1120,6 +1405,7 @@ export declare class Lambda extends PolicyStatement {
1120
1405
  * Applies to actions:
1121
1406
  * - .toCreateCapacityProvider()
1122
1407
  * - .toCreateFunction()
1408
+ * - .toCreateNetworkConnector()
1123
1409
  * - .toUpdateFunctionConfiguration()
1124
1410
  *
1125
1411
  * @param value The value(s) to check