aws-cdk-lib 2.219.0__py3-none-any.whl → 2.220.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 +12 -17
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.219.0.jsii.tgz → aws-cdk-lib@2.220.0.jsii.tgz} +0 -0
- aws_cdk/aws_applicationsignals/__init__.py +450 -2
- aws_cdk/aws_arcregionswitch/__init__.py +8 -0
- aws_cdk/aws_backup/__init__.py +29 -0
- aws_cdk/aws_batch/__init__.py +109 -7
- aws_cdk/aws_bedrock/__init__.py +44 -16
- aws_cdk/aws_bedrockagentcore/__init__.py +7872 -1718
- aws_cdk/aws_cloudfront/experimental/__init__.py +4 -0
- aws_cdk/aws_cloudfront_origins/__init__.py +87 -6
- aws_cdk/aws_cloudwatch/__init__.py +5 -5
- aws_cdk/aws_cognito/__init__.py +6 -4
- aws_cdk/aws_dax/__init__.py +12 -3
- aws_cdk/aws_directoryservice/__init__.py +29 -0
- aws_cdk/aws_ec2/__init__.py +99 -8
- aws_cdk/aws_ecs/__init__.py +342 -134
- aws_cdk/aws_eks/__init__.py +114 -9
- aws_cdk/aws_fsx/__init__.py +4 -4
- aws_cdk/aws_imagebuilder/__init__.py +397 -0
- aws_cdk/aws_iotsitewise/__init__.py +136 -80
- aws_cdk/aws_kinesis/__init__.py +95 -4
- aws_cdk/aws_lambda/__init__.py +43 -0
- aws_cdk/aws_lightsail/__init__.py +584 -0
- aws_cdk/aws_logs/__init__.py +57 -0
- aws_cdk/aws_lookoutmetrics/__init__.py +14 -2
- aws_cdk/aws_m2/__init__.py +59 -13
- aws_cdk/aws_medialive/__init__.py +108 -0
- aws_cdk/aws_mwaa/__init__.py +5 -5
- aws_cdk/aws_neptune/__init__.py +133 -70
- aws_cdk/aws_networkmanager/__init__.py +29 -0
- aws_cdk/aws_observabilityadmin/__init__.py +1227 -83
- aws_cdk/aws_omics/__init__.py +7 -1
- aws_cdk/aws_opensearchservice/__init__.py +6 -0
- aws_cdk/aws_pcs/__init__.py +224 -33
- aws_cdk/aws_pinpoint/__init__.py +58 -0
- aws_cdk/aws_quicksight/__init__.py +80 -0
- aws_cdk/aws_rds/__init__.py +29 -23
- aws_cdk/aws_refactorspaces/__init__.py +18 -6
- aws_cdk/aws_route53/__init__.py +130 -6
- aws_cdk/aws_s3/__init__.py +29 -2
- aws_cdk/aws_s3objectlambda/__init__.py +44 -12
- aws_cdk/aws_servicecatalog/__init__.py +25 -20
- aws_cdk/aws_ssmquicksetup/__init__.py +3 -3
- aws_cdk/aws_synthetics/__init__.py +21 -1
- {aws_cdk_lib-2.219.0.dist-info → aws_cdk_lib-2.220.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.219.0.dist-info → aws_cdk_lib-2.220.0.dist-info}/RECORD +51 -51
- {aws_cdk_lib-2.219.0.dist-info → aws_cdk_lib-2.220.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.219.0.dist-info → aws_cdk_lib-2.220.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.219.0.dist-info → aws_cdk_lib-2.220.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.219.0.dist-info → aws_cdk_lib-2.220.0.dist-info}/top_level.txt +0 -0
|
@@ -1577,6 +1577,104 @@ class CfnDiskProps:
|
|
|
1577
1577
|
)
|
|
1578
1578
|
|
|
1579
1579
|
|
|
1580
|
+
@jsii.data_type(
|
|
1581
|
+
jsii_type="aws-cdk-lib.aws_lightsail.CfnDiskSnapshotProps",
|
|
1582
|
+
jsii_struct_bases=[],
|
|
1583
|
+
name_mapping={
|
|
1584
|
+
"disk_name": "diskName",
|
|
1585
|
+
"disk_snapshot_name": "diskSnapshotName",
|
|
1586
|
+
"tags": "tags",
|
|
1587
|
+
},
|
|
1588
|
+
)
|
|
1589
|
+
class CfnDiskSnapshotProps:
|
|
1590
|
+
def __init__(
|
|
1591
|
+
self,
|
|
1592
|
+
*,
|
|
1593
|
+
disk_name: builtins.str,
|
|
1594
|
+
disk_snapshot_name: builtins.str,
|
|
1595
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1596
|
+
) -> None:
|
|
1597
|
+
'''Properties for defining a ``CfnDiskSnapshot``.
|
|
1598
|
+
|
|
1599
|
+
:param disk_name: The unique name of the disk.
|
|
1600
|
+
:param disk_snapshot_name: The name of the disk snapshot ( ``my-disk-snapshot`` ).
|
|
1601
|
+
:param tags: The tag keys and optional values for the resource. For more information about tags in Lightsail, see the `Amazon Lightsail Developer Guide <https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-tags>`_ .
|
|
1602
|
+
|
|
1603
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-disksnapshot.html
|
|
1604
|
+
:exampleMetadata: fixture=_generated
|
|
1605
|
+
|
|
1606
|
+
Example::
|
|
1607
|
+
|
|
1608
|
+
# The code below shows an example of how to instantiate this type.
|
|
1609
|
+
# The values are placeholders you should change.
|
|
1610
|
+
from aws_cdk import aws_lightsail as lightsail
|
|
1611
|
+
|
|
1612
|
+
cfn_disk_snapshot_props = lightsail.CfnDiskSnapshotProps(
|
|
1613
|
+
disk_name="diskName",
|
|
1614
|
+
disk_snapshot_name="diskSnapshotName",
|
|
1615
|
+
|
|
1616
|
+
# the properties below are optional
|
|
1617
|
+
tags=[CfnTag(
|
|
1618
|
+
key="key",
|
|
1619
|
+
value="value"
|
|
1620
|
+
)]
|
|
1621
|
+
)
|
|
1622
|
+
'''
|
|
1623
|
+
if __debug__:
|
|
1624
|
+
type_hints = typing.get_type_hints(_typecheckingstub__582cce25c17f9f8ae3141662afacdd9a112ca28a80ce71bc1e60dbdced5f5b83)
|
|
1625
|
+
check_type(argname="argument disk_name", value=disk_name, expected_type=type_hints["disk_name"])
|
|
1626
|
+
check_type(argname="argument disk_snapshot_name", value=disk_snapshot_name, expected_type=type_hints["disk_snapshot_name"])
|
|
1627
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
1628
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1629
|
+
"disk_name": disk_name,
|
|
1630
|
+
"disk_snapshot_name": disk_snapshot_name,
|
|
1631
|
+
}
|
|
1632
|
+
if tags is not None:
|
|
1633
|
+
self._values["tags"] = tags
|
|
1634
|
+
|
|
1635
|
+
@builtins.property
|
|
1636
|
+
def disk_name(self) -> builtins.str:
|
|
1637
|
+
'''The unique name of the disk.
|
|
1638
|
+
|
|
1639
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-disksnapshot.html#cfn-lightsail-disksnapshot-diskname
|
|
1640
|
+
'''
|
|
1641
|
+
result = self._values.get("disk_name")
|
|
1642
|
+
assert result is not None, "Required property 'disk_name' is missing"
|
|
1643
|
+
return typing.cast(builtins.str, result)
|
|
1644
|
+
|
|
1645
|
+
@builtins.property
|
|
1646
|
+
def disk_snapshot_name(self) -> builtins.str:
|
|
1647
|
+
'''The name of the disk snapshot ( ``my-disk-snapshot`` ).
|
|
1648
|
+
|
|
1649
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-disksnapshot.html#cfn-lightsail-disksnapshot-disksnapshotname
|
|
1650
|
+
'''
|
|
1651
|
+
result = self._values.get("disk_snapshot_name")
|
|
1652
|
+
assert result is not None, "Required property 'disk_snapshot_name' is missing"
|
|
1653
|
+
return typing.cast(builtins.str, result)
|
|
1654
|
+
|
|
1655
|
+
@builtins.property
|
|
1656
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
1657
|
+
'''The tag keys and optional values for the resource.
|
|
1658
|
+
|
|
1659
|
+
For more information about tags in Lightsail, see the `Amazon Lightsail Developer Guide <https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-tags>`_ .
|
|
1660
|
+
|
|
1661
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-disksnapshot.html#cfn-lightsail-disksnapshot-tags
|
|
1662
|
+
'''
|
|
1663
|
+
result = self._values.get("tags")
|
|
1664
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
1665
|
+
|
|
1666
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1667
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1668
|
+
|
|
1669
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1670
|
+
return not (rhs == self)
|
|
1671
|
+
|
|
1672
|
+
def __repr__(self) -> str:
|
|
1673
|
+
return "CfnDiskSnapshotProps(%s)" % ", ".join(
|
|
1674
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1675
|
+
)
|
|
1676
|
+
|
|
1677
|
+
|
|
1580
1678
|
@jsii.data_type(
|
|
1581
1679
|
jsii_type="aws-cdk-lib.aws_lightsail.CfnDistributionProps",
|
|
1582
1680
|
jsii_struct_bases=[],
|
|
@@ -2990,6 +3088,74 @@ class DiskReference:
|
|
|
2990
3088
|
)
|
|
2991
3089
|
|
|
2992
3090
|
|
|
3091
|
+
@jsii.data_type(
|
|
3092
|
+
jsii_type="aws-cdk-lib.aws_lightsail.DiskSnapshotReference",
|
|
3093
|
+
jsii_struct_bases=[],
|
|
3094
|
+
name_mapping={
|
|
3095
|
+
"disk_snapshot_arn": "diskSnapshotArn",
|
|
3096
|
+
"disk_snapshot_name": "diskSnapshotName",
|
|
3097
|
+
},
|
|
3098
|
+
)
|
|
3099
|
+
class DiskSnapshotReference:
|
|
3100
|
+
def __init__(
|
|
3101
|
+
self,
|
|
3102
|
+
*,
|
|
3103
|
+
disk_snapshot_arn: builtins.str,
|
|
3104
|
+
disk_snapshot_name: builtins.str,
|
|
3105
|
+
) -> None:
|
|
3106
|
+
'''A reference to a DiskSnapshot resource.
|
|
3107
|
+
|
|
3108
|
+
:param disk_snapshot_arn: The ARN of the DiskSnapshot resource.
|
|
3109
|
+
:param disk_snapshot_name: The DiskSnapshotName of the DiskSnapshot resource.
|
|
3110
|
+
|
|
3111
|
+
:exampleMetadata: fixture=_generated
|
|
3112
|
+
|
|
3113
|
+
Example::
|
|
3114
|
+
|
|
3115
|
+
# The code below shows an example of how to instantiate this type.
|
|
3116
|
+
# The values are placeholders you should change.
|
|
3117
|
+
from aws_cdk import aws_lightsail as lightsail
|
|
3118
|
+
|
|
3119
|
+
disk_snapshot_reference = lightsail.DiskSnapshotReference(
|
|
3120
|
+
disk_snapshot_arn="diskSnapshotArn",
|
|
3121
|
+
disk_snapshot_name="diskSnapshotName"
|
|
3122
|
+
)
|
|
3123
|
+
'''
|
|
3124
|
+
if __debug__:
|
|
3125
|
+
type_hints = typing.get_type_hints(_typecheckingstub__35528b985666675fa216f8d2164f24930e657ecd0488c3148fa7312474fdbac6)
|
|
3126
|
+
check_type(argname="argument disk_snapshot_arn", value=disk_snapshot_arn, expected_type=type_hints["disk_snapshot_arn"])
|
|
3127
|
+
check_type(argname="argument disk_snapshot_name", value=disk_snapshot_name, expected_type=type_hints["disk_snapshot_name"])
|
|
3128
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3129
|
+
"disk_snapshot_arn": disk_snapshot_arn,
|
|
3130
|
+
"disk_snapshot_name": disk_snapshot_name,
|
|
3131
|
+
}
|
|
3132
|
+
|
|
3133
|
+
@builtins.property
|
|
3134
|
+
def disk_snapshot_arn(self) -> builtins.str:
|
|
3135
|
+
'''The ARN of the DiskSnapshot resource.'''
|
|
3136
|
+
result = self._values.get("disk_snapshot_arn")
|
|
3137
|
+
assert result is not None, "Required property 'disk_snapshot_arn' is missing"
|
|
3138
|
+
return typing.cast(builtins.str, result)
|
|
3139
|
+
|
|
3140
|
+
@builtins.property
|
|
3141
|
+
def disk_snapshot_name(self) -> builtins.str:
|
|
3142
|
+
'''The DiskSnapshotName of the DiskSnapshot resource.'''
|
|
3143
|
+
result = self._values.get("disk_snapshot_name")
|
|
3144
|
+
assert result is not None, "Required property 'disk_snapshot_name' is missing"
|
|
3145
|
+
return typing.cast(builtins.str, result)
|
|
3146
|
+
|
|
3147
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3148
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3149
|
+
|
|
3150
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3151
|
+
return not (rhs == self)
|
|
3152
|
+
|
|
3153
|
+
def __repr__(self) -> str:
|
|
3154
|
+
return "DiskSnapshotReference(%s)" % ", ".join(
|
|
3155
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3156
|
+
)
|
|
3157
|
+
|
|
3158
|
+
|
|
2993
3159
|
@jsii.data_type(
|
|
2994
3160
|
jsii_type="aws-cdk-lib.aws_lightsail.DistributionReference",
|
|
2995
3161
|
jsii_struct_bases=[],
|
|
@@ -3358,6 +3524,46 @@ class _IDiskRefProxy(
|
|
|
3358
3524
|
typing.cast(typing.Any, IDiskRef).__jsii_proxy_class__ = lambda : _IDiskRefProxy
|
|
3359
3525
|
|
|
3360
3526
|
|
|
3527
|
+
@jsii.interface(jsii_type="aws-cdk-lib.aws_lightsail.IDiskSnapshotRef")
|
|
3528
|
+
class IDiskSnapshotRef(_constructs_77d1e7e8.IConstruct, typing_extensions.Protocol):
|
|
3529
|
+
'''(experimental) Indicates that this resource can be referenced as a DiskSnapshot.
|
|
3530
|
+
|
|
3531
|
+
:stability: experimental
|
|
3532
|
+
'''
|
|
3533
|
+
|
|
3534
|
+
@builtins.property
|
|
3535
|
+
@jsii.member(jsii_name="diskSnapshotRef")
|
|
3536
|
+
def disk_snapshot_ref(self) -> DiskSnapshotReference:
|
|
3537
|
+
'''(experimental) A reference to a DiskSnapshot resource.
|
|
3538
|
+
|
|
3539
|
+
:stability: experimental
|
|
3540
|
+
'''
|
|
3541
|
+
...
|
|
3542
|
+
|
|
3543
|
+
|
|
3544
|
+
class _IDiskSnapshotRefProxy(
|
|
3545
|
+
jsii.proxy_for(_constructs_77d1e7e8.IConstruct), # type: ignore[misc]
|
|
3546
|
+
):
|
|
3547
|
+
'''(experimental) Indicates that this resource can be referenced as a DiskSnapshot.
|
|
3548
|
+
|
|
3549
|
+
:stability: experimental
|
|
3550
|
+
'''
|
|
3551
|
+
|
|
3552
|
+
__jsii_type__: typing.ClassVar[str] = "aws-cdk-lib.aws_lightsail.IDiskSnapshotRef"
|
|
3553
|
+
|
|
3554
|
+
@builtins.property
|
|
3555
|
+
@jsii.member(jsii_name="diskSnapshotRef")
|
|
3556
|
+
def disk_snapshot_ref(self) -> DiskSnapshotReference:
|
|
3557
|
+
'''(experimental) A reference to a DiskSnapshot resource.
|
|
3558
|
+
|
|
3559
|
+
:stability: experimental
|
|
3560
|
+
'''
|
|
3561
|
+
return typing.cast(DiskSnapshotReference, jsii.get(self, "diskSnapshotRef"))
|
|
3562
|
+
|
|
3563
|
+
# Adding a "__jsii_proxy_class__(): typing.Type" function to the interface
|
|
3564
|
+
typing.cast(typing.Any, IDiskSnapshotRef).__jsii_proxy_class__ = lambda : _IDiskSnapshotRefProxy
|
|
3565
|
+
|
|
3566
|
+
|
|
3361
3567
|
@jsii.interface(jsii_type="aws-cdk-lib.aws_lightsail.IDistributionRef")
|
|
3362
3568
|
class IDistributionRef(_constructs_77d1e7e8.IConstruct, typing_extensions.Protocol):
|
|
3363
3569
|
'''(experimental) Indicates that this resource can be referenced as a Distribution.
|
|
@@ -7113,6 +7319,314 @@ class CfnDisk(
|
|
|
7113
7319
|
)
|
|
7114
7320
|
|
|
7115
7321
|
|
|
7322
|
+
@jsii.implements(_IInspectable_c2943556, IDiskSnapshotRef, _ITaggableV2_4e6798f8)
|
|
7323
|
+
class CfnDiskSnapshot(
|
|
7324
|
+
_CfnResource_9df397a6,
|
|
7325
|
+
metaclass=jsii.JSIIMeta,
|
|
7326
|
+
jsii_type="aws-cdk-lib.aws_lightsail.CfnDiskSnapshot",
|
|
7327
|
+
):
|
|
7328
|
+
'''Describes a block storage disk snapshot.
|
|
7329
|
+
|
|
7330
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-disksnapshot.html
|
|
7331
|
+
:cloudformationResource: AWS::Lightsail::DiskSnapshot
|
|
7332
|
+
:exampleMetadata: fixture=_generated
|
|
7333
|
+
|
|
7334
|
+
Example::
|
|
7335
|
+
|
|
7336
|
+
# The code below shows an example of how to instantiate this type.
|
|
7337
|
+
# The values are placeholders you should change.
|
|
7338
|
+
from aws_cdk import aws_lightsail as lightsail
|
|
7339
|
+
|
|
7340
|
+
cfn_disk_snapshot = lightsail.CfnDiskSnapshot(self, "MyCfnDiskSnapshot",
|
|
7341
|
+
disk_name="diskName",
|
|
7342
|
+
disk_snapshot_name="diskSnapshotName",
|
|
7343
|
+
|
|
7344
|
+
# the properties below are optional
|
|
7345
|
+
tags=[CfnTag(
|
|
7346
|
+
key="key",
|
|
7347
|
+
value="value"
|
|
7348
|
+
)]
|
|
7349
|
+
)
|
|
7350
|
+
'''
|
|
7351
|
+
|
|
7352
|
+
def __init__(
|
|
7353
|
+
self,
|
|
7354
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
7355
|
+
id: builtins.str,
|
|
7356
|
+
*,
|
|
7357
|
+
disk_name: builtins.str,
|
|
7358
|
+
disk_snapshot_name: builtins.str,
|
|
7359
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7360
|
+
) -> None:
|
|
7361
|
+
'''
|
|
7362
|
+
:param scope: Scope in which this resource is defined.
|
|
7363
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
7364
|
+
:param disk_name: The unique name of the disk.
|
|
7365
|
+
:param disk_snapshot_name: The name of the disk snapshot ( ``my-disk-snapshot`` ).
|
|
7366
|
+
:param tags: The tag keys and optional values for the resource. For more information about tags in Lightsail, see the `Amazon Lightsail Developer Guide <https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-tags>`_ .
|
|
7367
|
+
'''
|
|
7368
|
+
if __debug__:
|
|
7369
|
+
type_hints = typing.get_type_hints(_typecheckingstub__635e9a5f927b657b2b6980a2d21a19d4d6ef337bedbd026386a09593585a2419)
|
|
7370
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
7371
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
7372
|
+
props = CfnDiskSnapshotProps(
|
|
7373
|
+
disk_name=disk_name, disk_snapshot_name=disk_snapshot_name, tags=tags
|
|
7374
|
+
)
|
|
7375
|
+
|
|
7376
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
7377
|
+
|
|
7378
|
+
@jsii.member(jsii_name="inspect")
|
|
7379
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
7380
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
7381
|
+
|
|
7382
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
7383
|
+
'''
|
|
7384
|
+
if __debug__:
|
|
7385
|
+
type_hints = typing.get_type_hints(_typecheckingstub__04aab83a28e37e63c1b2e591b678f9b3cb34b471058c106321646e02dbd6677b)
|
|
7386
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
7387
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
7388
|
+
|
|
7389
|
+
@jsii.member(jsii_name="renderProperties")
|
|
7390
|
+
def _render_properties(
|
|
7391
|
+
self,
|
|
7392
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
7393
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
7394
|
+
'''
|
|
7395
|
+
:param props: -
|
|
7396
|
+
'''
|
|
7397
|
+
if __debug__:
|
|
7398
|
+
type_hints = typing.get_type_hints(_typecheckingstub__c914f1dd677dbf6ddbd3846df95651696795d109e5a6555fad7338b6a1fc858d)
|
|
7399
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
7400
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
7401
|
+
|
|
7402
|
+
@jsii.python.classproperty
|
|
7403
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
7404
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
7405
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
7406
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
7407
|
+
|
|
7408
|
+
@builtins.property
|
|
7409
|
+
@jsii.member(jsii_name="attrCreatedAt")
|
|
7410
|
+
def attr_created_at(self) -> builtins.str:
|
|
7411
|
+
'''The date when the disk snapshot was created.
|
|
7412
|
+
|
|
7413
|
+
:cloudformationAttribute: CreatedAt
|
|
7414
|
+
'''
|
|
7415
|
+
return typing.cast(builtins.str, jsii.get(self, "attrCreatedAt"))
|
|
7416
|
+
|
|
7417
|
+
@builtins.property
|
|
7418
|
+
@jsii.member(jsii_name="attrDiskSnapshotArn")
|
|
7419
|
+
def attr_disk_snapshot_arn(self) -> builtins.str:
|
|
7420
|
+
'''The Amazon Resource Name (ARN) of the disk snapshot.
|
|
7421
|
+
|
|
7422
|
+
:cloudformationAttribute: DiskSnapshotArn
|
|
7423
|
+
'''
|
|
7424
|
+
return typing.cast(builtins.str, jsii.get(self, "attrDiskSnapshotArn"))
|
|
7425
|
+
|
|
7426
|
+
@builtins.property
|
|
7427
|
+
@jsii.member(jsii_name="attrFromDiskName")
|
|
7428
|
+
def attr_from_disk_name(self) -> builtins.str:
|
|
7429
|
+
'''The unique name of the source disk from which the disk snapshot was created.
|
|
7430
|
+
|
|
7431
|
+
:cloudformationAttribute: FromDiskName
|
|
7432
|
+
'''
|
|
7433
|
+
return typing.cast(builtins.str, jsii.get(self, "attrFromDiskName"))
|
|
7434
|
+
|
|
7435
|
+
@builtins.property
|
|
7436
|
+
@jsii.member(jsii_name="attrIsFromAutoSnapshot")
|
|
7437
|
+
def attr_is_from_auto_snapshot(self) -> _IResolvable_da3f097b:
|
|
7438
|
+
'''A Boolean value indicating whether the snapshot was created from an automatic snapshot.
|
|
7439
|
+
|
|
7440
|
+
:cloudformationAttribute: IsFromAutoSnapshot
|
|
7441
|
+
'''
|
|
7442
|
+
return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrIsFromAutoSnapshot"))
|
|
7443
|
+
|
|
7444
|
+
@builtins.property
|
|
7445
|
+
@jsii.member(jsii_name="attrLocation")
|
|
7446
|
+
def attr_location(self) -> _IResolvable_da3f097b:
|
|
7447
|
+
'''The AWS Region and Availability Zone where the disk snapshot was created.
|
|
7448
|
+
|
|
7449
|
+
:cloudformationAttribute: Location
|
|
7450
|
+
'''
|
|
7451
|
+
return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrLocation"))
|
|
7452
|
+
|
|
7453
|
+
@builtins.property
|
|
7454
|
+
@jsii.member(jsii_name="attrProgress")
|
|
7455
|
+
def attr_progress(self) -> builtins.str:
|
|
7456
|
+
'''The progress of the snapshot.
|
|
7457
|
+
|
|
7458
|
+
:cloudformationAttribute: Progress
|
|
7459
|
+
'''
|
|
7460
|
+
return typing.cast(builtins.str, jsii.get(self, "attrProgress"))
|
|
7461
|
+
|
|
7462
|
+
@builtins.property
|
|
7463
|
+
@jsii.member(jsii_name="attrResourceType")
|
|
7464
|
+
def attr_resource_type(self) -> builtins.str:
|
|
7465
|
+
'''The Lightsail resource type ( ``DiskSnapshot`` ).
|
|
7466
|
+
|
|
7467
|
+
:cloudformationAttribute: ResourceType
|
|
7468
|
+
'''
|
|
7469
|
+
return typing.cast(builtins.str, jsii.get(self, "attrResourceType"))
|
|
7470
|
+
|
|
7471
|
+
@builtins.property
|
|
7472
|
+
@jsii.member(jsii_name="attrSizeInGb")
|
|
7473
|
+
def attr_size_in_gb(self) -> jsii.Number:
|
|
7474
|
+
'''The size of the disk in GB.
|
|
7475
|
+
|
|
7476
|
+
:cloudformationAttribute: SizeInGb
|
|
7477
|
+
'''
|
|
7478
|
+
return typing.cast(jsii.Number, jsii.get(self, "attrSizeInGb"))
|
|
7479
|
+
|
|
7480
|
+
@builtins.property
|
|
7481
|
+
@jsii.member(jsii_name="attrState")
|
|
7482
|
+
def attr_state(self) -> builtins.str:
|
|
7483
|
+
'''The status of the disk snapshot operation.
|
|
7484
|
+
|
|
7485
|
+
:cloudformationAttribute: State
|
|
7486
|
+
'''
|
|
7487
|
+
return typing.cast(builtins.str, jsii.get(self, "attrState"))
|
|
7488
|
+
|
|
7489
|
+
@builtins.property
|
|
7490
|
+
@jsii.member(jsii_name="attrSupportCode")
|
|
7491
|
+
def attr_support_code(self) -> builtins.str:
|
|
7492
|
+
'''The support code.
|
|
7493
|
+
|
|
7494
|
+
Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
|
|
7495
|
+
|
|
7496
|
+
:cloudformationAttribute: SupportCode
|
|
7497
|
+
'''
|
|
7498
|
+
return typing.cast(builtins.str, jsii.get(self, "attrSupportCode"))
|
|
7499
|
+
|
|
7500
|
+
@builtins.property
|
|
7501
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
7502
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
7503
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
7504
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
7505
|
+
|
|
7506
|
+
@builtins.property
|
|
7507
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
7508
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
7509
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
7510
|
+
|
|
7511
|
+
@builtins.property
|
|
7512
|
+
@jsii.member(jsii_name="diskSnapshotRef")
|
|
7513
|
+
def disk_snapshot_ref(self) -> DiskSnapshotReference:
|
|
7514
|
+
'''A reference to a DiskSnapshot resource.'''
|
|
7515
|
+
return typing.cast(DiskSnapshotReference, jsii.get(self, "diskSnapshotRef"))
|
|
7516
|
+
|
|
7517
|
+
@builtins.property
|
|
7518
|
+
@jsii.member(jsii_name="diskName")
|
|
7519
|
+
def disk_name(self) -> builtins.str:
|
|
7520
|
+
'''The unique name of the disk.'''
|
|
7521
|
+
return typing.cast(builtins.str, jsii.get(self, "diskName"))
|
|
7522
|
+
|
|
7523
|
+
@disk_name.setter
|
|
7524
|
+
def disk_name(self, value: builtins.str) -> None:
|
|
7525
|
+
if __debug__:
|
|
7526
|
+
type_hints = typing.get_type_hints(_typecheckingstub__861290cff23c7fe2934f1de7199f6b74624783a8bcd5b96cf38bbe3869d4b5e3)
|
|
7527
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
7528
|
+
jsii.set(self, "diskName", value) # pyright: ignore[reportArgumentType]
|
|
7529
|
+
|
|
7530
|
+
@builtins.property
|
|
7531
|
+
@jsii.member(jsii_name="diskSnapshotName")
|
|
7532
|
+
def disk_snapshot_name(self) -> builtins.str:
|
|
7533
|
+
'''The name of the disk snapshot ( ``my-disk-snapshot`` ).'''
|
|
7534
|
+
return typing.cast(builtins.str, jsii.get(self, "diskSnapshotName"))
|
|
7535
|
+
|
|
7536
|
+
@disk_snapshot_name.setter
|
|
7537
|
+
def disk_snapshot_name(self, value: builtins.str) -> None:
|
|
7538
|
+
if __debug__:
|
|
7539
|
+
type_hints = typing.get_type_hints(_typecheckingstub__53378ceb6c4f8b6e46e0dc66cd89c3bc1960a20639410376f56d1e5ec9cbf9eb)
|
|
7540
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
7541
|
+
jsii.set(self, "diskSnapshotName", value) # pyright: ignore[reportArgumentType]
|
|
7542
|
+
|
|
7543
|
+
@builtins.property
|
|
7544
|
+
@jsii.member(jsii_name="tags")
|
|
7545
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
7546
|
+
'''The tag keys and optional values for the resource.'''
|
|
7547
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
|
|
7548
|
+
|
|
7549
|
+
@tags.setter
|
|
7550
|
+
def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
|
|
7551
|
+
if __debug__:
|
|
7552
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9132cbc1b1f3a90290073917b7b4c55b2c748bfade6bc8f30bf990e4d617be32)
|
|
7553
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
7554
|
+
jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
|
|
7555
|
+
|
|
7556
|
+
@jsii.data_type(
|
|
7557
|
+
jsii_type="aws-cdk-lib.aws_lightsail.CfnDiskSnapshot.LocationProperty",
|
|
7558
|
+
jsii_struct_bases=[],
|
|
7559
|
+
name_mapping={
|
|
7560
|
+
"availability_zone": "availabilityZone",
|
|
7561
|
+
"region_name": "regionName",
|
|
7562
|
+
},
|
|
7563
|
+
)
|
|
7564
|
+
class LocationProperty:
|
|
7565
|
+
def __init__(
|
|
7566
|
+
self,
|
|
7567
|
+
*,
|
|
7568
|
+
availability_zone: typing.Optional[builtins.str] = None,
|
|
7569
|
+
region_name: typing.Optional[builtins.str] = None,
|
|
7570
|
+
) -> None:
|
|
7571
|
+
'''The AWS Region and Availability Zone where the disk snapshot was created.
|
|
7572
|
+
|
|
7573
|
+
:param availability_zone: The Availability Zone where the disk snapshot was created.
|
|
7574
|
+
:param region_name: The AWS Region where the disk snapshot was created.
|
|
7575
|
+
|
|
7576
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-disksnapshot-location.html
|
|
7577
|
+
:exampleMetadata: fixture=_generated
|
|
7578
|
+
|
|
7579
|
+
Example::
|
|
7580
|
+
|
|
7581
|
+
# The code below shows an example of how to instantiate this type.
|
|
7582
|
+
# The values are placeholders you should change.
|
|
7583
|
+
from aws_cdk import aws_lightsail as lightsail
|
|
7584
|
+
|
|
7585
|
+
location_property = lightsail.CfnDiskSnapshot.LocationProperty(
|
|
7586
|
+
availability_zone="availabilityZone",
|
|
7587
|
+
region_name="regionName"
|
|
7588
|
+
)
|
|
7589
|
+
'''
|
|
7590
|
+
if __debug__:
|
|
7591
|
+
type_hints = typing.get_type_hints(_typecheckingstub__fb7b13c4fd8a7881bacab9a4b8bcdc53a097639f681849e60b6f86c7094d1ddd)
|
|
7592
|
+
check_type(argname="argument availability_zone", value=availability_zone, expected_type=type_hints["availability_zone"])
|
|
7593
|
+
check_type(argname="argument region_name", value=region_name, expected_type=type_hints["region_name"])
|
|
7594
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
7595
|
+
if availability_zone is not None:
|
|
7596
|
+
self._values["availability_zone"] = availability_zone
|
|
7597
|
+
if region_name is not None:
|
|
7598
|
+
self._values["region_name"] = region_name
|
|
7599
|
+
|
|
7600
|
+
@builtins.property
|
|
7601
|
+
def availability_zone(self) -> typing.Optional[builtins.str]:
|
|
7602
|
+
'''The Availability Zone where the disk snapshot was created.
|
|
7603
|
+
|
|
7604
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-disksnapshot-location.html#cfn-lightsail-disksnapshot-location-availabilityzone
|
|
7605
|
+
'''
|
|
7606
|
+
result = self._values.get("availability_zone")
|
|
7607
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
7608
|
+
|
|
7609
|
+
@builtins.property
|
|
7610
|
+
def region_name(self) -> typing.Optional[builtins.str]:
|
|
7611
|
+
'''The AWS Region where the disk snapshot was created.
|
|
7612
|
+
|
|
7613
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-disksnapshot-location.html#cfn-lightsail-disksnapshot-location-regionname
|
|
7614
|
+
'''
|
|
7615
|
+
result = self._values.get("region_name")
|
|
7616
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
7617
|
+
|
|
7618
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
7619
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
7620
|
+
|
|
7621
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
7622
|
+
return not (rhs == self)
|
|
7623
|
+
|
|
7624
|
+
def __repr__(self) -> str:
|
|
7625
|
+
return "LocationProperty(%s)" % ", ".join(
|
|
7626
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
7627
|
+
)
|
|
7628
|
+
|
|
7629
|
+
|
|
7116
7630
|
@jsii.implements(_IInspectable_c2943556, IDistributionRef, _ITaggable_36806126)
|
|
7117
7631
|
class CfnDistribution(
|
|
7118
7632
|
_CfnResource_9df397a6,
|
|
@@ -11023,6 +11537,8 @@ __all__ = [
|
|
|
11023
11537
|
"CfnDatabaseProps",
|
|
11024
11538
|
"CfnDisk",
|
|
11025
11539
|
"CfnDiskProps",
|
|
11540
|
+
"CfnDiskSnapshot",
|
|
11541
|
+
"CfnDiskSnapshotProps",
|
|
11026
11542
|
"CfnDistribution",
|
|
11027
11543
|
"CfnDistributionProps",
|
|
11028
11544
|
"CfnDomain",
|
|
@@ -11040,6 +11556,7 @@ __all__ = [
|
|
|
11040
11556
|
"ContainerReference",
|
|
11041
11557
|
"DatabaseReference",
|
|
11042
11558
|
"DiskReference",
|
|
11559
|
+
"DiskSnapshotReference",
|
|
11043
11560
|
"DistributionReference",
|
|
11044
11561
|
"DomainReference",
|
|
11045
11562
|
"IAlarmRef",
|
|
@@ -11048,6 +11565,7 @@ __all__ = [
|
|
|
11048
11565
|
"IContainerRef",
|
|
11049
11566
|
"IDatabaseRef",
|
|
11050
11567
|
"IDiskRef",
|
|
11568
|
+
"IDiskSnapshotRef",
|
|
11051
11569
|
"IDistributionRef",
|
|
11052
11570
|
"IDomainRef",
|
|
11053
11571
|
"IInstanceRef",
|
|
@@ -11175,6 +11693,15 @@ def _typecheckingstub__d095d2590ef382758292269648b2abe4a720c01c7094f3ff4555ad700
|
|
|
11175
11693
|
"""Type checking stubs"""
|
|
11176
11694
|
pass
|
|
11177
11695
|
|
|
11696
|
+
def _typecheckingstub__582cce25c17f9f8ae3141662afacdd9a112ca28a80ce71bc1e60dbdced5f5b83(
|
|
11697
|
+
*,
|
|
11698
|
+
disk_name: builtins.str,
|
|
11699
|
+
disk_snapshot_name: builtins.str,
|
|
11700
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
11701
|
+
) -> None:
|
|
11702
|
+
"""Type checking stubs"""
|
|
11703
|
+
pass
|
|
11704
|
+
|
|
11178
11705
|
def _typecheckingstub__5746be261e67458f872b406208009ddcf740c3277f27869ccbc24697bfb6d14c(
|
|
11179
11706
|
*,
|
|
11180
11707
|
bundle_id: builtins.str,
|
|
@@ -11286,6 +11813,14 @@ def _typecheckingstub__76ca852295739d44edcdb281ca58f4a67dfe12a39cffa6c82dc0c5a0f
|
|
|
11286
11813
|
"""Type checking stubs"""
|
|
11287
11814
|
pass
|
|
11288
11815
|
|
|
11816
|
+
def _typecheckingstub__35528b985666675fa216f8d2164f24930e657ecd0488c3148fa7312474fdbac6(
|
|
11817
|
+
*,
|
|
11818
|
+
disk_snapshot_arn: builtins.str,
|
|
11819
|
+
disk_snapshot_name: builtins.str,
|
|
11820
|
+
) -> None:
|
|
11821
|
+
"""Type checking stubs"""
|
|
11822
|
+
pass
|
|
11823
|
+
|
|
11289
11824
|
def _typecheckingstub__bee4f508d1a38949997625c6f14753fc8bb749671539b0b8b6858db5293d9af1(
|
|
11290
11825
|
*,
|
|
11291
11826
|
distribution_arn: builtins.str,
|
|
@@ -11945,6 +12480,55 @@ def _typecheckingstub__a7cd90525af9bd1ae5058a25d04444364be64fc46bff0d7ac63c54d5a
|
|
|
11945
12480
|
"""Type checking stubs"""
|
|
11946
12481
|
pass
|
|
11947
12482
|
|
|
12483
|
+
def _typecheckingstub__635e9a5f927b657b2b6980a2d21a19d4d6ef337bedbd026386a09593585a2419(
|
|
12484
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
12485
|
+
id: builtins.str,
|
|
12486
|
+
*,
|
|
12487
|
+
disk_name: builtins.str,
|
|
12488
|
+
disk_snapshot_name: builtins.str,
|
|
12489
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
12490
|
+
) -> None:
|
|
12491
|
+
"""Type checking stubs"""
|
|
12492
|
+
pass
|
|
12493
|
+
|
|
12494
|
+
def _typecheckingstub__04aab83a28e37e63c1b2e591b678f9b3cb34b471058c106321646e02dbd6677b(
|
|
12495
|
+
inspector: _TreeInspector_488e0dd5,
|
|
12496
|
+
) -> None:
|
|
12497
|
+
"""Type checking stubs"""
|
|
12498
|
+
pass
|
|
12499
|
+
|
|
12500
|
+
def _typecheckingstub__c914f1dd677dbf6ddbd3846df95651696795d109e5a6555fad7338b6a1fc858d(
|
|
12501
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
12502
|
+
) -> None:
|
|
12503
|
+
"""Type checking stubs"""
|
|
12504
|
+
pass
|
|
12505
|
+
|
|
12506
|
+
def _typecheckingstub__861290cff23c7fe2934f1de7199f6b74624783a8bcd5b96cf38bbe3869d4b5e3(
|
|
12507
|
+
value: builtins.str,
|
|
12508
|
+
) -> None:
|
|
12509
|
+
"""Type checking stubs"""
|
|
12510
|
+
pass
|
|
12511
|
+
|
|
12512
|
+
def _typecheckingstub__53378ceb6c4f8b6e46e0dc66cd89c3bc1960a20639410376f56d1e5ec9cbf9eb(
|
|
12513
|
+
value: builtins.str,
|
|
12514
|
+
) -> None:
|
|
12515
|
+
"""Type checking stubs"""
|
|
12516
|
+
pass
|
|
12517
|
+
|
|
12518
|
+
def _typecheckingstub__9132cbc1b1f3a90290073917b7b4c55b2c748bfade6bc8f30bf990e4d617be32(
|
|
12519
|
+
value: typing.Optional[typing.List[_CfnTag_f6864754]],
|
|
12520
|
+
) -> None:
|
|
12521
|
+
"""Type checking stubs"""
|
|
12522
|
+
pass
|
|
12523
|
+
|
|
12524
|
+
def _typecheckingstub__fb7b13c4fd8a7881bacab9a4b8bcdc53a097639f681849e60b6f86c7094d1ddd(
|
|
12525
|
+
*,
|
|
12526
|
+
availability_zone: typing.Optional[builtins.str] = None,
|
|
12527
|
+
region_name: typing.Optional[builtins.str] = None,
|
|
12528
|
+
) -> None:
|
|
12529
|
+
"""Type checking stubs"""
|
|
12530
|
+
pass
|
|
12531
|
+
|
|
11948
12532
|
def _typecheckingstub__9482ccb96453330c51f380a8c1e2e74f0c57b789e803cc41a6d1f7dcb6be11b9(
|
|
11949
12533
|
scope: _constructs_77d1e7e8.Construct,
|
|
11950
12534
|
id: builtins.str,
|