aws-cdk-lib 2.178.1__py3-none-any.whl → 2.179.0__py3-none-any.whl
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.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +69 -35
- aws_cdk/_jsii/__init__.py +1 -2
- aws_cdk/_jsii/{aws-cdk-lib@2.178.1.jsii.tgz → aws-cdk-lib@2.179.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +170 -29
- aws_cdk/aws_apigatewayv2/__init__.py +151 -32
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +348 -0
- aws_cdk/aws_applicationautoscaling/__init__.py +8 -8
- aws_cdk/aws_appsync/__init__.py +6 -4
- aws_cdk/aws_cloudfront/__init__.py +5 -5
- aws_cdk/aws_codebuild/__init__.py +216 -0
- aws_cdk/aws_codepipeline/__init__.py +89 -28
- aws_cdk/aws_codepipeline_actions/__init__.py +526 -62
- aws_cdk/aws_cognito/__init__.py +676 -20
- aws_cdk/aws_ec2/__init__.py +25 -9
- aws_cdk/aws_ecs/__init__.py +8 -8
- aws_cdk/aws_eks/__init__.py +555 -179
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +99 -0
- aws_cdk/aws_events/__init__.py +9 -15
- aws_cdk/aws_events_targets/__init__.py +303 -16
- aws_cdk/aws_iam/__init__.py +3 -3
- aws_cdk/aws_ivs/__init__.py +241 -73
- aws_cdk/aws_logs/__init__.py +62 -13
- aws_cdk/aws_pinpoint/__init__.py +14 -9
- aws_cdk/aws_rds/__init__.py +168 -24
- aws_cdk/aws_s3/__init__.py +9 -9
- aws_cdk/aws_stepfunctions_tasks/__init__.py +127 -21
- aws_cdk/pipelines/__init__.py +2 -2
- {aws_cdk_lib-2.178.1.dist-info → aws_cdk_lib-2.179.0.dist-info}/METADATA +1 -2
- {aws_cdk_lib-2.178.1.dist-info → aws_cdk_lib-2.179.0.dist-info}/RECORD +33 -34
- aws_cdk/lambda_layer_kubectl/__init__.py +0 -107
- {aws_cdk_lib-2.178.1.dist-info → aws_cdk_lib-2.179.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.178.1.dist-info → aws_cdk_lib-2.179.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.178.1.dist-info → aws_cdk_lib-2.179.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.178.1.dist-info → aws_cdk_lib-2.179.0.dist-info}/top_level.txt +0 -0
|
@@ -175,6 +175,23 @@ invoke_task = tasks.CallApiGatewayRestApiEndpoint(self, "Call REST API",
|
|
|
175
175
|
)
|
|
176
176
|
```
|
|
177
177
|
|
|
178
|
+
By default, the API endpoint URI will be constructed using the AWS region of
|
|
179
|
+
the stack in which the provided `api` is created.
|
|
180
|
+
|
|
181
|
+
To construct the endpoint with a different region, use the `region` parameter:
|
|
182
|
+
|
|
183
|
+
```python
|
|
184
|
+
import aws_cdk.aws_apigateway as apigateway
|
|
185
|
+
|
|
186
|
+
rest_api = apigateway.RestApi(self, "MyRestApi")
|
|
187
|
+
invoke_task = tasks.CallApiGatewayRestApiEndpoint(self, "Call REST API",
|
|
188
|
+
api=rest_api,
|
|
189
|
+
stage_name="prod",
|
|
190
|
+
method=tasks.HttpMethod.GET,
|
|
191
|
+
region="us-west-2"
|
|
192
|
+
)
|
|
193
|
+
```
|
|
194
|
+
|
|
178
195
|
Be aware that the header values must be arrays. When passing the Task Token
|
|
179
196
|
in the headers field `WAIT_FOR_TASK_TOKEN` integration, use
|
|
180
197
|
`JsonPath.array()` to wrap the token in an array:
|
|
@@ -289,6 +306,8 @@ get_object = tasks.CallAwsServiceCrossRegion(self, "GetObject",
|
|
|
289
306
|
|
|
290
307
|
Other properties such as `additionalIamStatements` can be used in the same way as the `CallAwsService` task.
|
|
291
308
|
|
|
309
|
+
Note that when you use `integrationPattern.WAIT_FOR_TASK_TOKEN`, the output path changes under `Payload` property.
|
|
310
|
+
|
|
292
311
|
## Athena
|
|
293
312
|
|
|
294
313
|
Step Functions supports [Athena](https://docs.aws.amazon.com/step-functions/latest/dg/connect-athena.html) through the service integration pattern.
|
|
@@ -1244,11 +1263,13 @@ The following code snippet includes a Task state that uses eks:call to list the
|
|
|
1244
1263
|
|
|
1245
1264
|
```python
|
|
1246
1265
|
import aws_cdk.aws_eks as eks
|
|
1266
|
+
from aws_cdk.lambda_layer_kubectl_v32 import KubectlV32Layer
|
|
1247
1267
|
|
|
1248
1268
|
|
|
1249
1269
|
my_eks_cluster = eks.Cluster(self, "my sample cluster",
|
|
1250
|
-
version=eks.KubernetesVersion.
|
|
1251
|
-
cluster_name="myEksCluster"
|
|
1270
|
+
version=eks.KubernetesVersion.V1_32,
|
|
1271
|
+
cluster_name="myEksCluster",
|
|
1272
|
+
kubectl_layer=KubectlV32Layer(self, "kubectl")
|
|
1252
1273
|
)
|
|
1253
1274
|
|
|
1254
1275
|
tasks.EksCall(self, "Call a EKS Endpoint",
|
|
@@ -14042,6 +14063,7 @@ class CallApiGatewayRestApiEndpoint(
|
|
|
14042
14063
|
*,
|
|
14043
14064
|
api: _IRestApi_1f02523d,
|
|
14044
14065
|
stage_name: builtins.str,
|
|
14066
|
+
region: typing.Optional[builtins.str] = None,
|
|
14045
14067
|
result_path: typing.Optional[builtins.str] = None,
|
|
14046
14068
|
result_selector: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
14047
14069
|
method: "HttpMethod",
|
|
@@ -14069,6 +14091,7 @@ class CallApiGatewayRestApiEndpoint(
|
|
|
14069
14091
|
:param id: Descriptive identifier for this chainable.
|
|
14070
14092
|
:param api: API to call.
|
|
14071
14093
|
:param stage_name: Name of the stage where the API is deployed to in API Gateway.
|
|
14094
|
+
:param region: Specify a custom Region where the API is deployed, e.g. 'us-east-1'. Default: - Uses the Region of the stack containing the ``api``.
|
|
14072
14095
|
:param result_path: JSONPath expression to indicate where to inject the state's output. May also be the special value JsonPath.DISCARD, which will cause the state's input to become its output. Default: $
|
|
14073
14096
|
:param result_selector: The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. You can use ResultSelector to create a payload with values that are static or selected from the state's raw result. Default: - None
|
|
14074
14097
|
:param method: Http method for the API.
|
|
@@ -14098,6 +14121,7 @@ class CallApiGatewayRestApiEndpoint(
|
|
|
14098
14121
|
props = CallApiGatewayRestApiEndpointProps(
|
|
14099
14122
|
api=api,
|
|
14100
14123
|
stage_name=stage_name,
|
|
14124
|
+
region=region,
|
|
14101
14125
|
result_path=result_path,
|
|
14102
14126
|
result_selector=result_selector,
|
|
14103
14127
|
method=method,
|
|
@@ -14132,6 +14156,7 @@ class CallApiGatewayRestApiEndpoint(
|
|
|
14132
14156
|
*,
|
|
14133
14157
|
api: _IRestApi_1f02523d,
|
|
14134
14158
|
stage_name: builtins.str,
|
|
14159
|
+
region: typing.Optional[builtins.str] = None,
|
|
14135
14160
|
method: "HttpMethod",
|
|
14136
14161
|
api_path: typing.Optional[builtins.str] = None,
|
|
14137
14162
|
auth_type: typing.Optional[AuthType] = None,
|
|
@@ -14174,6 +14199,7 @@ class CallApiGatewayRestApiEndpoint(
|
|
|
14174
14199
|
:param id: -
|
|
14175
14200
|
:param api: API to call.
|
|
14176
14201
|
:param stage_name: Name of the stage where the API is deployed to in API Gateway.
|
|
14202
|
+
:param region: Specify a custom Region where the API is deployed, e.g. 'us-east-1'. Default: - Uses the Region of the stack containing the ``api``.
|
|
14177
14203
|
:param method: Http method for the API.
|
|
14178
14204
|
:param api_path: Path parameters appended after API endpoint. Default: - No path
|
|
14179
14205
|
:param auth_type: Authentication methods. Default: AuthType.NO_AUTH
|
|
@@ -14201,6 +14227,7 @@ class CallApiGatewayRestApiEndpoint(
|
|
|
14201
14227
|
props = CallApiGatewayRestApiEndpointJsonataProps(
|
|
14202
14228
|
api=api,
|
|
14203
14229
|
stage_name=stage_name,
|
|
14230
|
+
region=region,
|
|
14204
14231
|
method=method,
|
|
14205
14232
|
api_path=api_path,
|
|
14206
14233
|
auth_type=auth_type,
|
|
@@ -14231,6 +14258,7 @@ class CallApiGatewayRestApiEndpoint(
|
|
|
14231
14258
|
*,
|
|
14232
14259
|
api: _IRestApi_1f02523d,
|
|
14233
14260
|
stage_name: builtins.str,
|
|
14261
|
+
region: typing.Optional[builtins.str] = None,
|
|
14234
14262
|
result_path: typing.Optional[builtins.str] = None,
|
|
14235
14263
|
result_selector: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
14236
14264
|
method: "HttpMethod",
|
|
@@ -14276,6 +14304,7 @@ class CallApiGatewayRestApiEndpoint(
|
|
|
14276
14304
|
:param id: -
|
|
14277
14305
|
:param api: API to call.
|
|
14278
14306
|
:param stage_name: Name of the stage where the API is deployed to in API Gateway.
|
|
14307
|
+
:param region: Specify a custom Region where the API is deployed, e.g. 'us-east-1'. Default: - Uses the Region of the stack containing the ``api``.
|
|
14279
14308
|
:param result_path: JSONPath expression to indicate where to inject the state's output. May also be the special value JsonPath.DISCARD, which will cause the state's input to become its output. Default: $
|
|
14280
14309
|
:param result_selector: The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. You can use ResultSelector to create a payload with values that are static or selected from the state's raw result. Default: - None
|
|
14281
14310
|
:param method: Http method for the API.
|
|
@@ -14306,6 +14335,7 @@ class CallApiGatewayRestApiEndpoint(
|
|
|
14306
14335
|
props = CallApiGatewayRestApiEndpointJsonPathProps(
|
|
14307
14336
|
api=api,
|
|
14308
14337
|
stage_name=stage_name,
|
|
14338
|
+
region=region,
|
|
14309
14339
|
result_path=result_path,
|
|
14310
14340
|
result_selector=result_selector,
|
|
14311
14341
|
method=method,
|
|
@@ -14363,14 +14393,21 @@ class CallApiGatewayRestApiEndpoint(
|
|
|
14363
14393
|
@jsii.data_type(
|
|
14364
14394
|
jsii_type="aws-cdk-lib.aws_stepfunctions_tasks.CallApiGatewayRestApiEndpointOptions",
|
|
14365
14395
|
jsii_struct_bases=[],
|
|
14366
|
-
name_mapping={"api": "api", "stage_name": "stageName"},
|
|
14396
|
+
name_mapping={"api": "api", "stage_name": "stageName", "region": "region"},
|
|
14367
14397
|
)
|
|
14368
14398
|
class CallApiGatewayRestApiEndpointOptions:
|
|
14369
|
-
def __init__(
|
|
14399
|
+
def __init__(
|
|
14400
|
+
self,
|
|
14401
|
+
*,
|
|
14402
|
+
api: _IRestApi_1f02523d,
|
|
14403
|
+
stage_name: builtins.str,
|
|
14404
|
+
region: typing.Optional[builtins.str] = None,
|
|
14405
|
+
) -> None:
|
|
14370
14406
|
'''Base properties for calling an REST API Endpoint.
|
|
14371
14407
|
|
|
14372
14408
|
:param api: API to call.
|
|
14373
14409
|
:param stage_name: Name of the stage where the API is deployed to in API Gateway.
|
|
14410
|
+
:param region: Specify a custom Region where the API is deployed, e.g. 'us-east-1'. Default: - Uses the Region of the stack containing the ``api``.
|
|
14374
14411
|
|
|
14375
14412
|
:exampleMetadata: fixture=_generated
|
|
14376
14413
|
|
|
@@ -14385,17 +14422,23 @@ class CallApiGatewayRestApiEndpointOptions:
|
|
|
14385
14422
|
|
|
14386
14423
|
call_api_gateway_rest_api_endpoint_options = stepfunctions_tasks.CallApiGatewayRestApiEndpointOptions(
|
|
14387
14424
|
api=rest_api,
|
|
14388
|
-
stage_name="stageName"
|
|
14425
|
+
stage_name="stageName",
|
|
14426
|
+
|
|
14427
|
+
# the properties below are optional
|
|
14428
|
+
region="region"
|
|
14389
14429
|
)
|
|
14390
14430
|
'''
|
|
14391
14431
|
if __debug__:
|
|
14392
14432
|
type_hints = typing.get_type_hints(_typecheckingstub__f3e7028403a9fb243cf40cd7590bda960bfb12daacd7648c71359997146e9dba)
|
|
14393
14433
|
check_type(argname="argument api", value=api, expected_type=type_hints["api"])
|
|
14394
14434
|
check_type(argname="argument stage_name", value=stage_name, expected_type=type_hints["stage_name"])
|
|
14435
|
+
check_type(argname="argument region", value=region, expected_type=type_hints["region"])
|
|
14395
14436
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
14396
14437
|
"api": api,
|
|
14397
14438
|
"stage_name": stage_name,
|
|
14398
14439
|
}
|
|
14440
|
+
if region is not None:
|
|
14441
|
+
self._values["region"] = region
|
|
14399
14442
|
|
|
14400
14443
|
@builtins.property
|
|
14401
14444
|
def api(self) -> _IRestApi_1f02523d:
|
|
@@ -14411,6 +14454,15 @@ class CallApiGatewayRestApiEndpointOptions:
|
|
|
14411
14454
|
assert result is not None, "Required property 'stage_name' is missing"
|
|
14412
14455
|
return typing.cast(builtins.str, result)
|
|
14413
14456
|
|
|
14457
|
+
@builtins.property
|
|
14458
|
+
def region(self) -> typing.Optional[builtins.str]:
|
|
14459
|
+
'''Specify a custom Region where the API is deployed, e.g. 'us-east-1'.
|
|
14460
|
+
|
|
14461
|
+
:default: - Uses the Region of the stack containing the ``api``.
|
|
14462
|
+
'''
|
|
14463
|
+
result = self._values.get("region")
|
|
14464
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
14465
|
+
|
|
14414
14466
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
14415
14467
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
14416
14468
|
|
|
@@ -14452,6 +14504,7 @@ class CallApiGatewayRestApiEndpointOptions:
|
|
|
14452
14504
|
"request_body": "requestBody",
|
|
14453
14505
|
"api": "api",
|
|
14454
14506
|
"stage_name": "stageName",
|
|
14507
|
+
"region": "region",
|
|
14455
14508
|
},
|
|
14456
14509
|
)
|
|
14457
14510
|
class CallApiGatewayRestApiEndpointProps(
|
|
@@ -14484,6 +14537,7 @@ class CallApiGatewayRestApiEndpointProps(
|
|
|
14484
14537
|
request_body: typing.Optional[_TaskInput_91b91b91] = None,
|
|
14485
14538
|
api: _IRestApi_1f02523d,
|
|
14486
14539
|
stage_name: builtins.str,
|
|
14540
|
+
region: typing.Optional[builtins.str] = None,
|
|
14487
14541
|
) -> None:
|
|
14488
14542
|
'''Properties for calling an REST API Endpoint.
|
|
14489
14543
|
|
|
@@ -14510,23 +14564,20 @@ class CallApiGatewayRestApiEndpointProps(
|
|
|
14510
14564
|
:param request_body: HTTP Request body. Default: - No request body
|
|
14511
14565
|
:param api: API to call.
|
|
14512
14566
|
:param stage_name: Name of the stage where the API is deployed to in API Gateway.
|
|
14567
|
+
:param region: Specify a custom Region where the API is deployed, e.g. 'us-east-1'. Default: - Uses the Region of the stack containing the ``api``.
|
|
14513
14568
|
|
|
14514
14569
|
:exampleMetadata: infused
|
|
14515
14570
|
|
|
14516
14571
|
Example::
|
|
14517
14572
|
|
|
14518
14573
|
import aws_cdk.aws_apigateway as apigateway
|
|
14519
|
-
# api: apigateway.RestApi
|
|
14520
|
-
|
|
14521
14574
|
|
|
14522
|
-
|
|
14523
|
-
|
|
14524
|
-
|
|
14525
|
-
|
|
14526
|
-
|
|
14527
|
-
|
|
14528
|
-
"TaskToken": sfn.JsonPath.array(sfn.JsonPath.task_token)
|
|
14529
|
-
})
|
|
14575
|
+
rest_api = apigateway.RestApi(self, "MyRestApi")
|
|
14576
|
+
invoke_task = tasks.CallApiGatewayRestApiEndpoint(self, "Call REST API",
|
|
14577
|
+
api=rest_api,
|
|
14578
|
+
stage_name="prod",
|
|
14579
|
+
method=tasks.HttpMethod.GET,
|
|
14580
|
+
region="us-west-2"
|
|
14530
14581
|
)
|
|
14531
14582
|
'''
|
|
14532
14583
|
if isinstance(credentials, dict):
|
|
@@ -14556,6 +14607,7 @@ class CallApiGatewayRestApiEndpointProps(
|
|
|
14556
14607
|
check_type(argname="argument request_body", value=request_body, expected_type=type_hints["request_body"])
|
|
14557
14608
|
check_type(argname="argument api", value=api, expected_type=type_hints["api"])
|
|
14558
14609
|
check_type(argname="argument stage_name", value=stage_name, expected_type=type_hints["stage_name"])
|
|
14610
|
+
check_type(argname="argument region", value=region, expected_type=type_hints["region"])
|
|
14559
14611
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
14560
14612
|
"method": method,
|
|
14561
14613
|
"api": api,
|
|
@@ -14601,6 +14653,8 @@ class CallApiGatewayRestApiEndpointProps(
|
|
|
14601
14653
|
self._values["query_parameters"] = query_parameters
|
|
14602
14654
|
if request_body is not None:
|
|
14603
14655
|
self._values["request_body"] = request_body
|
|
14656
|
+
if region is not None:
|
|
14657
|
+
self._values["region"] = region
|
|
14604
14658
|
|
|
14605
14659
|
@builtins.property
|
|
14606
14660
|
def comment(self) -> typing.Optional[builtins.str]:
|
|
@@ -14862,6 +14916,15 @@ class CallApiGatewayRestApiEndpointProps(
|
|
|
14862
14916
|
assert result is not None, "Required property 'stage_name' is missing"
|
|
14863
14917
|
return typing.cast(builtins.str, result)
|
|
14864
14918
|
|
|
14919
|
+
@builtins.property
|
|
14920
|
+
def region(self) -> typing.Optional[builtins.str]:
|
|
14921
|
+
'''Specify a custom Region where the API is deployed, e.g. 'us-east-1'.
|
|
14922
|
+
|
|
14923
|
+
:default: - Uses the Region of the stack containing the ``api``.
|
|
14924
|
+
'''
|
|
14925
|
+
result = self._values.get("region")
|
|
14926
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
14927
|
+
|
|
14865
14928
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
14866
14929
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
14867
14930
|
|
|
@@ -31472,11 +31535,13 @@ class EksCall(
|
|
|
31472
31535
|
Example::
|
|
31473
31536
|
|
|
31474
31537
|
import aws_cdk.aws_eks as eks
|
|
31538
|
+
from aws_cdk.lambda_layer_kubectl_v32 import KubectlV32Layer
|
|
31475
31539
|
|
|
31476
31540
|
|
|
31477
31541
|
my_eks_cluster = eks.Cluster(self, "my sample cluster",
|
|
31478
|
-
version=eks.KubernetesVersion.
|
|
31479
|
-
cluster_name="myEksCluster"
|
|
31542
|
+
version=eks.KubernetesVersion.V1_32,
|
|
31543
|
+
cluster_name="myEksCluster",
|
|
31544
|
+
kubectl_layer=KubectlV32Layer(self, "kubectl")
|
|
31480
31545
|
)
|
|
31481
31546
|
|
|
31482
31547
|
tasks.EksCall(self, "Call a EKS Endpoint",
|
|
@@ -32578,11 +32643,13 @@ class EksCallProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
32578
32643
|
Example::
|
|
32579
32644
|
|
|
32580
32645
|
import aws_cdk.aws_eks as eks
|
|
32646
|
+
from aws_cdk.lambda_layer_kubectl_v32 import KubectlV32Layer
|
|
32581
32647
|
|
|
32582
32648
|
|
|
32583
32649
|
my_eks_cluster = eks.Cluster(self, "my sample cluster",
|
|
32584
|
-
version=eks.KubernetesVersion.
|
|
32585
|
-
cluster_name="myEksCluster"
|
|
32650
|
+
version=eks.KubernetesVersion.V1_32,
|
|
32651
|
+
cluster_name="myEksCluster",
|
|
32652
|
+
kubectl_layer=KubectlV32Layer(self, "kubectl")
|
|
32586
32653
|
)
|
|
32587
32654
|
|
|
32588
32655
|
tasks.EksCall(self, "Call a EKS Endpoint",
|
|
@@ -61832,11 +61899,13 @@ class HttpMethods(enum.Enum):
|
|
|
61832
61899
|
Example::
|
|
61833
61900
|
|
|
61834
61901
|
import aws_cdk.aws_eks as eks
|
|
61902
|
+
from aws_cdk.lambda_layer_kubectl_v32 import KubectlV32Layer
|
|
61835
61903
|
|
|
61836
61904
|
|
|
61837
61905
|
my_eks_cluster = eks.Cluster(self, "my sample cluster",
|
|
61838
|
-
version=eks.KubernetesVersion.
|
|
61839
|
-
cluster_name="myEksCluster"
|
|
61906
|
+
version=eks.KubernetesVersion.V1_32,
|
|
61907
|
+
cluster_name="myEksCluster",
|
|
61908
|
+
kubectl_layer=KubectlV32Layer(self, "kubectl")
|
|
61840
61909
|
)
|
|
61841
61910
|
|
|
61842
61911
|
tasks.EksCall(self, "Call a EKS Endpoint",
|
|
@@ -84631,6 +84700,7 @@ class CallApiGatewayHttpApiEndpointJsonataProps(
|
|
|
84631
84700
|
"request_body": "requestBody",
|
|
84632
84701
|
"api": "api",
|
|
84633
84702
|
"stage_name": "stageName",
|
|
84703
|
+
"region": "region",
|
|
84634
84704
|
},
|
|
84635
84705
|
)
|
|
84636
84706
|
class CallApiGatewayRestApiEndpointJsonPathProps(
|
|
@@ -84662,6 +84732,7 @@ class CallApiGatewayRestApiEndpointJsonPathProps(
|
|
|
84662
84732
|
request_body: typing.Optional[_TaskInput_91b91b91] = None,
|
|
84663
84733
|
api: _IRestApi_1f02523d,
|
|
84664
84734
|
stage_name: builtins.str,
|
|
84735
|
+
region: typing.Optional[builtins.str] = None,
|
|
84665
84736
|
) -> None:
|
|
84666
84737
|
'''Properties for calling an REST API Endpoint using JSONPath.
|
|
84667
84738
|
|
|
@@ -84687,6 +84758,7 @@ class CallApiGatewayRestApiEndpointJsonPathProps(
|
|
|
84687
84758
|
:param request_body: HTTP Request body. Default: - No request body
|
|
84688
84759
|
:param api: API to call.
|
|
84689
84760
|
:param stage_name: Name of the stage where the API is deployed to in API Gateway.
|
|
84761
|
+
:param region: Specify a custom Region where the API is deployed, e.g. 'us-east-1'. Default: - Uses the Region of the stack containing the ``api``.
|
|
84690
84762
|
|
|
84691
84763
|
:exampleMetadata: infused
|
|
84692
84764
|
|
|
@@ -84732,6 +84804,7 @@ class CallApiGatewayRestApiEndpointJsonPathProps(
|
|
|
84732
84804
|
check_type(argname="argument request_body", value=request_body, expected_type=type_hints["request_body"])
|
|
84733
84805
|
check_type(argname="argument api", value=api, expected_type=type_hints["api"])
|
|
84734
84806
|
check_type(argname="argument stage_name", value=stage_name, expected_type=type_hints["stage_name"])
|
|
84807
|
+
check_type(argname="argument region", value=region, expected_type=type_hints["region"])
|
|
84735
84808
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
84736
84809
|
"method": method,
|
|
84737
84810
|
"api": api,
|
|
@@ -84775,6 +84848,8 @@ class CallApiGatewayRestApiEndpointJsonPathProps(
|
|
|
84775
84848
|
self._values["query_parameters"] = query_parameters
|
|
84776
84849
|
if request_body is not None:
|
|
84777
84850
|
self._values["request_body"] = request_body
|
|
84851
|
+
if region is not None:
|
|
84852
|
+
self._values["region"] = region
|
|
84778
84853
|
|
|
84779
84854
|
@builtins.property
|
|
84780
84855
|
def comment(self) -> typing.Optional[builtins.str]:
|
|
@@ -85019,6 +85094,15 @@ class CallApiGatewayRestApiEndpointJsonPathProps(
|
|
|
85019
85094
|
assert result is not None, "Required property 'stage_name' is missing"
|
|
85020
85095
|
return typing.cast(builtins.str, result)
|
|
85021
85096
|
|
|
85097
|
+
@builtins.property
|
|
85098
|
+
def region(self) -> typing.Optional[builtins.str]:
|
|
85099
|
+
'''Specify a custom Region where the API is deployed, e.g. 'us-east-1'.
|
|
85100
|
+
|
|
85101
|
+
:default: - Uses the Region of the stack containing the ``api``.
|
|
85102
|
+
'''
|
|
85103
|
+
result = self._values.get("region")
|
|
85104
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
85105
|
+
|
|
85022
85106
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
85023
85107
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
85024
85108
|
|
|
@@ -85056,6 +85140,7 @@ class CallApiGatewayRestApiEndpointJsonPathProps(
|
|
|
85056
85140
|
"request_body": "requestBody",
|
|
85057
85141
|
"api": "api",
|
|
85058
85142
|
"stage_name": "stageName",
|
|
85143
|
+
"region": "region",
|
|
85059
85144
|
},
|
|
85060
85145
|
)
|
|
85061
85146
|
class CallApiGatewayRestApiEndpointJsonataProps(
|
|
@@ -85084,6 +85169,7 @@ class CallApiGatewayRestApiEndpointJsonataProps(
|
|
|
85084
85169
|
request_body: typing.Optional[_TaskInput_91b91b91] = None,
|
|
85085
85170
|
api: _IRestApi_1f02523d,
|
|
85086
85171
|
stage_name: builtins.str,
|
|
85172
|
+
region: typing.Optional[builtins.str] = None,
|
|
85087
85173
|
) -> None:
|
|
85088
85174
|
'''Properties for calling an REST API Endpoint using JSONata.
|
|
85089
85175
|
|
|
@@ -85106,6 +85192,7 @@ class CallApiGatewayRestApiEndpointJsonataProps(
|
|
|
85106
85192
|
:param request_body: HTTP Request body. Default: - No request body
|
|
85107
85193
|
:param api: API to call.
|
|
85108
85194
|
:param stage_name: Name of the stage where the API is deployed to in API Gateway.
|
|
85195
|
+
:param region: Specify a custom Region where the API is deployed, e.g. 'us-east-1'. Default: - Uses the Region of the stack containing the ``api``.
|
|
85109
85196
|
|
|
85110
85197
|
:exampleMetadata: infused
|
|
85111
85198
|
|
|
@@ -85148,6 +85235,7 @@ class CallApiGatewayRestApiEndpointJsonataProps(
|
|
|
85148
85235
|
check_type(argname="argument request_body", value=request_body, expected_type=type_hints["request_body"])
|
|
85149
85236
|
check_type(argname="argument api", value=api, expected_type=type_hints["api"])
|
|
85150
85237
|
check_type(argname="argument stage_name", value=stage_name, expected_type=type_hints["stage_name"])
|
|
85238
|
+
check_type(argname="argument region", value=region, expected_type=type_hints["region"])
|
|
85151
85239
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
85152
85240
|
"method": method,
|
|
85153
85241
|
"api": api,
|
|
@@ -85185,6 +85273,8 @@ class CallApiGatewayRestApiEndpointJsonataProps(
|
|
|
85185
85273
|
self._values["query_parameters"] = query_parameters
|
|
85186
85274
|
if request_body is not None:
|
|
85187
85275
|
self._values["request_body"] = request_body
|
|
85276
|
+
if region is not None:
|
|
85277
|
+
self._values["region"] = region
|
|
85188
85278
|
|
|
85189
85279
|
@builtins.property
|
|
85190
85280
|
def comment(self) -> typing.Optional[builtins.str]:
|
|
@@ -85394,6 +85484,15 @@ class CallApiGatewayRestApiEndpointJsonataProps(
|
|
|
85394
85484
|
assert result is not None, "Required property 'stage_name' is missing"
|
|
85395
85485
|
return typing.cast(builtins.str, result)
|
|
85396
85486
|
|
|
85487
|
+
@builtins.property
|
|
85488
|
+
def region(self) -> typing.Optional[builtins.str]:
|
|
85489
|
+
'''Specify a custom Region where the API is deployed, e.g. 'us-east-1'.
|
|
85490
|
+
|
|
85491
|
+
:default: - Uses the Region of the stack containing the ``api``.
|
|
85492
|
+
'''
|
|
85493
|
+
result = self._values.get("region")
|
|
85494
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
85495
|
+
|
|
85397
85496
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
85398
85497
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
85399
85498
|
|
|
@@ -87126,6 +87225,7 @@ def _typecheckingstub__a76886b18651b0cbd9c7ad80e6a462a8540904f212eeb56575f9a2c9a
|
|
|
87126
87225
|
*,
|
|
87127
87226
|
api: _IRestApi_1f02523d,
|
|
87128
87227
|
stage_name: builtins.str,
|
|
87228
|
+
region: typing.Optional[builtins.str] = None,
|
|
87129
87229
|
result_path: typing.Optional[builtins.str] = None,
|
|
87130
87230
|
result_selector: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
87131
87231
|
method: HttpMethod,
|
|
@@ -87157,6 +87257,7 @@ def _typecheckingstub__d2442fdcffc01527df3494d29d520e172a5fc4b5567d13ab1172c04a4
|
|
|
87157
87257
|
*,
|
|
87158
87258
|
api: _IRestApi_1f02523d,
|
|
87159
87259
|
stage_name: builtins.str,
|
|
87260
|
+
region: typing.Optional[builtins.str] = None,
|
|
87160
87261
|
method: HttpMethod,
|
|
87161
87262
|
api_path: typing.Optional[builtins.str] = None,
|
|
87162
87263
|
auth_type: typing.Optional[AuthType] = None,
|
|
@@ -87184,6 +87285,7 @@ def _typecheckingstub__e4dc06a85acae89b8512aa5463430dbf35b4fed27323d6928f986b34f
|
|
|
87184
87285
|
*,
|
|
87185
87286
|
api: _IRestApi_1f02523d,
|
|
87186
87287
|
stage_name: builtins.str,
|
|
87288
|
+
region: typing.Optional[builtins.str] = None,
|
|
87187
87289
|
result_path: typing.Optional[builtins.str] = None,
|
|
87188
87290
|
result_selector: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
87189
87291
|
method: HttpMethod,
|
|
@@ -87212,6 +87314,7 @@ def _typecheckingstub__f3e7028403a9fb243cf40cd7590bda960bfb12daacd7648c713599971
|
|
|
87212
87314
|
*,
|
|
87213
87315
|
api: _IRestApi_1f02523d,
|
|
87214
87316
|
stage_name: builtins.str,
|
|
87317
|
+
region: typing.Optional[builtins.str] = None,
|
|
87215
87318
|
) -> None:
|
|
87216
87319
|
"""Type checking stubs"""
|
|
87217
87320
|
pass
|
|
@@ -87241,6 +87344,7 @@ def _typecheckingstub__f5e083701921cac85bdeb9778c84e51785062fe16c2575a0df424f5a5
|
|
|
87241
87344
|
request_body: typing.Optional[_TaskInput_91b91b91] = None,
|
|
87242
87345
|
api: _IRestApi_1f02523d,
|
|
87243
87346
|
stage_name: builtins.str,
|
|
87347
|
+
region: typing.Optional[builtins.str] = None,
|
|
87244
87348
|
) -> None:
|
|
87245
87349
|
"""Type checking stubs"""
|
|
87246
87350
|
pass
|
|
@@ -94268,6 +94372,7 @@ def _typecheckingstub__7b8b5896877eb92cc0432b392e54ec4c2a6e2ab6c4c1267937be8d816
|
|
|
94268
94372
|
request_body: typing.Optional[_TaskInput_91b91b91] = None,
|
|
94269
94373
|
api: _IRestApi_1f02523d,
|
|
94270
94374
|
stage_name: builtins.str,
|
|
94375
|
+
region: typing.Optional[builtins.str] = None,
|
|
94271
94376
|
) -> None:
|
|
94272
94377
|
"""Type checking stubs"""
|
|
94273
94378
|
pass
|
|
@@ -94293,6 +94398,7 @@ def _typecheckingstub__b6847d83cb6b7fc3dd5f315ea3f38569ba494b7f17388e9222260ff45
|
|
|
94293
94398
|
request_body: typing.Optional[_TaskInput_91b91b91] = None,
|
|
94294
94399
|
api: _IRestApi_1f02523d,
|
|
94295
94400
|
stage_name: builtins.str,
|
|
94401
|
+
region: typing.Optional[builtins.str] = None,
|
|
94296
94402
|
) -> None:
|
|
94297
94403
|
"""Type checking stubs"""
|
|
94298
94404
|
pass
|
aws_cdk/pipelines/__init__.py
CHANGED
|
@@ -1195,9 +1195,9 @@ separate cdk repo and are just importing them for use in one of your (many) pipe
|
|
|
1195
1195
|
# shared_xRegion_us_west2_key_arn: str
|
|
1196
1196
|
|
|
1197
1197
|
|
|
1198
|
-
us_west1_bucket = s3.Bucket.from_bucket_attributes(scope, "
|
|
1198
|
+
us_west1_bucket = s3.Bucket.from_bucket_attributes(scope, "UsWest1Bucket",
|
|
1199
1199
|
bucket_arn=shared_xRegion_us_west1_bucket_arn,
|
|
1200
|
-
encryption_key=kms.Key.from_key_arn(scope, "
|
|
1200
|
+
encryption_key=kms.Key.from_key_arn(scope, "UsWest1BucketKeyArn", shared_xRegion_us_west1_bucket_arn)
|
|
1201
1201
|
)
|
|
1202
1202
|
|
|
1203
1203
|
us_west2_bucket = s3.Bucket.from_bucket_attributes(scope, "UsWest2Bucket",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aws-cdk-lib
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.179.0
|
|
4
4
|
Summary: Version 2 of the AWS Cloud Development Kit library
|
|
5
5
|
Home-page: https://github.com/aws/aws-cdk
|
|
6
6
|
Author: Amazon Web Services
|
|
@@ -22,7 +22,6 @@ Description-Content-Type: text/markdown
|
|
|
22
22
|
License-File: LICENSE
|
|
23
23
|
License-File: NOTICE
|
|
24
24
|
Requires-Dist: aws-cdk.asset-awscli-v1<3.0.0,>=2.2.208
|
|
25
|
-
Requires-Dist: aws-cdk.asset-kubectl-v20<3.0.0,>=2.1.3
|
|
26
25
|
Requires-Dist: aws-cdk.asset-node-proxy-agent-v6<3.0.0,>=2.1.0
|
|
27
26
|
Requires-Dist: aws-cdk.cloud-assembly-schema<40.0.0,>=39.2.0
|
|
28
27
|
Requires-Dist: constructs<11.0.0,>=10.0.0
|