diff --git a/CHANGELOG/v0.681.0.md b/CHANGELOG/v0.681.0.md new file mode 100644 index 000000000..17439f15b --- /dev/null +++ b/CHANGELOG/v0.681.0.md @@ -0,0 +1,10 @@ +**New actions:** + +- elasticloadbalancing:ModifyIpPools +- support:GetInteraction +- support:StartInteraction + +**New condition keys:** + +- codeconnections:VpcId +- codestar-connections:VpcId diff --git a/README.md b/README.md index 6f4da303d..514f69e28 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,9 @@ Support for: - 419 Services -- 18398 Actions +- 18401 Actions - 1972 Resource Types -- 1929 Condition keys +- 1931 Condition keys ![EXPERIMENTAL](https://img.shields.io/badge/stability-experimantal-orange?style=for-the-badge)**
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.** diff --git a/VERSION b/VERSION index a5a0857d1..ea7c3f65c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.680.0 +0.681.0 diff --git a/docs/source/conf.py b/docs/source/conf.py index aeded0207..0812b5856 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -24,7 +24,7 @@ author = 'Daniel Schroeder' # The full version, including alpha/beta/rc tags -release = '0.680.0' +release = '0.681.0' # -- General configuration --------------------------------------------------- diff --git a/docs/source/index.rst b/docs/source/index.rst index 87bdcdccb..2da53899f 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -31,9 +31,9 @@ AWS IAM policy statement generator with fluent interface. Support for: - 419 Services -- 18398 Actions +- 18401 Actions - 1972 Resource Types -- 1929 Condition keys +- 1931 Condition keys .. /stats diff --git a/lib/generated/policy-statements/codeconnections.ts b/lib/generated/policy-statements/codeconnections.ts index fef18987d..d630d3890 100644 --- a/lib/generated/policy-statements/codeconnections.ts +++ b/lib/generated/policy-statements/codeconnections.ts @@ -43,6 +43,7 @@ export class Codeconnections extends PolicyStatement { * - .ifAwsRequestTag() * - .ifAwsTagKeys() * - .ifProviderType() + * - .ifVpcId() * * https://docs.aws.amazon.com/codeconnections/latest/APIReference/API_CreateHost.html */ @@ -464,6 +465,9 @@ export class Codeconnections extends PolicyStatement { * * Access Level: Write * + * Possible conditions: + * - .ifVpcId() + * * https://docs.aws.amazon.com/codeconnections/latest/APIReference/API_UpdateHost.html */ public toUpdateHost() { @@ -869,4 +873,20 @@ export class Codeconnections extends PolicyStatement { public ifRepositoryName(value: string | string[], operator?: Operator | string) { return this.if(`RepositoryName`, value, operator ?? 'StringLike'); } + + /** + * Filters access by the VpcId passed in the request + * + * https://docs.aws.amazon.com/dtconsole/latest/userguide/security-iam.html#permissions-reference-connections-hosts + * + * Applies to actions: + * - .toCreateHost() + * - .toUpdateHost() + * + * @param value The value(s) to check + * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` + */ + public ifVpcId(value: string | string[], operator?: Operator | string) { + return this.if(`VpcId`, value, operator ?? 'StringLike'); + } } diff --git a/lib/generated/policy-statements/codestarconnections.ts b/lib/generated/policy-statements/codestarconnections.ts index df842f517..796ecb7fe 100644 --- a/lib/generated/policy-statements/codestarconnections.ts +++ b/lib/generated/policy-statements/codestarconnections.ts @@ -43,6 +43,7 @@ export class CodestarConnections extends PolicyStatement { * - .ifAwsRequestTag() * - .ifAwsTagKeys() * - .ifProviderType() + * - .ifVpcId() * * https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_CreateHost.html */ @@ -464,6 +465,9 @@ export class CodestarConnections extends PolicyStatement { * * Access Level: Write * + * Possible conditions: + * - .ifVpcId() + * * https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_UpdateHost.html */ public toUpdateHost() { @@ -869,4 +873,20 @@ export class CodestarConnections extends PolicyStatement { public ifRepositoryName(value: string | string[], operator?: Operator | string) { return this.if(`RepositoryName`, value, operator ?? 'StringLike'); } + + /** + * Filters access by the VpcId passed in the request + * + * https://docs.aws.amazon.com/dtconsole/latest/userguide/security-iam.html#permissions-reference-connections-hosts + * + * Applies to actions: + * - .toCreateHost() + * - .toUpdateHost() + * + * @param value The value(s) to check + * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` + */ + public ifVpcId(value: string | string[], operator?: Operator | string) { + return this.if(`VpcId`, value, operator ?? 'StringLike'); + } } diff --git a/lib/generated/policy-statements/elasticloadbalancingv2.ts b/lib/generated/policy-statements/elasticloadbalancingv2.ts index 74545d3a8..a977f8506 100644 --- a/lib/generated/policy-statements/elasticloadbalancingv2.ts +++ b/lib/generated/policy-statements/elasticloadbalancingv2.ts @@ -512,6 +512,21 @@ export class ElasticloadbalancingV2 extends PolicyStatement { return this.to('ModifyCapacityReservation'); } + /** + * Grants permission to modify the ip pools for a load balancer + * + * Access Level: Write + * + * Possible conditions: + * - .ifAwsResourceTag() + * - .ifResourceTag() + * + * https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_ModifyIpPools.html + */ + public toModifyIpPools() { + return this.to('ModifyIpPools'); + } + /** * Grants permission to modify the specified properties of the specified listener * @@ -767,6 +782,7 @@ export class ElasticloadbalancingV2 extends PolicyStatement { 'DeleteTrustStore', 'DeregisterTargets', 'ModifyCapacityReservation', + 'ModifyIpPools', 'ModifyListener', 'ModifyListenerAttributes', 'ModifyLoadBalancerAttributes', @@ -1015,6 +1031,7 @@ export class ElasticloadbalancingV2 extends PolicyStatement { * - .toGetTrustStoreCaCertificatesBundle() * - .toGetTrustStoreRevocationContent() * - .toModifyCapacityReservation() + * - .toModifyIpPools() * - .toModifyListener() * - .toModifyListenerAttributes() * - .toModifyLoadBalancerAttributes() @@ -1125,6 +1142,7 @@ export class ElasticloadbalancingV2 extends PolicyStatement { * - .toGetTrustStoreCaCertificatesBundle() * - .toGetTrustStoreRevocationContent() * - .toModifyCapacityReservation() + * - .toModifyIpPools() * - .toModifyListener() * - .toModifyListenerAttributes() * - .toModifyLoadBalancerAttributes() diff --git a/lib/generated/policy-statements/support.ts b/lib/generated/policy-statements/support.ts index 2934db6a9..c36e485e2 100644 --- a/lib/generated/policy-statements/support.ts +++ b/lib/generated/policy-statements/support.ts @@ -216,6 +216,17 @@ export class Support extends PolicyStatement { return this.to('DescribeTrustedAdvisorChecks'); } + /** + * Grants permission to retrieve personalized troubleshooting assistance for account and technical issues for a specific interaction + * + * Access Level: Read + * + * https://docs.aws.amazon.com/awssupport/latest/APIReference/API_GetInteraction.html + */ + public toGetInteraction() { + return this.to('GetInteraction'); + } + /** * Grants permission to initiate a call on AWS Support Center. This is an internally managed function * @@ -293,6 +304,17 @@ export class Support extends PolicyStatement { return this.to('SearchForCases'); } + /** + * Grants permission to start a specific interaction to receive personalized troubleshooting assistance for account and technical issues + * + * Access Level: Write + * + * https://docs.aws.amazon.com/awssupport/latest/APIReference/API_StartInteraction.html + */ + public toStartInteraction() { + return this.to('StartInteraction'); + } + protected accessLevelList: AccessLevelList = { Write: [ 'AddAttachmentsToSet', @@ -303,7 +325,8 @@ export class Support extends PolicyStatement { 'PutCaseAttributes', 'RateCaseCommunication', 'RefreshTrustedAdvisorCheck', - 'ResolveCase' + 'ResolveCase', + 'StartInteraction' ], Read: [ 'DescribeAttachment', @@ -321,6 +344,7 @@ export class Support extends PolicyStatement { 'DescribeTrustedAdvisorCheckResult', 'DescribeTrustedAdvisorCheckSummaries', 'DescribeTrustedAdvisorChecks', + 'GetInteraction', 'SearchForCases' ] }; diff --git a/stats/actions/elasticloadbalancing b/stats/actions/elasticloadbalancing index 2d55a8e99..012ecf584 100644 --- a/stats/actions/elasticloadbalancing +++ b/stats/actions/elasticloadbalancing @@ -50,6 +50,7 @@ elasticloadbalancing:GetResourcePolicy;Read elasticloadbalancing:GetTrustStoreCaCertificatesBundle;Read elasticloadbalancing:GetTrustStoreRevocationContent;Read elasticloadbalancing:ModifyCapacityReservation;Write +elasticloadbalancing:ModifyIpPools;Write elasticloadbalancing:ModifyListener;Write elasticloadbalancing:ModifyListenerAttributes;Write elasticloadbalancing:ModifyLoadBalancerAttributes;Write diff --git a/stats/actions/support b/stats/actions/support index 876260481..79bc19292 100644 --- a/stats/actions/support +++ b/stats/actions/support @@ -16,6 +16,7 @@ support:DescribeTrustedAdvisorCheckRefreshStatuses;Read support:DescribeTrustedAdvisorCheckResult;Read support:DescribeTrustedAdvisorCheckSummaries;Read support:DescribeTrustedAdvisorChecks;Read +support:GetInteraction;Read support:InitiateCallForCase;Write support:InitiateChatForCase;Write support:PutCaseAttributes;Write @@ -23,3 +24,4 @@ support:RateCaseCommunication;Write support:RefreshTrustedAdvisorCheck;Write support:ResolveCase;Write support:SearchForCases;Read +support:StartInteraction;Write diff --git a/stats/conditions/codeconnections b/stats/conditions/codeconnections index 70b46aee2..38eba1a13 100644 --- a/stats/conditions/codeconnections +++ b/stats/conditions/codeconnections @@ -13,3 +13,4 @@ codeconnections:RepositoryName codeconnections:RequestTag/${TagKey} codeconnections:ResourceTag/${TagKey} codeconnections:TagKeys +codeconnections:VpcId diff --git a/stats/conditions/codestar-connections b/stats/conditions/codestar-connections index b88c1c7ee..c7af0b482 100644 --- a/stats/conditions/codestar-connections +++ b/stats/conditions/codestar-connections @@ -13,3 +13,4 @@ codestar-connections:RepositoryName codestar-connections:RequestTag/${TagKey} codestar-connections:ResourceTag/${TagKey} codestar-connections:TagKeys +codestar-connections:VpcId