aws-cdk-lib 2.139.1__py3-none-any.whl → 2.141.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 +8 -0
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.139.1.jsii.tgz → aws-cdk-lib@2.141.0.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +70 -56
- aws_cdk/aws_apigateway/__init__.py +126 -53
- aws_cdk/aws_applicationautoscaling/__init__.py +1 -4
- aws_cdk/aws_arczonalshift/__init__.py +49 -44
- aws_cdk/aws_bedrock/__init__.py +2829 -147
- aws_cdk/aws_cloudfront/__init__.py +51 -9
- aws_cdk/aws_cloudtrail/__init__.py +13 -4
- aws_cdk/aws_codecommit/__init__.py +72 -46
- aws_cdk/aws_connectcampaigns/__init__.py +34 -4
- aws_cdk/aws_datasync/__init__.py +96 -75
- aws_cdk/aws_dms/__init__.py +0 -269
- aws_cdk/aws_dynamodb/__init__.py +410 -0
- aws_cdk/aws_ec2/__init__.py +239 -84
- aws_cdk/aws_ecr/__init__.py +32 -7
- aws_cdk/aws_ecs/__init__.py +2 -4
- aws_cdk/aws_efs/__init__.py +16 -2
- aws_cdk/aws_eks/__init__.py +57 -0
- aws_cdk/aws_entityresolution/__init__.py +6 -2
- aws_cdk/aws_events/__init__.py +115 -0
- aws_cdk/aws_events_targets/__init__.py +15 -0
- aws_cdk/aws_fis/__init__.py +2 -1
- aws_cdk/aws_fms/__init__.py +7 -7
- aws_cdk/aws_gamelift/__init__.py +1984 -107
- aws_cdk/aws_globalaccelerator/__init__.py +20 -16
- aws_cdk/aws_iam/__init__.py +2 -2
- aws_cdk/aws_ivs/__init__.py +1 -3
- aws_cdk/aws_kinesis/__init__.py +21 -0
- aws_cdk/aws_kinesisvideo/__init__.py +6 -4
- aws_cdk/aws_kms/__init__.py +33 -6
- aws_cdk/aws_lambda/__init__.py +0 -9
- aws_cdk/aws_location/__init__.py +8 -4
- aws_cdk/aws_medialive/__init__.py +444 -3
- aws_cdk/aws_oam/__init__.py +45 -11
- aws_cdk/aws_omics/__init__.py +4 -4
- aws_cdk/aws_paymentcryptography/__init__.py +1155 -0
- aws_cdk/aws_personalize/__init__.py +8 -2
- aws_cdk/aws_pinpoint/__init__.py +7 -5
- aws_cdk/aws_qbusiness/__init__.py +5583 -0
- aws_cdk/aws_quicksight/__init__.py +10063 -1450
- aws_cdk/aws_rds/__init__.py +77 -5
- aws_cdk/aws_redshiftserverless/__init__.py +13 -9
- aws_cdk/aws_route53/__init__.py +350 -0
- aws_cdk/aws_route53profiles/__init__.py +1048 -0
- aws_cdk/aws_s3/__init__.py +1 -1
- aws_cdk/aws_sagemaker/__init__.py +30 -30
- aws_cdk/aws_ses/__init__.py +9 -9
- aws_cdk/aws_transfer/__init__.py +102 -37
- aws_cdk/aws_voiceid/__init__.py +2 -2
- aws_cdk/aws_workspacesweb/__init__.py +92 -6
- aws_cdk/custom_resources/__init__.py +23 -2
- aws_cdk/cx_api/__init__.py +16 -0
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/RECORD +60 -57
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_route53/__init__.py
CHANGED
|
@@ -104,6 +104,21 @@ route53.ARecord(self, "ARecord",
|
|
|
104
104
|
)
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
+
To create an A record of type alias with target set to another record created outside CDK:
|
|
108
|
+
|
|
109
|
+
### This function registers the given input i.e. DNS Name(string) of an existing record as an AliasTarget to the new ARecord. To register a target that is created as part of CDK use this instead https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53_targets-readme.html
|
|
110
|
+
|
|
111
|
+
```python
|
|
112
|
+
# my_zone: route53.HostedZone
|
|
113
|
+
|
|
114
|
+
target_record = "existing.record.cdk.local"
|
|
115
|
+
record = route53.ARecord.from_aRecord_attributes(self, "A",
|
|
116
|
+
zone=my_zone,
|
|
117
|
+
record_name="test",
|
|
118
|
+
target_dNS=target_record
|
|
119
|
+
)
|
|
120
|
+
```
|
|
121
|
+
|
|
107
122
|
To add an AAAA record pointing to a CloudFront distribution:
|
|
108
123
|
|
|
109
124
|
```python
|
|
@@ -10094,6 +10109,304 @@ class ARecord(
|
|
|
10094
10109
|
|
|
10095
10110
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
10096
10111
|
|
|
10112
|
+
@jsii.member(jsii_name="fromARecordAttributes")
|
|
10113
|
+
@builtins.classmethod
|
|
10114
|
+
def from_a_record_attributes(
|
|
10115
|
+
cls,
|
|
10116
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
10117
|
+
id: builtins.str,
|
|
10118
|
+
*,
|
|
10119
|
+
target_dns: builtins.str,
|
|
10120
|
+
zone: IHostedZone,
|
|
10121
|
+
comment: typing.Optional[builtins.str] = None,
|
|
10122
|
+
delete_existing: typing.Optional[builtins.bool] = None,
|
|
10123
|
+
geo_location: typing.Optional[GeoLocation] = None,
|
|
10124
|
+
multi_value_answer: typing.Optional[builtins.bool] = None,
|
|
10125
|
+
record_name: typing.Optional[builtins.str] = None,
|
|
10126
|
+
region: typing.Optional[builtins.str] = None,
|
|
10127
|
+
set_identifier: typing.Optional[builtins.str] = None,
|
|
10128
|
+
ttl: typing.Optional[_Duration_4839e8c3] = None,
|
|
10129
|
+
weight: typing.Optional[jsii.Number] = None,
|
|
10130
|
+
) -> "ARecord":
|
|
10131
|
+
'''Creates new A record of type alias with target set to an existing A Record DNS.
|
|
10132
|
+
|
|
10133
|
+
Use when the target A record is created outside of CDK
|
|
10134
|
+
For records created as part of CDK use
|
|
10135
|
+
|
|
10136
|
+
:param scope: the parent Construct for this Construct.
|
|
10137
|
+
:param id: Logical Id of the resource.
|
|
10138
|
+
:param target_dns: Existing A record DNS name to set RecordTarget.
|
|
10139
|
+
:param zone: The hosted zone in which to define the new record.
|
|
10140
|
+
:param comment: A comment to add on the record. Default: no comment
|
|
10141
|
+
:param delete_existing: Whether to delete the same record set in the hosted zone if it already exists (dangerous!). This allows to deploy a new record set while minimizing the downtime because the new record set will be created immediately after the existing one is deleted. It also avoids "manual" actions to delete existing record sets. .. epigraph:: **N.B.:** this feature is dangerous, use with caution! It can only be used safely when ``deleteExisting`` is set to ``true`` as soon as the resource is added to the stack. Changing an existing Record Set's ``deleteExisting`` property from ``false -> true`` after deployment will delete the record! Default: false
|
|
10142
|
+
:param geo_location: The geographical origin for this record to return DNS records based on the user's location.
|
|
10143
|
+
:param multi_value_answer: Whether to return multiple values, such as IP addresses for your web servers, in response to DNS queries. Default: false
|
|
10144
|
+
:param record_name: The subdomain name for this record. This should be relative to the zone root name. For example, if you want to create a record for acme.example.com, specify "acme". You can also specify the fully qualified domain name which terminates with a ".". For example, "acme.example.com.". Default: zone root
|
|
10145
|
+
:param region: The Amazon EC2 Region where you created the resource that this resource record set refers to. The resource typically is an AWS resource, such as an EC2 instance or an ELB load balancer, and is referred to by an IP address or a DNS domain name, depending on the record type. When Amazon Route 53 receives a DNS query for a domain name and type for which you have created latency resource record sets, Route 53 selects the latency resource record set that has the lowest latency between the end user and the associated Amazon EC2 Region. Route 53 then returns the value that is associated with the selected resource record set. Default: - Do not set latency based routing
|
|
10146
|
+
:param set_identifier: A string used to distinguish between different records with the same combination of DNS name and type. It can only be set when either weight or geoLocation is defined. This parameter must be between 1 and 128 characters in length. Default: - Auto generated string
|
|
10147
|
+
:param ttl: The resource record cache time to live (TTL). Default: Duration.minutes(30)
|
|
10148
|
+
:param weight: Among resource record sets that have the same combination of DNS name and type, a value that determines the proportion of DNS queries that Amazon Route 53 responds to using the current resource record set. Route 53 calculates the sum of the weights for the resource record sets that have the same combination of DNS name and type. Route 53 then responds to queries based on the ratio of a resource's weight to the total. This value can be a number between 0 and 255. Default: - Do not set weighted routing
|
|
10149
|
+
|
|
10150
|
+
:return: AWS::Route53::RecordSet of type A with target alias set to existing A record
|
|
10151
|
+
|
|
10152
|
+
:aws-cdk-lib: /aws-route53-targets/route53-record.ts
|
|
10153
|
+
'''
|
|
10154
|
+
if __debug__:
|
|
10155
|
+
type_hints = typing.get_type_hints(_typecheckingstub__c76ad72e64542d58d5e33c28ccaca560dac09b21c920d094b7a0c2386fe42886)
|
|
10156
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
10157
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
10158
|
+
attrs = ARecordAttrs(
|
|
10159
|
+
target_dns=target_dns,
|
|
10160
|
+
zone=zone,
|
|
10161
|
+
comment=comment,
|
|
10162
|
+
delete_existing=delete_existing,
|
|
10163
|
+
geo_location=geo_location,
|
|
10164
|
+
multi_value_answer=multi_value_answer,
|
|
10165
|
+
record_name=record_name,
|
|
10166
|
+
region=region,
|
|
10167
|
+
set_identifier=set_identifier,
|
|
10168
|
+
ttl=ttl,
|
|
10169
|
+
weight=weight,
|
|
10170
|
+
)
|
|
10171
|
+
|
|
10172
|
+
return typing.cast("ARecord", jsii.sinvoke(cls, "fromARecordAttributes", [scope, id, attrs]))
|
|
10173
|
+
|
|
10174
|
+
|
|
10175
|
+
@jsii.data_type(
|
|
10176
|
+
jsii_type="aws-cdk-lib.aws_route53.ARecordAttrs",
|
|
10177
|
+
jsii_struct_bases=[RecordSetOptions],
|
|
10178
|
+
name_mapping={
|
|
10179
|
+
"zone": "zone",
|
|
10180
|
+
"comment": "comment",
|
|
10181
|
+
"delete_existing": "deleteExisting",
|
|
10182
|
+
"geo_location": "geoLocation",
|
|
10183
|
+
"multi_value_answer": "multiValueAnswer",
|
|
10184
|
+
"record_name": "recordName",
|
|
10185
|
+
"region": "region",
|
|
10186
|
+
"set_identifier": "setIdentifier",
|
|
10187
|
+
"ttl": "ttl",
|
|
10188
|
+
"weight": "weight",
|
|
10189
|
+
"target_dns": "targetDNS",
|
|
10190
|
+
},
|
|
10191
|
+
)
|
|
10192
|
+
class ARecordAttrs(RecordSetOptions):
|
|
10193
|
+
def __init__(
|
|
10194
|
+
self,
|
|
10195
|
+
*,
|
|
10196
|
+
zone: IHostedZone,
|
|
10197
|
+
comment: typing.Optional[builtins.str] = None,
|
|
10198
|
+
delete_existing: typing.Optional[builtins.bool] = None,
|
|
10199
|
+
geo_location: typing.Optional[GeoLocation] = None,
|
|
10200
|
+
multi_value_answer: typing.Optional[builtins.bool] = None,
|
|
10201
|
+
record_name: typing.Optional[builtins.str] = None,
|
|
10202
|
+
region: typing.Optional[builtins.str] = None,
|
|
10203
|
+
set_identifier: typing.Optional[builtins.str] = None,
|
|
10204
|
+
ttl: typing.Optional[_Duration_4839e8c3] = None,
|
|
10205
|
+
weight: typing.Optional[jsii.Number] = None,
|
|
10206
|
+
target_dns: builtins.str,
|
|
10207
|
+
) -> None:
|
|
10208
|
+
'''Construction properties to import existing ARecord as target.
|
|
10209
|
+
|
|
10210
|
+
:param zone: The hosted zone in which to define the new record.
|
|
10211
|
+
:param comment: A comment to add on the record. Default: no comment
|
|
10212
|
+
:param delete_existing: Whether to delete the same record set in the hosted zone if it already exists (dangerous!). This allows to deploy a new record set while minimizing the downtime because the new record set will be created immediately after the existing one is deleted. It also avoids "manual" actions to delete existing record sets. .. epigraph:: **N.B.:** this feature is dangerous, use with caution! It can only be used safely when ``deleteExisting`` is set to ``true`` as soon as the resource is added to the stack. Changing an existing Record Set's ``deleteExisting`` property from ``false -> true`` after deployment will delete the record! Default: false
|
|
10213
|
+
:param geo_location: The geographical origin for this record to return DNS records based on the user's location.
|
|
10214
|
+
:param multi_value_answer: Whether to return multiple values, such as IP addresses for your web servers, in response to DNS queries. Default: false
|
|
10215
|
+
:param record_name: The subdomain name for this record. This should be relative to the zone root name. For example, if you want to create a record for acme.example.com, specify "acme". You can also specify the fully qualified domain name which terminates with a ".". For example, "acme.example.com.". Default: zone root
|
|
10216
|
+
:param region: The Amazon EC2 Region where you created the resource that this resource record set refers to. The resource typically is an AWS resource, such as an EC2 instance or an ELB load balancer, and is referred to by an IP address or a DNS domain name, depending on the record type. When Amazon Route 53 receives a DNS query for a domain name and type for which you have created latency resource record sets, Route 53 selects the latency resource record set that has the lowest latency between the end user and the associated Amazon EC2 Region. Route 53 then returns the value that is associated with the selected resource record set. Default: - Do not set latency based routing
|
|
10217
|
+
:param set_identifier: A string used to distinguish between different records with the same combination of DNS name and type. It can only be set when either weight or geoLocation is defined. This parameter must be between 1 and 128 characters in length. Default: - Auto generated string
|
|
10218
|
+
:param ttl: The resource record cache time to live (TTL). Default: Duration.minutes(30)
|
|
10219
|
+
:param weight: Among resource record sets that have the same combination of DNS name and type, a value that determines the proportion of DNS queries that Amazon Route 53 responds to using the current resource record set. Route 53 calculates the sum of the weights for the resource record sets that have the same combination of DNS name and type. Route 53 then responds to queries based on the ratio of a resource's weight to the total. This value can be a number between 0 and 255. Default: - Do not set weighted routing
|
|
10220
|
+
:param target_dns: Existing A record DNS name to set RecordTarget.
|
|
10221
|
+
|
|
10222
|
+
:exampleMetadata: infused
|
|
10223
|
+
|
|
10224
|
+
Example::
|
|
10225
|
+
|
|
10226
|
+
# my_zone: route53.HostedZone
|
|
10227
|
+
|
|
10228
|
+
target_record = "existing.record.cdk.local"
|
|
10229
|
+
record = route53.ARecord.from_aRecord_attributes(self, "A",
|
|
10230
|
+
zone=my_zone,
|
|
10231
|
+
record_name="test",
|
|
10232
|
+
target_dNS=target_record
|
|
10233
|
+
)
|
|
10234
|
+
'''
|
|
10235
|
+
if __debug__:
|
|
10236
|
+
type_hints = typing.get_type_hints(_typecheckingstub__514d7eccc21be019febe80e121fd7d979162668b63cb99051c629ef087f5fe9a)
|
|
10237
|
+
check_type(argname="argument zone", value=zone, expected_type=type_hints["zone"])
|
|
10238
|
+
check_type(argname="argument comment", value=comment, expected_type=type_hints["comment"])
|
|
10239
|
+
check_type(argname="argument delete_existing", value=delete_existing, expected_type=type_hints["delete_existing"])
|
|
10240
|
+
check_type(argname="argument geo_location", value=geo_location, expected_type=type_hints["geo_location"])
|
|
10241
|
+
check_type(argname="argument multi_value_answer", value=multi_value_answer, expected_type=type_hints["multi_value_answer"])
|
|
10242
|
+
check_type(argname="argument record_name", value=record_name, expected_type=type_hints["record_name"])
|
|
10243
|
+
check_type(argname="argument region", value=region, expected_type=type_hints["region"])
|
|
10244
|
+
check_type(argname="argument set_identifier", value=set_identifier, expected_type=type_hints["set_identifier"])
|
|
10245
|
+
check_type(argname="argument ttl", value=ttl, expected_type=type_hints["ttl"])
|
|
10246
|
+
check_type(argname="argument weight", value=weight, expected_type=type_hints["weight"])
|
|
10247
|
+
check_type(argname="argument target_dns", value=target_dns, expected_type=type_hints["target_dns"])
|
|
10248
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
10249
|
+
"zone": zone,
|
|
10250
|
+
"target_dns": target_dns,
|
|
10251
|
+
}
|
|
10252
|
+
if comment is not None:
|
|
10253
|
+
self._values["comment"] = comment
|
|
10254
|
+
if delete_existing is not None:
|
|
10255
|
+
self._values["delete_existing"] = delete_existing
|
|
10256
|
+
if geo_location is not None:
|
|
10257
|
+
self._values["geo_location"] = geo_location
|
|
10258
|
+
if multi_value_answer is not None:
|
|
10259
|
+
self._values["multi_value_answer"] = multi_value_answer
|
|
10260
|
+
if record_name is not None:
|
|
10261
|
+
self._values["record_name"] = record_name
|
|
10262
|
+
if region is not None:
|
|
10263
|
+
self._values["region"] = region
|
|
10264
|
+
if set_identifier is not None:
|
|
10265
|
+
self._values["set_identifier"] = set_identifier
|
|
10266
|
+
if ttl is not None:
|
|
10267
|
+
self._values["ttl"] = ttl
|
|
10268
|
+
if weight is not None:
|
|
10269
|
+
self._values["weight"] = weight
|
|
10270
|
+
|
|
10271
|
+
@builtins.property
|
|
10272
|
+
def zone(self) -> IHostedZone:
|
|
10273
|
+
'''The hosted zone in which to define the new record.'''
|
|
10274
|
+
result = self._values.get("zone")
|
|
10275
|
+
assert result is not None, "Required property 'zone' is missing"
|
|
10276
|
+
return typing.cast(IHostedZone, result)
|
|
10277
|
+
|
|
10278
|
+
@builtins.property
|
|
10279
|
+
def comment(self) -> typing.Optional[builtins.str]:
|
|
10280
|
+
'''A comment to add on the record.
|
|
10281
|
+
|
|
10282
|
+
:default: no comment
|
|
10283
|
+
'''
|
|
10284
|
+
result = self._values.get("comment")
|
|
10285
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
10286
|
+
|
|
10287
|
+
@builtins.property
|
|
10288
|
+
def delete_existing(self) -> typing.Optional[builtins.bool]:
|
|
10289
|
+
'''Whether to delete the same record set in the hosted zone if it already exists (dangerous!).
|
|
10290
|
+
|
|
10291
|
+
This allows to deploy a new record set while minimizing the downtime because the
|
|
10292
|
+
new record set will be created immediately after the existing one is deleted. It
|
|
10293
|
+
also avoids "manual" actions to delete existing record sets.
|
|
10294
|
+
.. epigraph::
|
|
10295
|
+
|
|
10296
|
+
**N.B.:** this feature is dangerous, use with caution! It can only be used safely when
|
|
10297
|
+
``deleteExisting`` is set to ``true`` as soon as the resource is added to the stack. Changing
|
|
10298
|
+
an existing Record Set's ``deleteExisting`` property from ``false -> true`` after deployment
|
|
10299
|
+
will delete the record!
|
|
10300
|
+
|
|
10301
|
+
:default: false
|
|
10302
|
+
'''
|
|
10303
|
+
result = self._values.get("delete_existing")
|
|
10304
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
10305
|
+
|
|
10306
|
+
@builtins.property
|
|
10307
|
+
def geo_location(self) -> typing.Optional[GeoLocation]:
|
|
10308
|
+
'''The geographical origin for this record to return DNS records based on the user's location.'''
|
|
10309
|
+
result = self._values.get("geo_location")
|
|
10310
|
+
return typing.cast(typing.Optional[GeoLocation], result)
|
|
10311
|
+
|
|
10312
|
+
@builtins.property
|
|
10313
|
+
def multi_value_answer(self) -> typing.Optional[builtins.bool]:
|
|
10314
|
+
'''Whether to return multiple values, such as IP addresses for your web servers, in response to DNS queries.
|
|
10315
|
+
|
|
10316
|
+
:default: false
|
|
10317
|
+
'''
|
|
10318
|
+
result = self._values.get("multi_value_answer")
|
|
10319
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
10320
|
+
|
|
10321
|
+
@builtins.property
|
|
10322
|
+
def record_name(self) -> typing.Optional[builtins.str]:
|
|
10323
|
+
'''The subdomain name for this record. This should be relative to the zone root name.
|
|
10324
|
+
|
|
10325
|
+
For example, if you want to create a record for acme.example.com, specify
|
|
10326
|
+
"acme".
|
|
10327
|
+
|
|
10328
|
+
You can also specify the fully qualified domain name which terminates with a
|
|
10329
|
+
".". For example, "acme.example.com.".
|
|
10330
|
+
|
|
10331
|
+
:default: zone root
|
|
10332
|
+
'''
|
|
10333
|
+
result = self._values.get("record_name")
|
|
10334
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
10335
|
+
|
|
10336
|
+
@builtins.property
|
|
10337
|
+
def region(self) -> typing.Optional[builtins.str]:
|
|
10338
|
+
'''The Amazon EC2 Region where you created the resource that this resource record set refers to.
|
|
10339
|
+
|
|
10340
|
+
The resource typically is an AWS resource, such as an EC2 instance or an ELB load balancer,
|
|
10341
|
+
and is referred to by an IP address or a DNS domain name, depending on the record type.
|
|
10342
|
+
|
|
10343
|
+
When Amazon Route 53 receives a DNS query for a domain name and type for which you have created latency resource record sets,
|
|
10344
|
+
Route 53 selects the latency resource record set that has the lowest latency between the end user and the associated Amazon EC2 Region.
|
|
10345
|
+
Route 53 then returns the value that is associated with the selected resource record set.
|
|
10346
|
+
|
|
10347
|
+
:default: - Do not set latency based routing
|
|
10348
|
+
|
|
10349
|
+
:see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-recordset.html#cfn-route53-recordset-region
|
|
10350
|
+
'''
|
|
10351
|
+
result = self._values.get("region")
|
|
10352
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
10353
|
+
|
|
10354
|
+
@builtins.property
|
|
10355
|
+
def set_identifier(self) -> typing.Optional[builtins.str]:
|
|
10356
|
+
'''A string used to distinguish between different records with the same combination of DNS name and type.
|
|
10357
|
+
|
|
10358
|
+
It can only be set when either weight or geoLocation is defined.
|
|
10359
|
+
|
|
10360
|
+
This parameter must be between 1 and 128 characters in length.
|
|
10361
|
+
|
|
10362
|
+
:default: - Auto generated string
|
|
10363
|
+
'''
|
|
10364
|
+
result = self._values.get("set_identifier")
|
|
10365
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
10366
|
+
|
|
10367
|
+
@builtins.property
|
|
10368
|
+
def ttl(self) -> typing.Optional[_Duration_4839e8c3]:
|
|
10369
|
+
'''The resource record cache time to live (TTL).
|
|
10370
|
+
|
|
10371
|
+
:default: Duration.minutes(30)
|
|
10372
|
+
'''
|
|
10373
|
+
result = self._values.get("ttl")
|
|
10374
|
+
return typing.cast(typing.Optional[_Duration_4839e8c3], result)
|
|
10375
|
+
|
|
10376
|
+
@builtins.property
|
|
10377
|
+
def weight(self) -> typing.Optional[jsii.Number]:
|
|
10378
|
+
'''Among resource record sets that have the same combination of DNS name and type, a value that determines the proportion of DNS queries that Amazon Route 53 responds to using the current resource record set.
|
|
10379
|
+
|
|
10380
|
+
Route 53 calculates the sum of the weights for the resource record sets that have the same combination of DNS name and type.
|
|
10381
|
+
Route 53 then responds to queries based on the ratio of a resource's weight to the total.
|
|
10382
|
+
|
|
10383
|
+
This value can be a number between 0 and 255.
|
|
10384
|
+
|
|
10385
|
+
:default: - Do not set weighted routing
|
|
10386
|
+
|
|
10387
|
+
:see: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy-weighted.html
|
|
10388
|
+
'''
|
|
10389
|
+
result = self._values.get("weight")
|
|
10390
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
10391
|
+
|
|
10392
|
+
@builtins.property
|
|
10393
|
+
def target_dns(self) -> builtins.str:
|
|
10394
|
+
'''Existing A record DNS name to set RecordTarget.'''
|
|
10395
|
+
result = self._values.get("target_dns")
|
|
10396
|
+
assert result is not None, "Required property 'target_dns' is missing"
|
|
10397
|
+
return typing.cast(builtins.str, result)
|
|
10398
|
+
|
|
10399
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
10400
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
10401
|
+
|
|
10402
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
10403
|
+
return not (rhs == self)
|
|
10404
|
+
|
|
10405
|
+
def __repr__(self) -> str:
|
|
10406
|
+
return "ARecordAttrs(%s)" % ", ".join(
|
|
10407
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
10408
|
+
)
|
|
10409
|
+
|
|
10097
10410
|
|
|
10098
10411
|
@jsii.data_type(
|
|
10099
10412
|
jsii_type="aws-cdk-lib.aws_route53.ARecordProps",
|
|
@@ -13137,6 +13450,7 @@ class CaaAmazonRecord(
|
|
|
13137
13450
|
|
|
13138
13451
|
__all__ = [
|
|
13139
13452
|
"ARecord",
|
|
13453
|
+
"ARecordAttrs",
|
|
13140
13454
|
"ARecordProps",
|
|
13141
13455
|
"AaaaRecord",
|
|
13142
13456
|
"AaaaRecordProps",
|
|
@@ -14316,6 +14630,42 @@ def _typecheckingstub__ca2e60ba6b2baeeff2cc875c86af94b4b26d6f11c1cfcca09280ac533
|
|
|
14316
14630
|
"""Type checking stubs"""
|
|
14317
14631
|
pass
|
|
14318
14632
|
|
|
14633
|
+
def _typecheckingstub__c76ad72e64542d58d5e33c28ccaca560dac09b21c920d094b7a0c2386fe42886(
|
|
14634
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
14635
|
+
id: builtins.str,
|
|
14636
|
+
*,
|
|
14637
|
+
target_dns: builtins.str,
|
|
14638
|
+
zone: IHostedZone,
|
|
14639
|
+
comment: typing.Optional[builtins.str] = None,
|
|
14640
|
+
delete_existing: typing.Optional[builtins.bool] = None,
|
|
14641
|
+
geo_location: typing.Optional[GeoLocation] = None,
|
|
14642
|
+
multi_value_answer: typing.Optional[builtins.bool] = None,
|
|
14643
|
+
record_name: typing.Optional[builtins.str] = None,
|
|
14644
|
+
region: typing.Optional[builtins.str] = None,
|
|
14645
|
+
set_identifier: typing.Optional[builtins.str] = None,
|
|
14646
|
+
ttl: typing.Optional[_Duration_4839e8c3] = None,
|
|
14647
|
+
weight: typing.Optional[jsii.Number] = None,
|
|
14648
|
+
) -> None:
|
|
14649
|
+
"""Type checking stubs"""
|
|
14650
|
+
pass
|
|
14651
|
+
|
|
14652
|
+
def _typecheckingstub__514d7eccc21be019febe80e121fd7d979162668b63cb99051c629ef087f5fe9a(
|
|
14653
|
+
*,
|
|
14654
|
+
zone: IHostedZone,
|
|
14655
|
+
comment: typing.Optional[builtins.str] = None,
|
|
14656
|
+
delete_existing: typing.Optional[builtins.bool] = None,
|
|
14657
|
+
geo_location: typing.Optional[GeoLocation] = None,
|
|
14658
|
+
multi_value_answer: typing.Optional[builtins.bool] = None,
|
|
14659
|
+
record_name: typing.Optional[builtins.str] = None,
|
|
14660
|
+
region: typing.Optional[builtins.str] = None,
|
|
14661
|
+
set_identifier: typing.Optional[builtins.str] = None,
|
|
14662
|
+
ttl: typing.Optional[_Duration_4839e8c3] = None,
|
|
14663
|
+
weight: typing.Optional[jsii.Number] = None,
|
|
14664
|
+
target_dns: builtins.str,
|
|
14665
|
+
) -> None:
|
|
14666
|
+
"""Type checking stubs"""
|
|
14667
|
+
pass
|
|
14668
|
+
|
|
14319
14669
|
def _typecheckingstub__a73a5c86411a0d853fcfad820ed58f5a5c19df65a7b2756560958db5cbe36569(
|
|
14320
14670
|
*,
|
|
14321
14671
|
zone: IHostedZone,
|