iam-floyd 0.722.0 → 0.723.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
  - 428 Services
20
- - 19256 Actions
20
+ - 19257 Actions
21
21
  - 2057 Resource Types
22
- - 2148 Condition keys
22
+ - 2155 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.**
@@ -51,6 +51,22 @@ export declare class BedrockAgentcore extends PolicyStatement {
51
51
  * https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_BatchUpdateMemoryRecords.html
52
52
  */
53
53
  toBatchUpdateMemoryRecords(): this;
54
+ /**
55
+ * Grants permission to retrieve access token with OAuth2 for 3LO flow to access external resource
56
+ *
57
+ * Access Level: Read
58
+ *
59
+ * Possible conditions:
60
+ * - .ifInboundJwtClaimIss()
61
+ * - .ifInboundJwtClaimSub()
62
+ * - .ifInboundJwtClaimAud()
63
+ * - .ifInboundJwtClaimScope()
64
+ * - .ifInboundJwtClaimClientId()
65
+ * - .ifUserid()
66
+ *
67
+ * https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_CompleteResourceTokenAuth.html
68
+ */
69
+ toCompleteResourceTokenAuth(): this;
54
70
  /**
55
71
  * Grants permission to connect to a browser automation stream
56
72
  *
@@ -99,6 +115,10 @@ export declare class BedrockAgentcore extends PolicyStatement {
99
115
  *
100
116
  * Access Level: Write
101
117
  *
118
+ * Possible conditions:
119
+ * - .ifAwsRequestTag()
120
+ * - .ifAwsTagKeys()
121
+ *
102
122
  * https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_CreateApiKeyCredentialProvider.html
103
123
  */
104
124
  toCreateApiKeyCredentialProvider(): this;
@@ -181,6 +201,10 @@ export declare class BedrockAgentcore extends PolicyStatement {
181
201
  *
182
202
  * Access Level: Write
183
203
  *
204
+ * Possible conditions:
205
+ * - .ifAwsRequestTag()
206
+ * - .ifAwsTagKeys()
207
+ *
184
208
  * https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_CreateOauth2CredentialProvider.html
185
209
  */
186
210
  toCreateOauth2CredentialProvider(): this;
@@ -189,6 +213,10 @@ export declare class BedrockAgentcore extends PolicyStatement {
189
213
  *
190
214
  * Access Level: Write
191
215
  *
216
+ * Possible conditions:
217
+ * - .ifAwsRequestTag()
218
+ * - .ifAwsTagKeys()
219
+ *
192
220
  * https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_CreateWorkloadIdentity.html
193
221
  */
194
222
  toCreateWorkloadIdentity(): this;
@@ -445,6 +473,13 @@ export declare class BedrockAgentcore extends PolicyStatement {
445
473
  *
446
474
  * Access Level: Write
447
475
  *
476
+ * Possible conditions:
477
+ * - .ifInboundJwtClaimIss()
478
+ * - .ifInboundJwtClaimSub()
479
+ * - .ifInboundJwtClaimAud()
480
+ * - .ifInboundJwtClaimScope()
481
+ * - .ifInboundJwtClaimClientId()
482
+ *
448
483
  * https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_GetWorkloadAccessTokenForJWT.html
449
484
  */
450
485
  toGetWorkloadAccessTokenForJWT(): this;
@@ -453,6 +488,9 @@ export declare class BedrockAgentcore extends PolicyStatement {
453
488
  *
454
489
  * Access Level: Write
455
490
  *
491
+ * Possible conditions:
492
+ * - .ifUserid()
493
+ *
456
494
  * https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_GetWorkloadAccessTokenForUserId.html
457
495
  */
458
496
  toGetWorkloadAccessTokenForUserId(): this;
@@ -862,6 +900,9 @@ export declare class BedrockAgentcore extends PolicyStatement {
862
900
  * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
863
901
  * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
864
902
  * @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.
903
+ *
904
+ * Possible conditions:
905
+ * - .ifAwsResourceTag()
865
906
  */
866
907
  onWorkloadIdentity(directoryId: string, workloadIdentityName: string, account?: string, region?: string, partition?: string): this;
867
908
  /**
@@ -874,6 +915,9 @@ export declare class BedrockAgentcore extends PolicyStatement {
874
915
  * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
875
916
  * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
876
917
  * @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.
918
+ *
919
+ * Possible conditions:
920
+ * - .ifAwsResourceTag()
877
921
  */
878
922
  onOauth2credentialprovider(tokenVaultId: string, name: string, account?: string, region?: string, partition?: string): this;
879
923
  /**
@@ -886,6 +930,9 @@ export declare class BedrockAgentcore extends PolicyStatement {
886
930
  * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
887
931
  * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
888
932
  * @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.
933
+ *
934
+ * Possible conditions:
935
+ * - .ifAwsResourceTag()
889
936
  */
890
937
  onApikeycredentialprovider(tokenVaultId: string, name: string, account?: string, region?: string, partition?: string): this;
891
938
  /**
@@ -974,6 +1021,9 @@ export declare class BedrockAgentcore extends PolicyStatement {
974
1021
  * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
975
1022
  * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
976
1023
  * @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.
1024
+ *
1025
+ * Possible conditions:
1026
+ * - .ifAwsResourceTag()
977
1027
  */
978
1028
  onWorkloadIdentityDirectory(directoryId: string, account?: string, region?: string, partition?: string): this;
979
1029
  /**
@@ -985,6 +1035,9 @@ export declare class BedrockAgentcore extends PolicyStatement {
985
1035
  * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
986
1036
  * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
987
1037
  * @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.
1038
+ *
1039
+ * Possible conditions:
1040
+ * - .ifAwsResourceTag()
988
1041
  */
989
1042
  onTokenVault(tokenVaultId: string, account?: string, region?: string, partition?: string): this;
990
1043
  /**
@@ -995,10 +1048,13 @@ export declare class BedrockAgentcore extends PolicyStatement {
995
1048
  * Applies to actions:
996
1049
  * - .toCreateAgentRuntime()
997
1050
  * - .toCreateAgentRuntimeEndpoint()
1051
+ * - .toCreateApiKeyCredentialProvider()
998
1052
  * - .toCreateBrowser()
999
1053
  * - .toCreateCodeInterpreter()
1000
1054
  * - .toCreateGateway()
1001
1055
  * - .toCreateMemory()
1056
+ * - .toCreateOauth2CredentialProvider()
1057
+ * - .toCreateWorkloadIdentity()
1002
1058
  * - .toTagResource()
1003
1059
  *
1004
1060
  * @param tagKey The tag key to check
@@ -1014,10 +1070,15 @@ export declare class BedrockAgentcore extends PolicyStatement {
1014
1070
  * Applies to resource types:
1015
1071
  * - memory
1016
1072
  * - gateway
1073
+ * - workload-identity
1074
+ * - oauth2credentialprovider
1075
+ * - apikeycredentialprovider
1017
1076
  * - runtime
1018
1077
  * - runtime-endpoint
1019
1078
  * - code-interpreter-custom
1020
1079
  * - browser-custom
1080
+ * - workload-identity-directory
1081
+ * - token-vault
1021
1082
  *
1022
1083
  * @param tagKey The tag key to check
1023
1084
  * @param value The value(s) to check
@@ -1032,10 +1093,13 @@ export declare class BedrockAgentcore extends PolicyStatement {
1032
1093
  * Applies to actions:
1033
1094
  * - .toCreateAgentRuntime()
1034
1095
  * - .toCreateAgentRuntimeEndpoint()
1096
+ * - .toCreateApiKeyCredentialProvider()
1035
1097
  * - .toCreateBrowser()
1036
1098
  * - .toCreateCodeInterpreter()
1037
1099
  * - .toCreateGateway()
1038
1100
  * - .toCreateMemory()
1101
+ * - .toCreateOauth2CredentialProvider()
1102
+ * - .toCreateWorkloadIdentity()
1039
1103
  * - .toTagResource()
1040
1104
  * - .toUntagResource()
1041
1105
  *
@@ -1052,6 +1116,71 @@ export declare class BedrockAgentcore extends PolicyStatement {
1052
1116
  * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
1053
1117
  */
1054
1118
  ifGatewayAuthorizerType(value: string | string[], operator?: Operator | string): this;
1119
+ /**
1120
+ * Filters access by the audience claim (aud) in the JWT passed in the request
1121
+ *
1122
+ * https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/#condition-keys-aud
1123
+ *
1124
+ * Applies to actions:
1125
+ * - .toCompleteResourceTokenAuth()
1126
+ * - .toGetWorkloadAccessTokenForJWT()
1127
+ *
1128
+ * @param value The value(s) to check
1129
+ * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
1130
+ */
1131
+ ifInboundJwtClaimAud(value: string | string[], operator?: Operator | string): this;
1132
+ /**
1133
+ * Filters access by the client_id claim in the JWT passed in the request
1134
+ *
1135
+ * https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/#condition-keys-client_id
1136
+ *
1137
+ * Applies to actions:
1138
+ * - .toCompleteResourceTokenAuth()
1139
+ * - .toGetWorkloadAccessTokenForJWT()
1140
+ *
1141
+ * @param value The value(s) to check
1142
+ * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
1143
+ */
1144
+ ifInboundJwtClaimClientId(value: string | string[], operator?: Operator | string): this;
1145
+ /**
1146
+ * Filters access by the issuer (iss) claim present in the JWT passed in the request
1147
+ *
1148
+ * https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/#condition-keys-iss
1149
+ *
1150
+ * Applies to actions:
1151
+ * - .toCompleteResourceTokenAuth()
1152
+ * - .toGetWorkloadAccessTokenForJWT()
1153
+ *
1154
+ * @param value The value(s) to check
1155
+ * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
1156
+ */
1157
+ ifInboundJwtClaimIss(value: string | string[], operator?: Operator | string): this;
1158
+ /**
1159
+ * Filters access by the scope claim in the JWT passed in the request
1160
+ *
1161
+ * https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/#condition-keys-scope
1162
+ *
1163
+ * Applies to actions:
1164
+ * - .toCompleteResourceTokenAuth()
1165
+ * - .toGetWorkloadAccessTokenForJWT()
1166
+ *
1167
+ * @param value The value(s) to check
1168
+ * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
1169
+ */
1170
+ ifInboundJwtClaimScope(value: string | string[], operator?: Operator | string): this;
1171
+ /**
1172
+ * Filters access by the subject claim (sub) in the JWT passed in the request
1173
+ *
1174
+ * https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/#condition-keys-sub
1175
+ *
1176
+ * Applies to actions:
1177
+ * - .toCompleteResourceTokenAuth()
1178
+ * - .toGetWorkloadAccessTokenForJWT()
1179
+ *
1180
+ * @param value The value(s) to check
1181
+ * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
1182
+ */
1183
+ ifInboundJwtClaimSub(value: string | string[], operator?: Operator | string): this;
1055
1184
  /**
1056
1185
  * Filters access by Actor Id
1057
1186
  *
@@ -1111,4 +1240,17 @@ export declare class BedrockAgentcore extends PolicyStatement {
1111
1240
  * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
1112
1241
  */
1113
1242
  ifStrategyId(value: string | string[], operator?: Operator | string): this;
1243
+ /**
1244
+ * Filters access by the static user ID value passed in the request
1245
+ *
1246
+ * https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/#condition-keys-userid
1247
+ *
1248
+ * Applies to actions:
1249
+ * - .toCompleteResourceTokenAuth()
1250
+ * - .toGetWorkloadAccessTokenForUserId()
1251
+ *
1252
+ * @param value The value(s) to check
1253
+ * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
1254
+ */
1255
+ ifUserid(value: string | string[], operator?: Operator | string): this;
1114
1256
  }