Skip to content

Commit e7155c5

Browse files
authored
Merge pull request #1876 from udondan/iam-updates
2 parents eafcb88 + e1eb799 commit e7155c5

File tree

9 files changed

+69
-14
lines changed

9 files changed

+69
-14
lines changed

CHANGELOG/v0.749.0.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
**New resource types:**
2+
3+
- signin:oauth2-public-client-localhost
4+
- signin:oauth2-public-client-remote

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Support for:
1717

1818
- 441 Services
1919
- 20280 Actions
20-
- 2146 Resource Types
20+
- 2148 Resource Types
2121
- 2270 Condition keys
2222
<!-- /stats -->
2323

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.748.0
1+
0.749.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.748.0'
27+
release = '0.749.0'
2828

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

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Support for:
3232

3333
- 441 Services
3434
- 20280 Actions
35-
- 2146 Resource Types
35+
- 2148 Resource Types
3636
- 2270 Condition keys
3737

3838
..

lib/generated/policy-statements/billingandcostmanagementpricingcalculator.ts

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ export class BcmPricingCalculator extends PolicyStatement {
3434
*
3535
* Access Level: Write
3636
*
37+
* Possible conditions:
38+
* - .ifAwsRequestTag()
39+
* - .ifAwsTagKeys()
40+
*
3741
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AWSBCMPricingCalculator_CreateBillScenario.html
3842
*/
3943
public toCreateBillScenario() {
@@ -67,6 +71,10 @@ export class BcmPricingCalculator extends PolicyStatement {
6771
*
6872
* Access Level: Write
6973
*
74+
* Possible conditions:
75+
* - .ifAwsRequestTag()
76+
* - .ifAwsTagKeys()
77+
*
7078
* https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AWSBCMPricingCalculator_CreateWorkloadEstimate.html
7179
*/
7280
public toCreateWorkloadEstimate() {
@@ -475,11 +483,10 @@ export class BcmPricingCalculator extends PolicyStatement {
475483
*
476484
* @param billEstimateId - Identifier for the billEstimateId.
477485
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
478-
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
479486
* @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.
480487
*/
481-
public onBillEstimate(billEstimateId: string, account?: string, region?: string, partition?: string) {
482-
return this.on(`arn:${ partition ?? this.defaultPartition }:bcm-pricing-calculator:${ region ?? this.defaultRegion }:${ account ?? this.defaultAccount }:bill-estimate/${ billEstimateId }`);
488+
public onBillEstimate(billEstimateId: string, account?: string, partition?: string) {
489+
return this.on(`arn:${ partition ?? this.defaultPartition }:bcm-pricing-calculator::${ account ?? this.defaultAccount }:bill-estimate/${ billEstimateId }`);
483490
}
484491

485492
/**
@@ -489,11 +496,13 @@ export class BcmPricingCalculator extends PolicyStatement {
489496
*
490497
* @param billScenarioId - Identifier for the billScenarioId.
491498
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
492-
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
493499
* @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.
500+
*
501+
* Possible conditions:
502+
* - .ifAwsResourceTag()
494503
*/
495-
public onBillScenario(billScenarioId: string, account?: string, region?: string, partition?: string) {
496-
return this.on(`arn:${ partition ?? this.defaultPartition }:bcm-pricing-calculator:${ region ?? this.defaultRegion }:${ account ?? this.defaultAccount }:bill-scenario/${ billScenarioId }`);
504+
public onBillScenario(billScenarioId: string, account?: string, partition?: string) {
505+
return this.on(`arn:${ partition ?? this.defaultPartition }:bcm-pricing-calculator::${ account ?? this.defaultAccount }:bill-scenario/${ billScenarioId }`);
497506
}
498507

499508
/**
@@ -503,11 +512,13 @@ export class BcmPricingCalculator extends PolicyStatement {
503512
*
504513
* @param workloadEstimateId - Identifier for the workloadEstimateId.
505514
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
506-
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
507515
* @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.
516+
*
517+
* Possible conditions:
518+
* - .ifAwsResourceTag()
508519
*/
509-
public onWorkloadEstimate(workloadEstimateId: string, account?: string, region?: string, partition?: string) {
510-
return this.on(`arn:${ partition ?? this.defaultPartition }:bcm-pricing-calculator:${ region ?? this.defaultRegion }:${ account ?? this.defaultAccount }:workload-estimate/${ workloadEstimateId }`);
520+
public onWorkloadEstimate(workloadEstimateId: string, account?: string, partition?: string) {
521+
return this.on(`arn:${ partition ?? this.defaultPartition }:bcm-pricing-calculator::${ account ?? this.defaultAccount }:workload-estimate/${ workloadEstimateId }`);
511522
}
512523

513524
/**
@@ -516,6 +527,8 @@ export class BcmPricingCalculator extends PolicyStatement {
516527
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag
517528
*
518529
* Applies to actions:
530+
* - .toCreateBillScenario()
531+
* - .toCreateWorkloadEstimate()
519532
* - .toTagResource()
520533
*
521534
* @param tagKey The tag key to check
@@ -531,6 +544,14 @@ export class BcmPricingCalculator extends PolicyStatement {
531544
*
532545
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag
533546
*
547+
* Applies to actions:
548+
* - .toTagResource()
549+
* - .toUntagResource()
550+
*
551+
* Applies to resource types:
552+
* - bill-scenario
553+
* - workload-estimate
554+
*
534555
* @param tagKey The tag key to check
535556
* @param value The value(s) to check
536557
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
@@ -545,6 +566,8 @@ export class BcmPricingCalculator extends PolicyStatement {
545566
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys
546567
*
547568
* Applies to actions:
569+
* - .toCreateBillScenario()
570+
* - .toCreateWorkloadEstimate()
548571
* - .toTagResource()
549572
* - .toUntagResource()
550573
*

lib/generated/policy-statements/signin.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,30 @@ export class Signin extends PolicyStatement {
8787
'ListTrustedIdentityPropagationApplicationsForConsole'
8888
]
8989
};
90+
91+
/**
92+
* Adds a resource of type oauth2-public-client-localhost to the statement
93+
*
94+
* https://docs.aws.amazon.com/signin/latest/APIReference
95+
*
96+
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
97+
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
98+
* @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.
99+
*/
100+
public onOauth2PublicClientLocalhost(account?: string, region?: string, partition?: string) {
101+
return this.on(`arn:${ partition ?? this.defaultPartition }:signin:${ region ?? this.defaultRegion }:${ account ?? this.defaultAccount }:oauth2/public-client/localhost`);
102+
}
103+
104+
/**
105+
* Adds a resource of type oauth2-public-client-remote to the statement
106+
*
107+
* https://docs.aws.amazon.com/signin/latest/APIReference
108+
*
109+
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
110+
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
111+
* @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.
112+
*/
113+
public onOauth2PublicClientRemote(account?: string, region?: string, partition?: string) {
114+
return this.on(`arn:${ partition ?? this.defaultPartition }:signin:${ region ?? this.defaultRegion }:${ account ?? this.defaultAccount }:oauth2/public-client/remote`);
115+
}
90116
}

lib/generated/policy-statements/workspaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,6 +1483,7 @@ export class Workspaces extends PolicyStatement {
14831483
*
14841484
* Applies to actions:
14851485
* - .toAssociateWorkspaceApplication()
1486+
* - .toCreateWorkspaces()
14861487
* - .toDeployWorkspaceApplications()
14871488
* - .toDescribeApplicationAssociations()
14881489
* - .toDescribeBundleAssociations()

stats/resources/signin

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
1+
signin:oauth2-public-client-localhost
2+
signin:oauth2-public-client-remote

0 commit comments

Comments
 (0)