Skip to content

Commit 557d10a

Browse files
authored
Merge pull request #1855 from udondan/iam-updates
2 parents 3674e88 + 5953bb0 commit 557d10a

File tree

9 files changed

+74
-6
lines changed

9 files changed

+74
-6
lines changed

CHANGELOG/v0.745.0.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
**New actions:**
2+
3+
- ec2:InjectVolumeIOLatency
4+
5+
**New condition keys:**
6+
7+
- dynamodb:FisActionId
8+
- dynamodb:FisTargetArns

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
Support for:
1717

1818
- 441 Services
19-
- 20269 Actions
19+
- 20270 Actions
2020
- 2144 Resource Types
21-
- 2267 Condition keys
21+
- 2269 Condition keys
2222
<!-- /stats -->
2323

2424
![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.**

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.744.0
1+
0.745.0

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
author = 'Daniel Schroeder'
2525

2626
# The full version, including alpha/beta/rc tags
27-
release = '0.744.0'
27+
release = '0.745.0'
2828

2929
# -- General configuration ---------------------------------------------------
3030

docs/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ AWS IAM policy statement generator with fluent interface.
3131
Support for:
3232

3333
- 441 Services
34-
- 20269 Actions
34+
- 20270 Actions
3535
- 2144 Resource Types
36-
- 2267 Condition keys
36+
- 2269 Condition keys
3737

3838
..
3939
/stats

lib/generated/policy-statements/dynamodb.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,10 @@ export class Dynamodb extends PolicyStatement {
498498
*
499499
* Access Level: Write
500500
*
501+
* Possible conditions:
502+
* - .ifFisActionId()
503+
* - .ifFisTargetArns()
504+
*
501505
* https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2gt_IAM.html
502506
*/
503507
public toInjectError() {
@@ -1298,6 +1302,32 @@ export class Dynamodb extends PolicyStatement {
12981302
return this.if(`FirstPartitionKeyValues`, value, operator ?? 'StringLike');
12991303
}
13001304

1305+
/**
1306+
* Filters access by the ID of an AWS FIS action
1307+
*
1308+
* Applies to actions:
1309+
* - .toInjectError()
1310+
*
1311+
* @param value The value(s) to check
1312+
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
1313+
*/
1314+
public ifFisActionId(value: string | string[], operator?: Operator | string) {
1315+
return this.if(`FisActionId`, value, operator ?? 'StringLike');
1316+
}
1317+
1318+
/**
1319+
* Filters access by the ARN of an AWS FIS target
1320+
*
1321+
* Applies to actions:
1322+
* - .toInjectError()
1323+
*
1324+
* @param value The value(s) to check
1325+
* @param operator Works with [arn operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_ARN). **Default:** `ArnLike`
1326+
*/
1327+
public ifFisTargetArns(value: string | string[], operator?: Operator | string) {
1328+
return this.if(`FisTargetArns`, value, operator ?? 'ArnLike');
1329+
}
1330+
13011331
/**
13021332
* Filters access by the forth partition key of the table
13031333
*

lib/generated/policy-statements/ec2.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8888,6 +8888,20 @@ export class Ec2 extends PolicyStatement {
88888888
return this.to('InjectApiError');
88898889
}
88908890

8891+
/**
8892+
* Grants permission to temporarily inject latency to I/O operations for a target Amazon EBS volume
8893+
*
8894+
* Access Level: Write
8895+
*
8896+
* Possible conditions:
8897+
* - .ifRegion()
8898+
*
8899+
* https://docs.aws.amazon.com/fis/latest/userguide/fis-actions-reference.html#ebs-actions-reference
8900+
*/
8901+
public toInjectVolumeIOLatency() {
8902+
return this.to('InjectVolumeIOLatency');
8903+
}
8904+
88918905
/**
88928906
* Grants permission to list Amazon Machine Images (AMIs) that are currently in the Recycle Bin
88938907
*
@@ -11538,6 +11552,7 @@ export class Ec2 extends PolicyStatement {
1153811552
'ImportSnapshot',
1153911553
'ImportVolume',
1154011554
'InjectApiError',
11555+
'InjectVolumeIOLatency',
1154111556
'LockSnapshot',
1154211557
'ModifyAddressAttribute',
1154311558
'ModifyAvailabilityZoneGroup',
@@ -15048,6 +15063,7 @@ export class Ec2 extends PolicyStatement {
1504815063
* - .toImportImage()
1504915064
* - .toImportInstance()
1505015065
* - .toImportVolume()
15066+
* - .toInjectVolumeIOLatency()
1505115067
* - .toLockSnapshot()
1505215068
* - .toModifyAddressAttribute()
1505315069
* - .toModifyCapacityReservation()
@@ -16049,6 +16065,7 @@ export class Ec2 extends PolicyStatement {
1604916065
* - .toGetReservedInstancesExchangeQuote()
1605016066
* - .toImportInstance()
1605116067
* - .toImportVolume()
16068+
* - .toInjectVolumeIOLatency()
1605216069
* - .toModifyFleet()
1605316070
* - .toModifyInstanceAttribute()
1605416071
* - .toModifyInstanceCapacityReservationAttributes()
@@ -16174,6 +16191,7 @@ export class Ec2 extends PolicyStatement {
1617416191
* - .toGetLaunchTemplateData()
1617516192
* - .toGetPasswordData()
1617616193
* - .toImportVolume()
16194+
* - .toInjectVolumeIOLatency()
1617716195
* - .toModifyFleet()
1617816196
* - .toModifyInstanceAttribute()
1617916197
* - .toModifyInstanceCapacityReservationAttributes()
@@ -16739,6 +16757,7 @@ export class Ec2 extends PolicyStatement {
1673916757
* - .toEnableVolumeIO()
1674016758
* - .toImportInstance()
1674116759
* - .toImportVolume()
16760+
* - .toInjectVolumeIOLatency()
1674216761
* - .toLockSnapshot()
1674316762
* - .toModifyInstanceAttribute()
1674416763
* - .toModifySnapshotTier()
@@ -18416,6 +18435,7 @@ export class Ec2 extends PolicyStatement {
1841618435
* - .toEnableVolumeIO()
1841718436
* - .toImportInstance()
1841818437
* - .toImportVolume()
18438+
* - .toInjectVolumeIOLatency()
1841918439
* - .toModifyInstanceAttribute()
1842018440
* - .toModifyVolume()
1842118441
* - .toModifyVolumeAttribute()
@@ -19558,6 +19578,7 @@ export class Ec2 extends PolicyStatement {
1955819578
* - .toImportSnapshot()
1955919579
* - .toImportVolume()
1956019580
* - .toInjectApiError()
19581+
* - .toInjectVolumeIOLatency()
1956119582
* - .toListImagesInRecycleBin()
1956219583
* - .toListSnapshotsInRecycleBin()
1956319584
* - .toListVolumesInRecycleBin()
@@ -20323,6 +20344,7 @@ export class Ec2 extends PolicyStatement {
2032320344
* - .toImportImage()
2032420345
* - .toImportInstance()
2032520346
* - .toImportVolume()
20347+
* - .toInjectVolumeIOLatency()
2032620348
* - .toLockSnapshot()
2032720349
* - .toModifyAddressAttribute()
2032820350
* - .toModifyCapacityReservationFleet()
@@ -21304,6 +21326,7 @@ export class Ec2 extends PolicyStatement {
2130421326
* - .toEnableVolumeIO()
2130521327
* - .toImportInstance()
2130621328
* - .toImportVolume()
21329+
* - .toInjectVolumeIOLatency()
2130721330
* - .toModifyInstanceAttribute()
2130821331
* - .toModifyVolume()
2130921332
* - .toModifyVolumeAttribute()
@@ -21372,6 +21395,7 @@ export class Ec2 extends PolicyStatement {
2137221395
* - .toEnableVolumeIO()
2137321396
* - .toImportInstance()
2137421397
* - .toImportVolume()
21398+
* - .toInjectVolumeIOLatency()
2137521399
* - .toModifyInstanceAttribute()
2137621400
* - .toModifyVolume()
2137721401
* - .toModifyVolumeAttribute()
@@ -21417,6 +21441,7 @@ export class Ec2 extends PolicyStatement {
2141721441
* - .toImportInstance()
2141821442
* - .toImportSnapshot()
2141921443
* - .toImportVolume()
21444+
* - .toInjectVolumeIOLatency()
2142021445
* - .toLockSnapshot()
2142121446
* - .toModifyInstanceAttribute()
2142221447
* - .toModifySnapshotAttribute()
@@ -21464,6 +21489,7 @@ export class Ec2 extends PolicyStatement {
2146421489
* - .toEnableVolumeIO()
2146521490
* - .toImportInstance()
2146621491
* - .toImportVolume()
21492+
* - .toInjectVolumeIOLatency()
2146721493
* - .toModifyInstanceAttribute()
2146821494
* - .toModifyVolume()
2146921495
* - .toModifyVolumeAttribute()
@@ -21500,6 +21526,7 @@ export class Ec2 extends PolicyStatement {
2150021526
* - .toEnableVolumeIO()
2150121527
* - .toImportInstance()
2150221528
* - .toImportVolume()
21529+
* - .toInjectVolumeIOLatency()
2150321530
* - .toModifyInstanceAttribute()
2150421531
* - .toModifyVolume()
2150521532
* - .toModifyVolumeAttribute()

stats/actions/ec2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,7 @@ ec2:ImportKeyPair;Write
605605
ec2:ImportSnapshot;Write
606606
ec2:ImportVolume;Write
607607
ec2:InjectApiError;Write
608+
ec2:InjectVolumeIOLatency;Write
608609
ec2:ListImagesInRecycleBin;List
609610
ec2:ListSnapshotsInRecycleBin;List
610611
ec2:ListVolumesInRecycleBin;List

stats/conditions/dynamodb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
dynamodb:Attributes
22
dynamodb:EnclosingOperation
33
dynamodb:FirstPartitionKeyValues
4+
dynamodb:FisActionId
5+
dynamodb:FisTargetArns
46
dynamodb:FourthPartitionKeyValues
57
dynamodb:FullTableScan
68
dynamodb:LeadingKeys

0 commit comments

Comments
 (0)