aws-cdk-lib 2.199.0__py3-none-any.whl → 2.200.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 +22 -24
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.199.0.jsii.tgz → aws-cdk-lib@2.200.1.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +1 -1
- aws_cdk/aws_apigateway/__init__.py +1 -1
- aws_cdk/aws_applicationautoscaling/__init__.py +4 -4
- aws_cdk/aws_aps/__init__.py +38 -30
- aws_cdk/aws_autoscaling/__init__.py +4 -4
- aws_cdk/aws_bedrock/__init__.py +73 -48
- aws_cdk/aws_cloudformation/__init__.py +17 -23
- aws_cdk/aws_cloudfront_origins/__init__.py +1 -1
- aws_cdk/aws_cloudtrail/__init__.py +4 -4
- aws_cdk/aws_cloudwatch/__init__.py +50 -1
- aws_cdk/aws_codebuild/__init__.py +116 -0
- aws_cdk/aws_datazone/__init__.py +699 -9
- aws_cdk/aws_deadline/__init__.py +38 -10
- aws_cdk/aws_ec2/__init__.py +78 -20
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +7 -7
- aws_cdk/aws_emr/__init__.py +36 -2
- aws_cdk/aws_fsx/__init__.py +122 -0
- aws_cdk/aws_glue/__init__.py +55 -26
- aws_cdk/aws_iam/__init__.py +376 -2
- aws_cdk/aws_iot/__init__.py +57 -5
- aws_cdk/aws_kinesisfirehose/__init__.py +5 -1
- aws_cdk/aws_lambda/__init__.py +65 -45
- aws_cdk/aws_lex/__init__.py +27 -13
- aws_cdk/aws_lightsail/__init__.py +452 -0
- aws_cdk/aws_medialive/__init__.py +699 -497
- aws_cdk/aws_msk/__init__.py +4 -4
- aws_cdk/aws_networkfirewall/__init__.py +9 -5
- aws_cdk/aws_nimblestudio/__init__.py +208 -400
- aws_cdk/aws_panorama/__init__.py +30 -3
- aws_cdk/aws_pcs/__init__.py +12 -5
- aws_cdk/aws_rds/__init__.py +22 -10
- aws_cdk/aws_s3/__init__.py +367 -6
- aws_cdk/aws_s3express/__init__.py +789 -0
- aws_cdk/aws_ses/__init__.py +300 -32
- aws_cdk/aws_sns_subscriptions/__init__.py +256 -1
- aws_cdk/aws_stepfunctions/__init__.py +55 -17
- aws_cdk/aws_synthetics/__init__.py +26 -16
- aws_cdk/aws_voiceid/__init__.py +13 -3
- aws_cdk/cloud_assembly_schema/__init__.py +137 -42
- aws_cdk/cx_api/__init__.py +7 -7
- {aws_cdk_lib-2.199.0.dist-info → aws_cdk_lib-2.200.1.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.199.0.dist-info → aws_cdk_lib-2.200.1.dist-info}/RECORD +49 -49
- {aws_cdk_lib-2.199.0.dist-info → aws_cdk_lib-2.200.1.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.199.0.dist-info → aws_cdk_lib-2.200.1.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.199.0.dist-info → aws_cdk_lib-2.200.1.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.199.0.dist-info → aws_cdk_lib-2.200.1.dist-info}/top_level.txt +0 -0
|
@@ -64,6 +64,7 @@ from .. import (
|
|
|
64
64
|
IInspectable as _IInspectable_c2943556,
|
|
65
65
|
IResolvable as _IResolvable_da3f097b,
|
|
66
66
|
ITaggable as _ITaggable_36806126,
|
|
67
|
+
ITaggableV2 as _ITaggableV2_4e6798f8,
|
|
67
68
|
TagManager as _TagManager_0a598cb3,
|
|
68
69
|
TreeInspector as _TreeInspector_488e0dd5,
|
|
69
70
|
)
|
|
@@ -7573,6 +7574,397 @@ class CfnInstanceProps:
|
|
|
7573
7574
|
)
|
|
7574
7575
|
|
|
7575
7576
|
|
|
7577
|
+
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
7578
|
+
class CfnInstanceSnapshot(
|
|
7579
|
+
_CfnResource_9df397a6,
|
|
7580
|
+
metaclass=jsii.JSIIMeta,
|
|
7581
|
+
jsii_type="aws-cdk-lib.aws_lightsail.CfnInstanceSnapshot",
|
|
7582
|
+
):
|
|
7583
|
+
'''Resource Type definition for AWS::Lightsail::InstanceSnapshot.
|
|
7584
|
+
|
|
7585
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-instancesnapshot.html
|
|
7586
|
+
:cloudformationResource: AWS::Lightsail::InstanceSnapshot
|
|
7587
|
+
:exampleMetadata: fixture=_generated
|
|
7588
|
+
|
|
7589
|
+
Example::
|
|
7590
|
+
|
|
7591
|
+
# The code below shows an example of how to instantiate this type.
|
|
7592
|
+
# The values are placeholders you should change.
|
|
7593
|
+
from aws_cdk import aws_lightsail as lightsail
|
|
7594
|
+
|
|
7595
|
+
cfn_instance_snapshot = lightsail.CfnInstanceSnapshot(self, "MyCfnInstanceSnapshot",
|
|
7596
|
+
instance_name="instanceName",
|
|
7597
|
+
instance_snapshot_name="instanceSnapshotName",
|
|
7598
|
+
|
|
7599
|
+
# the properties below are optional
|
|
7600
|
+
tags=[CfnTag(
|
|
7601
|
+
key="key",
|
|
7602
|
+
value="value"
|
|
7603
|
+
)]
|
|
7604
|
+
)
|
|
7605
|
+
'''
|
|
7606
|
+
|
|
7607
|
+
def __init__(
|
|
7608
|
+
self,
|
|
7609
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
7610
|
+
id: builtins.str,
|
|
7611
|
+
*,
|
|
7612
|
+
instance_name: builtins.str,
|
|
7613
|
+
instance_snapshot_name: builtins.str,
|
|
7614
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7615
|
+
) -> None:
|
|
7616
|
+
'''
|
|
7617
|
+
:param scope: Scope in which this resource is defined.
|
|
7618
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
7619
|
+
:param instance_name: The instance from which the snapshot was created.
|
|
7620
|
+
:param instance_snapshot_name: The name of the snapshot.
|
|
7621
|
+
:param tags: An array of key-value pairs to apply to this resource.
|
|
7622
|
+
'''
|
|
7623
|
+
if __debug__:
|
|
7624
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b541a8ae34465f7b9196a2ba229a1f5fd9a1a2d84c59e0a52b4bb8767067a951)
|
|
7625
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
7626
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
7627
|
+
props = CfnInstanceSnapshotProps(
|
|
7628
|
+
instance_name=instance_name,
|
|
7629
|
+
instance_snapshot_name=instance_snapshot_name,
|
|
7630
|
+
tags=tags,
|
|
7631
|
+
)
|
|
7632
|
+
|
|
7633
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
7634
|
+
|
|
7635
|
+
@jsii.member(jsii_name="inspect")
|
|
7636
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
7637
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
7638
|
+
|
|
7639
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
7640
|
+
'''
|
|
7641
|
+
if __debug__:
|
|
7642
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a49419df28b40d6b77fd339d87e736dc724796cbd17301bcdb9351d9f3dcbdbb)
|
|
7643
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
7644
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
7645
|
+
|
|
7646
|
+
@jsii.member(jsii_name="renderProperties")
|
|
7647
|
+
def _render_properties(
|
|
7648
|
+
self,
|
|
7649
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
7650
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
7651
|
+
'''
|
|
7652
|
+
:param props: -
|
|
7653
|
+
'''
|
|
7654
|
+
if __debug__:
|
|
7655
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9310355d031e13cb9c451c86cb27b746770add7da4615651c65012e37f59080c)
|
|
7656
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
7657
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
7658
|
+
|
|
7659
|
+
@jsii.python.classproperty
|
|
7660
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
7661
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
7662
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
7663
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
7664
|
+
|
|
7665
|
+
@builtins.property
|
|
7666
|
+
@jsii.member(jsii_name="attrArn")
|
|
7667
|
+
def attr_arn(self) -> builtins.str:
|
|
7668
|
+
'''The Amazon Resource Name (ARN) of the snapshot.
|
|
7669
|
+
|
|
7670
|
+
:cloudformationAttribute: Arn
|
|
7671
|
+
'''
|
|
7672
|
+
return typing.cast(builtins.str, jsii.get(self, "attrArn"))
|
|
7673
|
+
|
|
7674
|
+
@builtins.property
|
|
7675
|
+
@jsii.member(jsii_name="attrFromInstanceArn")
|
|
7676
|
+
def attr_from_instance_arn(self) -> builtins.str:
|
|
7677
|
+
'''The Amazon Resource Name (ARN) of the instance from which the snapshot was created.
|
|
7678
|
+
|
|
7679
|
+
:cloudformationAttribute: FromInstanceArn
|
|
7680
|
+
'''
|
|
7681
|
+
return typing.cast(builtins.str, jsii.get(self, "attrFromInstanceArn"))
|
|
7682
|
+
|
|
7683
|
+
@builtins.property
|
|
7684
|
+
@jsii.member(jsii_name="attrFromInstanceName")
|
|
7685
|
+
def attr_from_instance_name(self) -> builtins.str:
|
|
7686
|
+
'''The instance from which the snapshot was created.
|
|
7687
|
+
|
|
7688
|
+
:cloudformationAttribute: FromInstanceName
|
|
7689
|
+
'''
|
|
7690
|
+
return typing.cast(builtins.str, jsii.get(self, "attrFromInstanceName"))
|
|
7691
|
+
|
|
7692
|
+
@builtins.property
|
|
7693
|
+
@jsii.member(jsii_name="attrIsFromAutoSnapshot")
|
|
7694
|
+
def attr_is_from_auto_snapshot(self) -> _IResolvable_da3f097b:
|
|
7695
|
+
'''A Boolean value indicating whether the snapshot was created from an automatic snapshot.
|
|
7696
|
+
|
|
7697
|
+
:cloudformationAttribute: IsFromAutoSnapshot
|
|
7698
|
+
'''
|
|
7699
|
+
return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrIsFromAutoSnapshot"))
|
|
7700
|
+
|
|
7701
|
+
@builtins.property
|
|
7702
|
+
@jsii.member(jsii_name="attrLocation")
|
|
7703
|
+
def attr_location(self) -> _IResolvable_da3f097b:
|
|
7704
|
+
'''The region name and Availability Zone where you created the snapshot.
|
|
7705
|
+
|
|
7706
|
+
:cloudformationAttribute: Location
|
|
7707
|
+
'''
|
|
7708
|
+
return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrLocation"))
|
|
7709
|
+
|
|
7710
|
+
@builtins.property
|
|
7711
|
+
@jsii.member(jsii_name="attrResourceType")
|
|
7712
|
+
def attr_resource_type(self) -> builtins.str:
|
|
7713
|
+
'''The type of resource (usually InstanceSnapshot).
|
|
7714
|
+
|
|
7715
|
+
:cloudformationAttribute: ResourceType
|
|
7716
|
+
'''
|
|
7717
|
+
return typing.cast(builtins.str, jsii.get(self, "attrResourceType"))
|
|
7718
|
+
|
|
7719
|
+
@builtins.property
|
|
7720
|
+
@jsii.member(jsii_name="attrSizeInGb")
|
|
7721
|
+
def attr_size_in_gb(self) -> jsii.Number:
|
|
7722
|
+
'''The size in GB of the SSD.
|
|
7723
|
+
|
|
7724
|
+
:cloudformationAttribute: SizeInGb
|
|
7725
|
+
'''
|
|
7726
|
+
return typing.cast(jsii.Number, jsii.get(self, "attrSizeInGb"))
|
|
7727
|
+
|
|
7728
|
+
@builtins.property
|
|
7729
|
+
@jsii.member(jsii_name="attrState")
|
|
7730
|
+
def attr_state(self) -> builtins.str:
|
|
7731
|
+
'''The state the snapshot is in.
|
|
7732
|
+
|
|
7733
|
+
:cloudformationAttribute: State
|
|
7734
|
+
'''
|
|
7735
|
+
return typing.cast(builtins.str, jsii.get(self, "attrState"))
|
|
7736
|
+
|
|
7737
|
+
@builtins.property
|
|
7738
|
+
@jsii.member(jsii_name="attrSupportCode")
|
|
7739
|
+
def attr_support_code(self) -> builtins.str:
|
|
7740
|
+
'''Support code to help identify any issues.
|
|
7741
|
+
|
|
7742
|
+
:cloudformationAttribute: SupportCode
|
|
7743
|
+
'''
|
|
7744
|
+
return typing.cast(builtins.str, jsii.get(self, "attrSupportCode"))
|
|
7745
|
+
|
|
7746
|
+
@builtins.property
|
|
7747
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
7748
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
7749
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
7750
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
7751
|
+
|
|
7752
|
+
@builtins.property
|
|
7753
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
7754
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
7755
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
7756
|
+
|
|
7757
|
+
@builtins.property
|
|
7758
|
+
@jsii.member(jsii_name="instanceName")
|
|
7759
|
+
def instance_name(self) -> builtins.str:
|
|
7760
|
+
'''The instance from which the snapshot was created.'''
|
|
7761
|
+
return typing.cast(builtins.str, jsii.get(self, "instanceName"))
|
|
7762
|
+
|
|
7763
|
+
@instance_name.setter
|
|
7764
|
+
def instance_name(self, value: builtins.str) -> None:
|
|
7765
|
+
if __debug__:
|
|
7766
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f182c58b9768c3025ae4f374f99fa56b5842772f231e2f3a51361d5281391f84)
|
|
7767
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
7768
|
+
jsii.set(self, "instanceName", value) # pyright: ignore[reportArgumentType]
|
|
7769
|
+
|
|
7770
|
+
@builtins.property
|
|
7771
|
+
@jsii.member(jsii_name="instanceSnapshotName")
|
|
7772
|
+
def instance_snapshot_name(self) -> builtins.str:
|
|
7773
|
+
'''The name of the snapshot.'''
|
|
7774
|
+
return typing.cast(builtins.str, jsii.get(self, "instanceSnapshotName"))
|
|
7775
|
+
|
|
7776
|
+
@instance_snapshot_name.setter
|
|
7777
|
+
def instance_snapshot_name(self, value: builtins.str) -> None:
|
|
7778
|
+
if __debug__:
|
|
7779
|
+
type_hints = typing.get_type_hints(_typecheckingstub__3db3088324a00c846eb2b2e4b45c6b74eb4a3fb6c5e40737da6265bddb536808)
|
|
7780
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
7781
|
+
jsii.set(self, "instanceSnapshotName", value) # pyright: ignore[reportArgumentType]
|
|
7782
|
+
|
|
7783
|
+
@builtins.property
|
|
7784
|
+
@jsii.member(jsii_name="tags")
|
|
7785
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
7786
|
+
'''An array of key-value pairs to apply to this resource.'''
|
|
7787
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
|
|
7788
|
+
|
|
7789
|
+
@tags.setter
|
|
7790
|
+
def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
|
|
7791
|
+
if __debug__:
|
|
7792
|
+
type_hints = typing.get_type_hints(_typecheckingstub__898443da7c4202ed939a55cb32add087c6d691980a2787732cd68cb7696ab8cd)
|
|
7793
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
7794
|
+
jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
|
|
7795
|
+
|
|
7796
|
+
@jsii.data_type(
|
|
7797
|
+
jsii_type="aws-cdk-lib.aws_lightsail.CfnInstanceSnapshot.LocationProperty",
|
|
7798
|
+
jsii_struct_bases=[],
|
|
7799
|
+
name_mapping={
|
|
7800
|
+
"availability_zone": "availabilityZone",
|
|
7801
|
+
"region_name": "regionName",
|
|
7802
|
+
},
|
|
7803
|
+
)
|
|
7804
|
+
class LocationProperty:
|
|
7805
|
+
def __init__(
|
|
7806
|
+
self,
|
|
7807
|
+
*,
|
|
7808
|
+
availability_zone: typing.Optional[builtins.str] = None,
|
|
7809
|
+
region_name: typing.Optional[builtins.str] = None,
|
|
7810
|
+
) -> None:
|
|
7811
|
+
'''The region name and Availability Zone where you created the snapshot.
|
|
7812
|
+
|
|
7813
|
+
:param availability_zone: The Availability Zone. Follows the format us-east-2a (case-sensitive).
|
|
7814
|
+
:param region_name: The AWS Region name.
|
|
7815
|
+
|
|
7816
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-instancesnapshot-location.html
|
|
7817
|
+
:exampleMetadata: fixture=_generated
|
|
7818
|
+
|
|
7819
|
+
Example::
|
|
7820
|
+
|
|
7821
|
+
# The code below shows an example of how to instantiate this type.
|
|
7822
|
+
# The values are placeholders you should change.
|
|
7823
|
+
from aws_cdk import aws_lightsail as lightsail
|
|
7824
|
+
|
|
7825
|
+
location_property = lightsail.CfnInstanceSnapshot.LocationProperty(
|
|
7826
|
+
availability_zone="availabilityZone",
|
|
7827
|
+
region_name="regionName"
|
|
7828
|
+
)
|
|
7829
|
+
'''
|
|
7830
|
+
if __debug__:
|
|
7831
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f46e9834c52c5af7d189618902998c954f5c27585b135d66160e3fe5f6f371c5)
|
|
7832
|
+
check_type(argname="argument availability_zone", value=availability_zone, expected_type=type_hints["availability_zone"])
|
|
7833
|
+
check_type(argname="argument region_name", value=region_name, expected_type=type_hints["region_name"])
|
|
7834
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
7835
|
+
if availability_zone is not None:
|
|
7836
|
+
self._values["availability_zone"] = availability_zone
|
|
7837
|
+
if region_name is not None:
|
|
7838
|
+
self._values["region_name"] = region_name
|
|
7839
|
+
|
|
7840
|
+
@builtins.property
|
|
7841
|
+
def availability_zone(self) -> typing.Optional[builtins.str]:
|
|
7842
|
+
'''The Availability Zone.
|
|
7843
|
+
|
|
7844
|
+
Follows the format us-east-2a (case-sensitive).
|
|
7845
|
+
|
|
7846
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-instancesnapshot-location.html#cfn-lightsail-instancesnapshot-location-availabilityzone
|
|
7847
|
+
'''
|
|
7848
|
+
result = self._values.get("availability_zone")
|
|
7849
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
7850
|
+
|
|
7851
|
+
@builtins.property
|
|
7852
|
+
def region_name(self) -> typing.Optional[builtins.str]:
|
|
7853
|
+
'''The AWS Region name.
|
|
7854
|
+
|
|
7855
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-instancesnapshot-location.html#cfn-lightsail-instancesnapshot-location-regionname
|
|
7856
|
+
'''
|
|
7857
|
+
result = self._values.get("region_name")
|
|
7858
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
7859
|
+
|
|
7860
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
7861
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
7862
|
+
|
|
7863
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
7864
|
+
return not (rhs == self)
|
|
7865
|
+
|
|
7866
|
+
def __repr__(self) -> str:
|
|
7867
|
+
return "LocationProperty(%s)" % ", ".join(
|
|
7868
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
7869
|
+
)
|
|
7870
|
+
|
|
7871
|
+
|
|
7872
|
+
@jsii.data_type(
|
|
7873
|
+
jsii_type="aws-cdk-lib.aws_lightsail.CfnInstanceSnapshotProps",
|
|
7874
|
+
jsii_struct_bases=[],
|
|
7875
|
+
name_mapping={
|
|
7876
|
+
"instance_name": "instanceName",
|
|
7877
|
+
"instance_snapshot_name": "instanceSnapshotName",
|
|
7878
|
+
"tags": "tags",
|
|
7879
|
+
},
|
|
7880
|
+
)
|
|
7881
|
+
class CfnInstanceSnapshotProps:
|
|
7882
|
+
def __init__(
|
|
7883
|
+
self,
|
|
7884
|
+
*,
|
|
7885
|
+
instance_name: builtins.str,
|
|
7886
|
+
instance_snapshot_name: builtins.str,
|
|
7887
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7888
|
+
) -> None:
|
|
7889
|
+
'''Properties for defining a ``CfnInstanceSnapshot``.
|
|
7890
|
+
|
|
7891
|
+
:param instance_name: The instance from which the snapshot was created.
|
|
7892
|
+
:param instance_snapshot_name: The name of the snapshot.
|
|
7893
|
+
:param tags: An array of key-value pairs to apply to this resource.
|
|
7894
|
+
|
|
7895
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-instancesnapshot.html
|
|
7896
|
+
:exampleMetadata: fixture=_generated
|
|
7897
|
+
|
|
7898
|
+
Example::
|
|
7899
|
+
|
|
7900
|
+
# The code below shows an example of how to instantiate this type.
|
|
7901
|
+
# The values are placeholders you should change.
|
|
7902
|
+
from aws_cdk import aws_lightsail as lightsail
|
|
7903
|
+
|
|
7904
|
+
cfn_instance_snapshot_props = lightsail.CfnInstanceSnapshotProps(
|
|
7905
|
+
instance_name="instanceName",
|
|
7906
|
+
instance_snapshot_name="instanceSnapshotName",
|
|
7907
|
+
|
|
7908
|
+
# the properties below are optional
|
|
7909
|
+
tags=[CfnTag(
|
|
7910
|
+
key="key",
|
|
7911
|
+
value="value"
|
|
7912
|
+
)]
|
|
7913
|
+
)
|
|
7914
|
+
'''
|
|
7915
|
+
if __debug__:
|
|
7916
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6f1052e16aac1d4fd5f262850ea34d03d3d58f217a43f29522c8119d4bfc0a27)
|
|
7917
|
+
check_type(argname="argument instance_name", value=instance_name, expected_type=type_hints["instance_name"])
|
|
7918
|
+
check_type(argname="argument instance_snapshot_name", value=instance_snapshot_name, expected_type=type_hints["instance_snapshot_name"])
|
|
7919
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
7920
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
7921
|
+
"instance_name": instance_name,
|
|
7922
|
+
"instance_snapshot_name": instance_snapshot_name,
|
|
7923
|
+
}
|
|
7924
|
+
if tags is not None:
|
|
7925
|
+
self._values["tags"] = tags
|
|
7926
|
+
|
|
7927
|
+
@builtins.property
|
|
7928
|
+
def instance_name(self) -> builtins.str:
|
|
7929
|
+
'''The instance from which the snapshot was created.
|
|
7930
|
+
|
|
7931
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-instancesnapshot.html#cfn-lightsail-instancesnapshot-instancename
|
|
7932
|
+
'''
|
|
7933
|
+
result = self._values.get("instance_name")
|
|
7934
|
+
assert result is not None, "Required property 'instance_name' is missing"
|
|
7935
|
+
return typing.cast(builtins.str, result)
|
|
7936
|
+
|
|
7937
|
+
@builtins.property
|
|
7938
|
+
def instance_snapshot_name(self) -> builtins.str:
|
|
7939
|
+
'''The name of the snapshot.
|
|
7940
|
+
|
|
7941
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-instancesnapshot.html#cfn-lightsail-instancesnapshot-instancesnapshotname
|
|
7942
|
+
'''
|
|
7943
|
+
result = self._values.get("instance_snapshot_name")
|
|
7944
|
+
assert result is not None, "Required property 'instance_snapshot_name' is missing"
|
|
7945
|
+
return typing.cast(builtins.str, result)
|
|
7946
|
+
|
|
7947
|
+
@builtins.property
|
|
7948
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
7949
|
+
'''An array of key-value pairs to apply to this resource.
|
|
7950
|
+
|
|
7951
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-instancesnapshot.html#cfn-lightsail-instancesnapshot-tags
|
|
7952
|
+
'''
|
|
7953
|
+
result = self._values.get("tags")
|
|
7954
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
7955
|
+
|
|
7956
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
7957
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
7958
|
+
|
|
7959
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
7960
|
+
return not (rhs == self)
|
|
7961
|
+
|
|
7962
|
+
def __repr__(self) -> str:
|
|
7963
|
+
return "CfnInstanceSnapshotProps(%s)" % ", ".join(
|
|
7964
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
7965
|
+
)
|
|
7966
|
+
|
|
7967
|
+
|
|
7576
7968
|
@jsii.implements(_IInspectable_c2943556, _ITaggable_36806126)
|
|
7577
7969
|
class CfnLoadBalancer(
|
|
7578
7970
|
_CfnResource_9df397a6,
|
|
@@ -8648,6 +9040,8 @@ __all__ = [
|
|
|
8648
9040
|
"CfnDistributionProps",
|
|
8649
9041
|
"CfnInstance",
|
|
8650
9042
|
"CfnInstanceProps",
|
|
9043
|
+
"CfnInstanceSnapshot",
|
|
9044
|
+
"CfnInstanceSnapshotProps",
|
|
8651
9045
|
"CfnLoadBalancer",
|
|
8652
9046
|
"CfnLoadBalancerProps",
|
|
8653
9047
|
"CfnLoadBalancerTlsCertificate",
|
|
@@ -9722,6 +10116,64 @@ def _typecheckingstub__6e0def276816b17135efe655ecd6a1a965ddb59099e6f411660bf2c2e
|
|
|
9722
10116
|
"""Type checking stubs"""
|
|
9723
10117
|
pass
|
|
9724
10118
|
|
|
10119
|
+
def _typecheckingstub__b541a8ae34465f7b9196a2ba229a1f5fd9a1a2d84c59e0a52b4bb8767067a951(
|
|
10120
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
10121
|
+
id: builtins.str,
|
|
10122
|
+
*,
|
|
10123
|
+
instance_name: builtins.str,
|
|
10124
|
+
instance_snapshot_name: builtins.str,
|
|
10125
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10126
|
+
) -> None:
|
|
10127
|
+
"""Type checking stubs"""
|
|
10128
|
+
pass
|
|
10129
|
+
|
|
10130
|
+
def _typecheckingstub__a49419df28b40d6b77fd339d87e736dc724796cbd17301bcdb9351d9f3dcbdbb(
|
|
10131
|
+
inspector: _TreeInspector_488e0dd5,
|
|
10132
|
+
) -> None:
|
|
10133
|
+
"""Type checking stubs"""
|
|
10134
|
+
pass
|
|
10135
|
+
|
|
10136
|
+
def _typecheckingstub__9310355d031e13cb9c451c86cb27b746770add7da4615651c65012e37f59080c(
|
|
10137
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
10138
|
+
) -> None:
|
|
10139
|
+
"""Type checking stubs"""
|
|
10140
|
+
pass
|
|
10141
|
+
|
|
10142
|
+
def _typecheckingstub__f182c58b9768c3025ae4f374f99fa56b5842772f231e2f3a51361d5281391f84(
|
|
10143
|
+
value: builtins.str,
|
|
10144
|
+
) -> None:
|
|
10145
|
+
"""Type checking stubs"""
|
|
10146
|
+
pass
|
|
10147
|
+
|
|
10148
|
+
def _typecheckingstub__3db3088324a00c846eb2b2e4b45c6b74eb4a3fb6c5e40737da6265bddb536808(
|
|
10149
|
+
value: builtins.str,
|
|
10150
|
+
) -> None:
|
|
10151
|
+
"""Type checking stubs"""
|
|
10152
|
+
pass
|
|
10153
|
+
|
|
10154
|
+
def _typecheckingstub__898443da7c4202ed939a55cb32add087c6d691980a2787732cd68cb7696ab8cd(
|
|
10155
|
+
value: typing.Optional[typing.List[_CfnTag_f6864754]],
|
|
10156
|
+
) -> None:
|
|
10157
|
+
"""Type checking stubs"""
|
|
10158
|
+
pass
|
|
10159
|
+
|
|
10160
|
+
def _typecheckingstub__f46e9834c52c5af7d189618902998c954f5c27585b135d66160e3fe5f6f371c5(
|
|
10161
|
+
*,
|
|
10162
|
+
availability_zone: typing.Optional[builtins.str] = None,
|
|
10163
|
+
region_name: typing.Optional[builtins.str] = None,
|
|
10164
|
+
) -> None:
|
|
10165
|
+
"""Type checking stubs"""
|
|
10166
|
+
pass
|
|
10167
|
+
|
|
10168
|
+
def _typecheckingstub__6f1052e16aac1d4fd5f262850ea34d03d3d58f217a43f29522c8119d4bfc0a27(
|
|
10169
|
+
*,
|
|
10170
|
+
instance_name: builtins.str,
|
|
10171
|
+
instance_snapshot_name: builtins.str,
|
|
10172
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10173
|
+
) -> None:
|
|
10174
|
+
"""Type checking stubs"""
|
|
10175
|
+
pass
|
|
10176
|
+
|
|
9725
10177
|
def _typecheckingstub__7424f399a4c81195a3832bf4c1d53a1869a11a94a74f58e7efaf927f44364614(
|
|
9726
10178
|
scope: _constructs_77d1e7e8.Construct,
|
|
9727
10179
|
id: builtins.str,
|