aws-cdk-lib 2.161.1__py3-none-any.whl → 2.162.1__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 +64 -10
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.161.1.jsii.tgz → aws-cdk-lib@2.162.1.jsii.tgz} +0 -0
- aws_cdk/aws_apigatewayv2/__init__.py +16 -7
- aws_cdk/aws_apigatewayv2_authorizers/__init__.py +94 -0
- aws_cdk/aws_appsync/__init__.py +35 -0
- aws_cdk/aws_b2bi/__init__.py +18 -21
- aws_cdk/aws_cloudformation/__init__.py +59 -5
- aws_cdk/aws_cloudfront/__init__.py +4 -4
- aws_cdk/aws_codebuild/__init__.py +6 -6
- aws_cdk/aws_codepipeline/__init__.py +1 -1
- aws_cdk/aws_codepipeline_actions/__init__.py +1 -1
- aws_cdk/aws_dynamodb/__init__.py +1 -1
- aws_cdk/aws_ec2/__init__.py +13 -3
- aws_cdk/aws_ecs/__init__.py +122 -29
- aws_cdk/aws_eks/__init__.py +62 -51
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +139 -25
- aws_cdk/aws_emr/__init__.py +2182 -2129
- aws_cdk/aws_glue/__init__.py +9 -6
- aws_cdk/aws_iam/__init__.py +26 -4
- aws_cdk/aws_iot/__init__.py +190 -0
- aws_cdk/aws_iotsitewise/__init__.py +3 -1
- aws_cdk/aws_lambda/__init__.py +7 -1
- aws_cdk/aws_lambda_event_sources/__init__.py +2 -2
- aws_cdk/aws_logs/__init__.py +6 -6
- aws_cdk/aws_quicksight/__init__.py +32 -19
- aws_cdk/aws_rds/__init__.py +62 -30
- aws_cdk/aws_route53/__init__.py +5 -1
- aws_cdk/aws_route53resolver/__init__.py +17 -3
- aws_cdk/aws_s3/__init__.py +47 -25
- aws_cdk/aws_s3_assets/__init__.py +2 -2
- aws_cdk/aws_s3_notifications/__init__.py +1 -1
- aws_cdk/aws_servicecatalog/__init__.py +2 -2
- aws_cdk/aws_servicediscovery/__init__.py +8 -8
- aws_cdk/aws_sqs/__init__.py +12 -10
- aws_cdk/aws_stepfunctions_tasks/__init__.py +20 -20
- aws_cdk/cloudformation_include/__init__.py +4 -4
- aws_cdk/custom_resources/__init__.py +1 -1
- aws_cdk/pipelines/__init__.py +1 -1
- {aws_cdk_lib-2.161.1.dist-info → aws_cdk_lib-2.162.1.dist-info}/METADATA +4 -4
- {aws_cdk_lib-2.161.1.dist-info → aws_cdk_lib-2.162.1.dist-info}/RECORD +45 -45
- {aws_cdk_lib-2.161.1.dist-info → aws_cdk_lib-2.162.1.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.161.1.dist-info → aws_cdk_lib-2.162.1.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.161.1.dist-info → aws_cdk_lib-2.162.1.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.161.1.dist-info → aws_cdk_lib-2.162.1.dist-info}/top_level.txt +0 -0
aws_cdk/__init__.py
CHANGED
|
@@ -147,7 +147,7 @@ a stack with a synthesizer, pass it as one of its properties:
|
|
|
147
147
|
```python
|
|
148
148
|
MyStack(app, "MyStack",
|
|
149
149
|
synthesizer=DefaultStackSynthesizer(
|
|
150
|
-
file_assets_bucket_name="
|
|
150
|
+
file_assets_bucket_name="amzn-s3-demo-bucket"
|
|
151
151
|
)
|
|
152
152
|
)
|
|
153
153
|
```
|
|
@@ -1130,7 +1130,7 @@ The `CfnResource` class allows emitting arbitrary entries in the
|
|
|
1130
1130
|
CfnResource(self, "ResourceId",
|
|
1131
1131
|
type="AWS::S3::Bucket",
|
|
1132
1132
|
properties={
|
|
1133
|
-
"BucketName": "bucket
|
|
1133
|
+
"BucketName": "amzn-s3-demo-bucket"
|
|
1134
1134
|
}
|
|
1135
1135
|
)
|
|
1136
1136
|
```
|
|
@@ -1152,7 +1152,7 @@ CfnInclude(self, "ID",
|
|
|
1152
1152
|
"Bucket": {
|
|
1153
1153
|
"Type": "AWS::S3::Bucket",
|
|
1154
1154
|
"Properties": {
|
|
1155
|
-
"BucketName": "
|
|
1155
|
+
"BucketName": "amzn-s3-demo-bucket"
|
|
1156
1156
|
}
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
@@ -4750,13 +4750,22 @@ class CfnCreationPolicy:
|
|
|
4750
4750
|
@jsii.data_type(
|
|
4751
4751
|
jsii_type="aws-cdk-lib.CfnCustomResourceProps",
|
|
4752
4752
|
jsii_struct_bases=[],
|
|
4753
|
-
name_mapping={
|
|
4753
|
+
name_mapping={
|
|
4754
|
+
"service_token": "serviceToken",
|
|
4755
|
+
"service_timeout": "serviceTimeout",
|
|
4756
|
+
},
|
|
4754
4757
|
)
|
|
4755
4758
|
class CfnCustomResourceProps:
|
|
4756
|
-
def __init__(
|
|
4759
|
+
def __init__(
|
|
4760
|
+
self,
|
|
4761
|
+
*,
|
|
4762
|
+
service_token: builtins.str,
|
|
4763
|
+
service_timeout: typing.Optional[jsii.Number] = None,
|
|
4764
|
+
) -> None:
|
|
4757
4765
|
'''Properties for defining a ``CfnCustomResource``.
|
|
4758
4766
|
|
|
4759
4767
|
:param service_token: The service token, such as an Amazon SNS topic ARN or Lambda function ARN. The service token must be from the same Region as the stack. Updates aren't supported.
|
|
4768
|
+
:param service_timeout: The maximum time, in seconds, that can elapse before a custom resource operation times out. The value must be an integer from 1 to 3600. The default value is 3600 seconds (1 hour).
|
|
4760
4769
|
|
|
4761
4770
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-customresource.html
|
|
4762
4771
|
:exampleMetadata: fixture=_generated
|
|
@@ -4768,15 +4777,21 @@ class CfnCustomResourceProps:
|
|
|
4768
4777
|
import aws_cdk as cdk
|
|
4769
4778
|
|
|
4770
4779
|
cfn_custom_resource_props = cdk.CfnCustomResourceProps(
|
|
4771
|
-
service_token="serviceToken"
|
|
4780
|
+
service_token="serviceToken",
|
|
4781
|
+
|
|
4782
|
+
# the properties below are optional
|
|
4783
|
+
service_timeout=123
|
|
4772
4784
|
)
|
|
4773
4785
|
'''
|
|
4774
4786
|
if __debug__:
|
|
4775
4787
|
type_hints = typing.get_type_hints(_typecheckingstub__976a40ec6215ef243bb2eb86b5cd6657bdaac3d0ca3df51b0c6119ec77b512df)
|
|
4776
4788
|
check_type(argname="argument service_token", value=service_token, expected_type=type_hints["service_token"])
|
|
4789
|
+
check_type(argname="argument service_timeout", value=service_timeout, expected_type=type_hints["service_timeout"])
|
|
4777
4790
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
4778
4791
|
"service_token": service_token,
|
|
4779
4792
|
}
|
|
4793
|
+
if service_timeout is not None:
|
|
4794
|
+
self._values["service_timeout"] = service_timeout
|
|
4780
4795
|
|
|
4781
4796
|
@builtins.property
|
|
4782
4797
|
def service_token(self) -> builtins.str:
|
|
@@ -4792,6 +4807,17 @@ class CfnCustomResourceProps:
|
|
|
4792
4807
|
assert result is not None, "Required property 'service_token' is missing"
|
|
4793
4808
|
return typing.cast(builtins.str, result)
|
|
4794
4809
|
|
|
4810
|
+
@builtins.property
|
|
4811
|
+
def service_timeout(self) -> typing.Optional[jsii.Number]:
|
|
4812
|
+
'''The maximum time, in seconds, that can elapse before a custom resource operation times out.
|
|
4813
|
+
|
|
4814
|
+
The value must be an integer from 1 to 3600. The default value is 3600 seconds (1 hour).
|
|
4815
|
+
|
|
4816
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-customresource.html#cfn-cloudformation-customresource-servicetimeout
|
|
4817
|
+
'''
|
|
4818
|
+
result = self._values.get("service_timeout")
|
|
4819
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
4820
|
+
|
|
4795
4821
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
4796
4822
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
4797
4823
|
|
|
@@ -10711,7 +10737,7 @@ class DefaultStackSynthesizerProps:
|
|
|
10711
10737
|
|
|
10712
10738
|
MyStack(app, "MyStack",
|
|
10713
10739
|
synthesizer=DefaultStackSynthesizer(
|
|
10714
|
-
file_assets_bucket_name="
|
|
10740
|
+
file_assets_bucket_name="amzn-s3-demo-bucket"
|
|
10715
10741
|
)
|
|
10716
10742
|
)
|
|
10717
10743
|
'''
|
|
@@ -19637,7 +19663,7 @@ class Size(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.Size"):
|
|
|
19637
19663
|
processor=lambda_processor
|
|
19638
19664
|
)
|
|
19639
19665
|
firehose.DeliveryStream(self, "Delivery Stream",
|
|
19640
|
-
|
|
19666
|
+
destination=s3_destination
|
|
19641
19667
|
)
|
|
19642
19668
|
'''
|
|
19643
19669
|
|
|
@@ -27280,7 +27306,10 @@ class CfnCustomResource(
|
|
|
27280
27306
|
import aws_cdk as cdk
|
|
27281
27307
|
|
|
27282
27308
|
cfn_custom_resource = cdk.CfnCustomResource(self, "MyCfnCustomResource",
|
|
27283
|
-
service_token="serviceToken"
|
|
27309
|
+
service_token="serviceToken",
|
|
27310
|
+
|
|
27311
|
+
# the properties below are optional
|
|
27312
|
+
service_timeout=123
|
|
27284
27313
|
)
|
|
27285
27314
|
'''
|
|
27286
27315
|
|
|
@@ -27290,17 +27319,21 @@ class CfnCustomResource(
|
|
|
27290
27319
|
id: builtins.str,
|
|
27291
27320
|
*,
|
|
27292
27321
|
service_token: builtins.str,
|
|
27322
|
+
service_timeout: typing.Optional[jsii.Number] = None,
|
|
27293
27323
|
) -> None:
|
|
27294
27324
|
'''
|
|
27295
27325
|
:param scope: Scope in which this resource is defined.
|
|
27296
27326
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
27297
27327
|
:param service_token: The service token, such as an Amazon SNS topic ARN or Lambda function ARN. The service token must be from the same Region as the stack. Updates aren't supported.
|
|
27328
|
+
:param service_timeout: The maximum time, in seconds, that can elapse before a custom resource operation times out. The value must be an integer from 1 to 3600. The default value is 3600 seconds (1 hour).
|
|
27298
27329
|
'''
|
|
27299
27330
|
if __debug__:
|
|
27300
27331
|
type_hints = typing.get_type_hints(_typecheckingstub__16a2a0525f82ea7b4a1beeb12b88b2db09686739df818b756288418b59219b7c)
|
|
27301
27332
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
27302
27333
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
27303
|
-
props = CfnCustomResourceProps(
|
|
27334
|
+
props = CfnCustomResourceProps(
|
|
27335
|
+
service_token=service_token, service_timeout=service_timeout
|
|
27336
|
+
)
|
|
27304
27337
|
|
|
27305
27338
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
27306
27339
|
|
|
@@ -27360,6 +27393,19 @@ class CfnCustomResource(
|
|
|
27360
27393
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
27361
27394
|
jsii.set(self, "serviceToken", value) # pyright: ignore[reportArgumentType]
|
|
27362
27395
|
|
|
27396
|
+
@builtins.property
|
|
27397
|
+
@jsii.member(jsii_name="serviceTimeout")
|
|
27398
|
+
def service_timeout(self) -> typing.Optional[jsii.Number]:
|
|
27399
|
+
'''The maximum time, in seconds, that can elapse before a custom resource operation times out.'''
|
|
27400
|
+
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "serviceTimeout"))
|
|
27401
|
+
|
|
27402
|
+
@service_timeout.setter
|
|
27403
|
+
def service_timeout(self, value: typing.Optional[jsii.Number]) -> None:
|
|
27404
|
+
if __debug__:
|
|
27405
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ef8d85097c83e56b7252e81e816994d1a6952dd056336dfe16d4feffa1e1e091)
|
|
27406
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
27407
|
+
jsii.set(self, "serviceTimeout", value) # pyright: ignore[reportArgumentType]
|
|
27408
|
+
|
|
27363
27409
|
|
|
27364
27410
|
class CfnDynamicReference(
|
|
27365
27411
|
Intrinsic,
|
|
@@ -34923,6 +34969,7 @@ def _typecheckingstub__8a7bc9de19fa72830b6b21a2c610a2f683c09b0624641711adebeb123
|
|
|
34923
34969
|
def _typecheckingstub__976a40ec6215ef243bb2eb86b5cd6657bdaac3d0ca3df51b0c6119ec77b512df(
|
|
34924
34970
|
*,
|
|
34925
34971
|
service_token: builtins.str,
|
|
34972
|
+
service_timeout: typing.Optional[jsii.Number] = None,
|
|
34926
34973
|
) -> None:
|
|
34927
34974
|
"""Type checking stubs"""
|
|
34928
34975
|
pass
|
|
@@ -37633,6 +37680,7 @@ def _typecheckingstub__16a2a0525f82ea7b4a1beeb12b88b2db09686739df818b756288418b5
|
|
|
37633
37680
|
id: builtins.str,
|
|
37634
37681
|
*,
|
|
37635
37682
|
service_token: builtins.str,
|
|
37683
|
+
service_timeout: typing.Optional[jsii.Number] = None,
|
|
37636
37684
|
) -> None:
|
|
37637
37685
|
"""Type checking stubs"""
|
|
37638
37686
|
pass
|
|
@@ -37655,6 +37703,12 @@ def _typecheckingstub__3be70abbbdb8420844283a98dccbfef7ea4227506b14273ee3a1591ad
|
|
|
37655
37703
|
"""Type checking stubs"""
|
|
37656
37704
|
pass
|
|
37657
37705
|
|
|
37706
|
+
def _typecheckingstub__ef8d85097c83e56b7252e81e816994d1a6952dd056336dfe16d4feffa1e1e091(
|
|
37707
|
+
value: typing.Optional[jsii.Number],
|
|
37708
|
+
) -> None:
|
|
37709
|
+
"""Type checking stubs"""
|
|
37710
|
+
pass
|
|
37711
|
+
|
|
37658
37712
|
def _typecheckingstub__f4382454e1b2012ad94b6695331fb17ad1e5c1efffcba7978396a05ac7349259(
|
|
37659
37713
|
service: CfnDynamicReferenceService,
|
|
37660
37714
|
key: builtins.str,
|
aws_cdk/_jsii/__init__.py
CHANGED
|
@@ -35,7 +35,7 @@ import aws_cdk.cloud_assembly_schema._jsii
|
|
|
35
35
|
import constructs._jsii
|
|
36
36
|
|
|
37
37
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
38
|
-
"aws-cdk-lib", "2.
|
|
38
|
+
"aws-cdk-lib", "2.162.1", __name__[0:-6], "aws-cdk-lib@2.162.1.jsii.tgz"
|
|
39
39
|
)
|
|
40
40
|
|
|
41
41
|
__all__ = [
|
|
Binary file
|
|
@@ -9167,17 +9167,20 @@ class HttpAuthorizerAttributes:
|
|
|
9167
9167
|
:param authorizer_id: Id of the Authorizer.
|
|
9168
9168
|
:param authorizer_type: Type of authorizer. Possible values are: - JWT - JSON Web Token Authorizer - CUSTOM - Lambda Authorizer - NONE - No Authorization
|
|
9169
9169
|
|
|
9170
|
-
:exampleMetadata:
|
|
9170
|
+
:exampleMetadata: infused
|
|
9171
9171
|
|
|
9172
9172
|
Example::
|
|
9173
9173
|
|
|
9174
|
-
|
|
9175
|
-
|
|
9176
|
-
from aws_cdk import aws_apigatewayv2 as apigatewayv2
|
|
9174
|
+
from aws_cdk.aws_apigatewayv2 import HttpAuthorizer
|
|
9175
|
+
from aws_cdk import Fn
|
|
9177
9176
|
|
|
9178
|
-
|
|
9179
|
-
|
|
9180
|
-
|
|
9177
|
+
|
|
9178
|
+
authorizer_id = Fn.import_value("authorizerId")
|
|
9179
|
+
authorizer_type = Fn.import_value("authorizerType")
|
|
9180
|
+
|
|
9181
|
+
authorizer = HttpAuthorizer.from_http_authorizer_attributes(self, "HttpAuthorizer",
|
|
9182
|
+
authorizer_id=authorizer_id,
|
|
9183
|
+
authorizer_type=authorizer_type
|
|
9181
9184
|
)
|
|
9182
9185
|
'''
|
|
9183
9186
|
if __debug__:
|
|
@@ -16753,6 +16756,12 @@ class HttpNoneAuthorizer(
|
|
|
16753
16756
|
|
|
16754
16757
|
return typing.cast(HttpRouteAuthorizerConfig, jsii.invoke(self, "bind", [_options]))
|
|
16755
16758
|
|
|
16759
|
+
@builtins.property
|
|
16760
|
+
@jsii.member(jsii_name="authorizationType")
|
|
16761
|
+
def authorization_type(self) -> builtins.str:
|
|
16762
|
+
'''The authorizationType used for IAM Authorizer.'''
|
|
16763
|
+
return typing.cast(builtins.str, jsii.get(self, "authorizationType"))
|
|
16764
|
+
|
|
16756
16765
|
|
|
16757
16766
|
@jsii.data_type(
|
|
16758
16767
|
jsii_type="aws-cdk-lib.aws_apigatewayv2.HttpStageAttributes",
|
|
@@ -314,6 +314,57 @@ import software.amazon.awscdk.aws_apigatewayv2_authorizers.*;
|
|
|
314
314
|
// If you want to import a specific construct
|
|
315
315
|
import software.amazon.awscdk.aws_apigatewayv2_authorizers.WebSocketIamAuthorizer;
|
|
316
316
|
```
|
|
317
|
+
|
|
318
|
+
## Export HTTP Authorizer Id
|
|
319
|
+
|
|
320
|
+
You can retrieve the authorizer's id once it has been bound to a route to export the value.
|
|
321
|
+
|
|
322
|
+
`HttpAuthorizer.fromHttpAuthorizerAttributes`
|
|
323
|
+
|
|
324
|
+
```python
|
|
325
|
+
from aws_cdk.aws_apigatewayv2_authorizers import HttpLambdaAuthorizer, HttpLambdaResponseType
|
|
326
|
+
from aws_cdk.aws_apigatewayv2_integrations import HttpUrlIntegration
|
|
327
|
+
from aws_cdk import CfnOutput
|
|
328
|
+
|
|
329
|
+
# This function handles your auth logic
|
|
330
|
+
# auth_handler: lambda.Function
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
authorizer = HttpLambdaAuthorizer("BooksAuthorizer", auth_handler,
|
|
334
|
+
response_types=[HttpLambdaResponseType.SIMPLE]
|
|
335
|
+
)
|
|
336
|
+
|
|
337
|
+
api = apigwv2.HttpApi(self, "HttpApi")
|
|
338
|
+
|
|
339
|
+
api.add_routes(
|
|
340
|
+
integration=HttpUrlIntegration("BooksIntegration", "https://get-books-proxy.example.com"),
|
|
341
|
+
path="/books",
|
|
342
|
+
authorizer=authorizer
|
|
343
|
+
)
|
|
344
|
+
|
|
345
|
+
# You can only access authorizerId after it's been bound to a route
|
|
346
|
+
# In this example we expect use CfnOutput
|
|
347
|
+
CfnOutput(self, "authorizerId", value=authorizer.authorizer_id)
|
|
348
|
+
CfnOutput(self, "authorizerType", value=authorizer.authorization_type)
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
## Import an existing HTTP Authorizer
|
|
352
|
+
|
|
353
|
+
If you want to import av existing HTTP Authorizer you simply provide the authorizer id and authorizer type used when the authorizer was created.
|
|
354
|
+
|
|
355
|
+
```python
|
|
356
|
+
from aws_cdk.aws_apigatewayv2 import HttpAuthorizer
|
|
357
|
+
from aws_cdk import Fn
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
authorizer_id = Fn.import_value("authorizerId")
|
|
361
|
+
authorizer_type = Fn.import_value("authorizerType")
|
|
362
|
+
|
|
363
|
+
authorizer = HttpAuthorizer.from_http_authorizer_attributes(self, "HttpAuthorizer",
|
|
364
|
+
authorizer_id=authorizer_id,
|
|
365
|
+
authorizer_type=authorizer_type
|
|
366
|
+
)
|
|
367
|
+
```
|
|
317
368
|
'''
|
|
318
369
|
from pkgutil import extend_path
|
|
319
370
|
__path__ = extend_path(__path__, __name__)
|
|
@@ -350,6 +401,7 @@ from .._jsii import *
|
|
|
350
401
|
import constructs as _constructs_77d1e7e8
|
|
351
402
|
from .. import Duration as _Duration_4839e8c3
|
|
352
403
|
from ..aws_apigatewayv2 import (
|
|
404
|
+
HttpAuthorizerType as _HttpAuthorizerType_9da7a607,
|
|
353
405
|
HttpRouteAuthorizerBindOptions as _HttpRouteAuthorizerBindOptions_0416479e,
|
|
354
406
|
HttpRouteAuthorizerConfig as _HttpRouteAuthorizerConfig_162cee40,
|
|
355
407
|
IHttpRoute as _IHttpRoute_2fbc6171,
|
|
@@ -415,6 +467,12 @@ class HttpIamAuthorizer(
|
|
|
415
467
|
|
|
416
468
|
return typing.cast(_HttpRouteAuthorizerConfig_162cee40, jsii.invoke(self, "bind", [_options]))
|
|
417
469
|
|
|
470
|
+
@builtins.property
|
|
471
|
+
@jsii.member(jsii_name="authorizationType")
|
|
472
|
+
def authorization_type(self) -> _HttpAuthorizerType_9da7a607:
|
|
473
|
+
'''The authorizationType used for IAM Authorizer.'''
|
|
474
|
+
return typing.cast(_HttpAuthorizerType_9da7a607, jsii.get(self, "authorizationType"))
|
|
475
|
+
|
|
418
476
|
|
|
419
477
|
@jsii.implements(_IHttpRouteAuthorizer_6333bae7)
|
|
420
478
|
class HttpJwtAuthorizer(
|
|
@@ -490,6 +548,18 @@ class HttpJwtAuthorizer(
|
|
|
490
548
|
|
|
491
549
|
return typing.cast(_HttpRouteAuthorizerConfig_162cee40, jsii.invoke(self, "bind", [options]))
|
|
492
550
|
|
|
551
|
+
@builtins.property
|
|
552
|
+
@jsii.member(jsii_name="authorizationType")
|
|
553
|
+
def authorization_type(self) -> builtins.str:
|
|
554
|
+
'''The authorizationType used for JWT Authorizer.'''
|
|
555
|
+
return typing.cast(builtins.str, jsii.get(self, "authorizationType"))
|
|
556
|
+
|
|
557
|
+
@builtins.property
|
|
558
|
+
@jsii.member(jsii_name="authorizerId")
|
|
559
|
+
def authorizer_id(self) -> builtins.str:
|
|
560
|
+
'''Return the id of the authorizer if it's been constructed.'''
|
|
561
|
+
return typing.cast(builtins.str, jsii.get(self, "authorizerId"))
|
|
562
|
+
|
|
493
563
|
|
|
494
564
|
@jsii.data_type(
|
|
495
565
|
jsii_type="aws-cdk-lib.aws_apigatewayv2_authorizers.HttpJwtAuthorizerProps",
|
|
@@ -667,6 +737,18 @@ class HttpLambdaAuthorizer(
|
|
|
667
737
|
|
|
668
738
|
return typing.cast(_HttpRouteAuthorizerConfig_162cee40, jsii.invoke(self, "bind", [options]))
|
|
669
739
|
|
|
740
|
+
@builtins.property
|
|
741
|
+
@jsii.member(jsii_name="authorizationType")
|
|
742
|
+
def authorization_type(self) -> builtins.str:
|
|
743
|
+
'''The authorizationType used for Lambda Authorizer.'''
|
|
744
|
+
return typing.cast(builtins.str, jsii.get(self, "authorizationType"))
|
|
745
|
+
|
|
746
|
+
@builtins.property
|
|
747
|
+
@jsii.member(jsii_name="authorizerId")
|
|
748
|
+
def authorizer_id(self) -> builtins.str:
|
|
749
|
+
'''Return the id of the authorizer if it's been constructed.'''
|
|
750
|
+
return typing.cast(builtins.str, jsii.get(self, "authorizerId"))
|
|
751
|
+
|
|
670
752
|
|
|
671
753
|
@jsii.data_type(
|
|
672
754
|
jsii_type="aws-cdk-lib.aws_apigatewayv2_authorizers.HttpLambdaAuthorizerProps",
|
|
@@ -876,6 +958,18 @@ class HttpUserPoolAuthorizer(
|
|
|
876
958
|
|
|
877
959
|
return typing.cast(_HttpRouteAuthorizerConfig_162cee40, jsii.invoke(self, "bind", [options]))
|
|
878
960
|
|
|
961
|
+
@builtins.property
|
|
962
|
+
@jsii.member(jsii_name="authorizationType")
|
|
963
|
+
def authorization_type(self) -> builtins.str:
|
|
964
|
+
'''The authorizationType used for UserPool Authorizer.'''
|
|
965
|
+
return typing.cast(builtins.str, jsii.get(self, "authorizationType"))
|
|
966
|
+
|
|
967
|
+
@builtins.property
|
|
968
|
+
@jsii.member(jsii_name="authorizerId")
|
|
969
|
+
def authorizer_id(self) -> builtins.str:
|
|
970
|
+
'''Return the id of the authorizer if it's been constructed.'''
|
|
971
|
+
return typing.cast(builtins.str, jsii.get(self, "authorizerId"))
|
|
972
|
+
|
|
879
973
|
|
|
880
974
|
@jsii.data_type(
|
|
881
975
|
jsii_type="aws-cdk-lib.aws_apigatewayv2_authorizers.HttpUserPoolAuthorizerProps",
|
aws_cdk/aws_appsync/__init__.py
CHANGED
|
@@ -914,6 +914,19 @@ rule.add_target(targets.AppSync(api,
|
|
|
914
914
|
})
|
|
915
915
|
))
|
|
916
916
|
```
|
|
917
|
+
|
|
918
|
+
## Owner Contact
|
|
919
|
+
|
|
920
|
+
You can set the owner contact information for an API resource.
|
|
921
|
+
This field accepts any string input with a length of 0 - 256 characters.
|
|
922
|
+
|
|
923
|
+
```python
|
|
924
|
+
api = appsync.GraphqlApi(self, "OwnerContact",
|
|
925
|
+
name="OwnerContact",
|
|
926
|
+
definition=appsync.Definition.from_schema(appsync.SchemaFile.from_asset(path.join(__dirname, "appsync.test.graphql"))),
|
|
927
|
+
owner_contact="test-owner-contact"
|
|
928
|
+
)
|
|
929
|
+
```
|
|
917
930
|
'''
|
|
918
931
|
from pkgutil import extend_path
|
|
919
932
|
__path__ = extend_path(__path__, __name__)
|
|
@@ -10890,6 +10903,7 @@ class GraphqlApiAttributes:
|
|
|
10890
10903
|
"environment_variables": "environmentVariables",
|
|
10891
10904
|
"introspection_config": "introspectionConfig",
|
|
10892
10905
|
"log_config": "logConfig",
|
|
10906
|
+
"owner_contact": "ownerContact",
|
|
10893
10907
|
"query_depth_limit": "queryDepthLimit",
|
|
10894
10908
|
"resolver_count_limit": "resolverCountLimit",
|
|
10895
10909
|
"schema": "schema",
|
|
@@ -10908,6 +10922,7 @@ class GraphqlApiProps:
|
|
|
10908
10922
|
environment_variables: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
10909
10923
|
introspection_config: typing.Optional["IntrospectionConfig"] = None,
|
|
10910
10924
|
log_config: typing.Optional[typing.Union["LogConfig", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
10925
|
+
owner_contact: typing.Optional[builtins.str] = None,
|
|
10911
10926
|
query_depth_limit: typing.Optional[jsii.Number] = None,
|
|
10912
10927
|
resolver_count_limit: typing.Optional[jsii.Number] = None,
|
|
10913
10928
|
schema: typing.Optional["ISchema"] = None,
|
|
@@ -10923,6 +10938,7 @@ class GraphqlApiProps:
|
|
|
10923
10938
|
:param environment_variables: A map containing the list of resources with their properties and environment variables. There are a few rules you must follow when creating keys and values: - Keys must begin with a letter. - Keys must be between 2 and 64 characters long. - Keys can only contain letters, numbers, and the underscore character (_). - Values can be up to 512 characters long. - You can configure up to 50 key-value pairs in a GraphQL API. Default: - No environment variables.
|
|
10924
10939
|
:param introspection_config: A value indicating whether the API to enable (ENABLED) or disable (DISABLED) introspection. Default: IntrospectionConfig.ENABLED
|
|
10925
10940
|
:param log_config: Logging configuration for this api. Default: - None
|
|
10941
|
+
:param owner_contact: The owner contact information for an API resource. This field accepts any string input with a length of 0 - 256 characters. Default: - No owner contact.
|
|
10926
10942
|
:param query_depth_limit: A number indicating the maximum depth resolvers should be accepted when handling queries. Value must be withing range of 0 to 75 Default: - The default value is 0 (or unspecified) which indicates no maximum depth.
|
|
10927
10943
|
:param resolver_count_limit: A number indicating the maximum number of resolvers that should be accepted when handling queries. Value must be withing range of 0 to 10000 Default: - The default value is 0 (or unspecified), which will set the limit to 10000
|
|
10928
10944
|
:param schema: (deprecated) GraphQL schema definition. Specify how you want to define your schema. SchemaFile.fromAsset(filePath: string) allows schema definition through schema.graphql file Default: - schema will be generated code-first (i.e. addType, addObjectType, etc.)
|
|
@@ -10966,6 +10982,7 @@ class GraphqlApiProps:
|
|
|
10966
10982
|
check_type(argname="argument environment_variables", value=environment_variables, expected_type=type_hints["environment_variables"])
|
|
10967
10983
|
check_type(argname="argument introspection_config", value=introspection_config, expected_type=type_hints["introspection_config"])
|
|
10968
10984
|
check_type(argname="argument log_config", value=log_config, expected_type=type_hints["log_config"])
|
|
10985
|
+
check_type(argname="argument owner_contact", value=owner_contact, expected_type=type_hints["owner_contact"])
|
|
10969
10986
|
check_type(argname="argument query_depth_limit", value=query_depth_limit, expected_type=type_hints["query_depth_limit"])
|
|
10970
10987
|
check_type(argname="argument resolver_count_limit", value=resolver_count_limit, expected_type=type_hints["resolver_count_limit"])
|
|
10971
10988
|
check_type(argname="argument schema", value=schema, expected_type=type_hints["schema"])
|
|
@@ -10986,6 +11003,8 @@ class GraphqlApiProps:
|
|
|
10986
11003
|
self._values["introspection_config"] = introspection_config
|
|
10987
11004
|
if log_config is not None:
|
|
10988
11005
|
self._values["log_config"] = log_config
|
|
11006
|
+
if owner_contact is not None:
|
|
11007
|
+
self._values["owner_contact"] = owner_contact
|
|
10989
11008
|
if query_depth_limit is not None:
|
|
10990
11009
|
self._values["query_depth_limit"] = query_depth_limit
|
|
10991
11010
|
if resolver_count_limit is not None:
|
|
@@ -11068,6 +11087,17 @@ class GraphqlApiProps:
|
|
|
11068
11087
|
result = self._values.get("log_config")
|
|
11069
11088
|
return typing.cast(typing.Optional["LogConfig"], result)
|
|
11070
11089
|
|
|
11090
|
+
@builtins.property
|
|
11091
|
+
def owner_contact(self) -> typing.Optional[builtins.str]:
|
|
11092
|
+
'''The owner contact information for an API resource.
|
|
11093
|
+
|
|
11094
|
+
This field accepts any string input with a length of 0 - 256 characters.
|
|
11095
|
+
|
|
11096
|
+
:default: - No owner contact.
|
|
11097
|
+
'''
|
|
11098
|
+
result = self._values.get("owner_contact")
|
|
11099
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
11100
|
+
|
|
11071
11101
|
@builtins.property
|
|
11072
11102
|
def query_depth_limit(self) -> typing.Optional[jsii.Number]:
|
|
11073
11103
|
'''A number indicating the maximum depth resolvers should be accepted when handling queries.
|
|
@@ -17541,6 +17571,7 @@ class GraphqlApi(
|
|
|
17541
17571
|
environment_variables: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
17542
17572
|
introspection_config: typing.Optional[IntrospectionConfig] = None,
|
|
17543
17573
|
log_config: typing.Optional[typing.Union[LogConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
17574
|
+
owner_contact: typing.Optional[builtins.str] = None,
|
|
17544
17575
|
query_depth_limit: typing.Optional[jsii.Number] = None,
|
|
17545
17576
|
resolver_count_limit: typing.Optional[jsii.Number] = None,
|
|
17546
17577
|
schema: typing.Optional[ISchema] = None,
|
|
@@ -17557,6 +17588,7 @@ class GraphqlApi(
|
|
|
17557
17588
|
:param environment_variables: A map containing the list of resources with their properties and environment variables. There are a few rules you must follow when creating keys and values: - Keys must begin with a letter. - Keys must be between 2 and 64 characters long. - Keys can only contain letters, numbers, and the underscore character (_). - Values can be up to 512 characters long. - You can configure up to 50 key-value pairs in a GraphQL API. Default: - No environment variables.
|
|
17558
17589
|
:param introspection_config: A value indicating whether the API to enable (ENABLED) or disable (DISABLED) introspection. Default: IntrospectionConfig.ENABLED
|
|
17559
17590
|
:param log_config: Logging configuration for this api. Default: - None
|
|
17591
|
+
:param owner_contact: The owner contact information for an API resource. This field accepts any string input with a length of 0 - 256 characters. Default: - No owner contact.
|
|
17560
17592
|
:param query_depth_limit: A number indicating the maximum depth resolvers should be accepted when handling queries. Value must be withing range of 0 to 75 Default: - The default value is 0 (or unspecified) which indicates no maximum depth.
|
|
17561
17593
|
:param resolver_count_limit: A number indicating the maximum number of resolvers that should be accepted when handling queries. Value must be withing range of 0 to 10000 Default: - The default value is 0 (or unspecified), which will set the limit to 10000
|
|
17562
17594
|
:param schema: (deprecated) GraphQL schema definition. Specify how you want to define your schema. SchemaFile.fromAsset(filePath: string) allows schema definition through schema.graphql file Default: - schema will be generated code-first (i.e. addType, addObjectType, etc.)
|
|
@@ -17575,6 +17607,7 @@ class GraphqlApi(
|
|
|
17575
17607
|
environment_variables=environment_variables,
|
|
17576
17608
|
introspection_config=introspection_config,
|
|
17577
17609
|
log_config=log_config,
|
|
17610
|
+
owner_contact=owner_contact,
|
|
17578
17611
|
query_depth_limit=query_depth_limit,
|
|
17579
17612
|
resolver_count_limit=resolver_count_limit,
|
|
17580
17613
|
schema=schema,
|
|
@@ -19295,6 +19328,7 @@ def _typecheckingstub__99ac2113ba86b3a60344e56ee0c5bb6cdf1bc20cd0d5aa52f9a94709f
|
|
|
19295
19328
|
environment_variables: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
19296
19329
|
introspection_config: typing.Optional[IntrospectionConfig] = None,
|
|
19297
19330
|
log_config: typing.Optional[typing.Union[LogConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
19331
|
+
owner_contact: typing.Optional[builtins.str] = None,
|
|
19298
19332
|
query_depth_limit: typing.Optional[jsii.Number] = None,
|
|
19299
19333
|
resolver_count_limit: typing.Optional[jsii.Number] = None,
|
|
19300
19334
|
schema: typing.Optional[ISchema] = None,
|
|
@@ -20316,6 +20350,7 @@ def _typecheckingstub__cdc21261f45618890d843fff7978e6e8e4f4cfe7884c4fffbff6b8dad
|
|
|
20316
20350
|
environment_variables: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
20317
20351
|
introspection_config: typing.Optional[IntrospectionConfig] = None,
|
|
20318
20352
|
log_config: typing.Optional[typing.Union[LogConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
20353
|
+
owner_contact: typing.Optional[builtins.str] = None,
|
|
20319
20354
|
query_depth_limit: typing.Optional[jsii.Number] = None,
|
|
20320
20355
|
resolver_count_limit: typing.Optional[jsii.Number] = None,
|
|
20321
20356
|
schema: typing.Optional[ISchema] = None,
|
aws_cdk/aws_b2bi/__init__.py
CHANGED
|
@@ -555,11 +555,8 @@ class CfnCapability(
|
|
|
555
555
|
*,
|
|
556
556
|
x12_details: typing.Union[_IResolvable_da3f097b, typing.Union["CfnCapability.X12DetailsProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
557
557
|
) -> None:
|
|
558
|
-
'''
|
|
559
|
-
|
|
560
|
-
Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.
|
|
561
|
-
|
|
562
|
-
:param x12_details: Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.
|
|
558
|
+
'''
|
|
559
|
+
:param x12_details:
|
|
563
560
|
|
|
564
561
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-capability-editype.html
|
|
565
562
|
:exampleMetadata: fixture=_generated
|
|
@@ -588,10 +585,7 @@ class CfnCapability(
|
|
|
588
585
|
def x12_details(
|
|
589
586
|
self,
|
|
590
587
|
) -> typing.Union[_IResolvable_da3f097b, "CfnCapability.X12DetailsProperty"]:
|
|
591
|
-
'''
|
|
592
|
-
|
|
593
|
-
Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.
|
|
594
|
-
|
|
588
|
+
'''
|
|
595
589
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-capability-editype.html#cfn-b2bi-capability-editype-x12details
|
|
596
590
|
'''
|
|
597
591
|
result = self._values.get("x12_details")
|
|
@@ -621,7 +615,7 @@ class CfnCapability(
|
|
|
621
615
|
bucket_name: typing.Optional[builtins.str] = None,
|
|
622
616
|
key: typing.Optional[builtins.str] = None,
|
|
623
617
|
) -> None:
|
|
624
|
-
'''Specifies the details for the Amazon S3 file location that is being used with AWS
|
|
618
|
+
'''Specifies the details for the Amazon S3 file location that is being used with AWS B2B Data Interchange.
|
|
625
619
|
|
|
626
620
|
File locations in Amazon S3 are identified using a combination of the bucket and key.
|
|
627
621
|
|
|
@@ -2444,9 +2438,18 @@ class CfnTransformer(
|
|
|
2444
2438
|
metaclass=jsii.JSIIMeta,
|
|
2445
2439
|
jsii_type="aws-cdk-lib.aws_b2bi.CfnTransformer",
|
|
2446
2440
|
):
|
|
2447
|
-
'''Creates a transformer.
|
|
2441
|
+
'''Creates a transformer. AWS B2B Data Interchange currently supports two scenarios:.
|
|
2442
|
+
|
|
2443
|
+
- *Inbound EDI* : the AWS customer receives an EDI file from their trading partner. AWS B2B Data Interchange converts this EDI file into a JSON or XML file with a service-defined structure. A mapping template provided by the customer, in JSONata or XSLT format, is optionally applied to this file to produce a JSON or XML file with the structure the customer requires.
|
|
2444
|
+
- *Outbound EDI* : the AWS customer has a JSON or XML file containing data that they wish to use in an EDI file. A mapping template, provided by the customer (in either JSONata or XSLT format) is applied to this file to generate a JSON or XML file in the service-defined structure. This file is then converted to an EDI file.
|
|
2445
|
+
|
|
2446
|
+
.. epigraph::
|
|
2448
2447
|
|
|
2449
|
-
|
|
2448
|
+
The following fields are provided for backwards compatibility only: ``fileFormat`` , ``mappingTemplate`` , ``ediType`` , and ``sampleDocument`` .
|
|
2449
|
+
|
|
2450
|
+
- Use the ``mapping`` data type in place of ``mappingTemplate`` and ``fileFormat``
|
|
2451
|
+
- Use the ``sampleDocuments`` data type in place of ``sampleDocument``
|
|
2452
|
+
- Use either the ``inputConversion`` or ``outputConversion`` in place of ``ediType``
|
|
2450
2453
|
|
|
2451
2454
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-b2bi-transformer.html
|
|
2452
2455
|
:cloudformationResource: AWS::B2BI::Transformer
|
|
@@ -2840,11 +2843,8 @@ class CfnTransformer(
|
|
|
2840
2843
|
*,
|
|
2841
2844
|
x12_details: typing.Union[_IResolvable_da3f097b, typing.Union["CfnTransformer.X12DetailsProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
2842
2845
|
) -> None:
|
|
2843
|
-
'''
|
|
2844
|
-
|
|
2845
|
-
Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.
|
|
2846
|
-
|
|
2847
|
-
:param x12_details: Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.
|
|
2846
|
+
'''
|
|
2847
|
+
:param x12_details:
|
|
2848
2848
|
|
|
2849
2849
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-editype.html
|
|
2850
2850
|
:exampleMetadata: fixture=_generated
|
|
@@ -2873,10 +2873,7 @@ class CfnTransformer(
|
|
|
2873
2873
|
def x12_details(
|
|
2874
2874
|
self,
|
|
2875
2875
|
) -> typing.Union[_IResolvable_da3f097b, "CfnTransformer.X12DetailsProperty"]:
|
|
2876
|
-
'''
|
|
2877
|
-
|
|
2878
|
-
Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.
|
|
2879
|
-
|
|
2876
|
+
'''
|
|
2880
2877
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-editype.html#cfn-b2bi-transformer-editype-x12details
|
|
2881
2878
|
'''
|
|
2882
2879
|
result = self._values.get("x12_details")
|