aws-cdk-lib 2.137.0__py3-none-any.whl → 2.139.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.137.0.jsii.tgz → aws-cdk-lib@2.139.0.jsii.tgz} +0 -0
- aws_cdk/aws_amplify/__init__.py +29 -113
- aws_cdk/aws_apigateway/__init__.py +29 -16
- aws_cdk/aws_appconfig/__init__.py +315 -77
- aws_cdk/aws_appintegrations/__init__.py +55 -6
- aws_cdk/aws_apprunner/__init__.py +5 -2
- aws_cdk/aws_appsync/__init__.py +400 -13
- aws_cdk/aws_aps/__init__.py +64 -47
- aws_cdk/aws_autoscaling/__init__.py +62 -60
- aws_cdk/aws_b2bi/__init__.py +2 -6
- aws_cdk/aws_backup/__init__.py +53 -57
- aws_cdk/aws_batch/__init__.py +109 -0
- aws_cdk/aws_bcmdataexports/__init__.py +1114 -0
- aws_cdk/aws_bedrock/__init__.py +4144 -0
- aws_cdk/aws_chatbot/__init__.py +6 -4
- aws_cdk/aws_cleanrooms/__init__.py +526 -3
- aws_cdk/aws_cleanroomsml/__init__.py +960 -0
- aws_cdk/aws_cloudtrail/__init__.py +10 -10
- aws_cdk/aws_cloudwatch/__init__.py +244 -8
- aws_cdk/aws_codebuild/__init__.py +27 -22
- aws_cdk/aws_codeconnections/__init__.py +435 -0
- aws_cdk/aws_cognito/__init__.py +175 -79
- aws_cdk/aws_datazone/__init__.py +22 -0
- aws_cdk/aws_deadline/__init__.py +5394 -0
- aws_cdk/aws_dms/__init__.py +2 -4
- aws_cdk/aws_ec2/__init__.py +402 -247
- aws_cdk/aws_ecr/__init__.py +630 -0
- aws_cdk/aws_ecs/__init__.py +361 -20
- aws_cdk/aws_efs/__init__.py +594 -2
- aws_cdk/aws_elasticache/__init__.py +86 -32
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +75 -10
- aws_cdk/aws_emr/__init__.py +2 -2
- aws_cdk/aws_entityresolution/__init__.py +1982 -773
- aws_cdk/aws_events_targets/__init__.py +17 -4
- aws_cdk/aws_globalaccelerator/__init__.py +443 -0
- aws_cdk/aws_iam/__init__.py +1 -2
- aws_cdk/aws_internetmonitor/__init__.py +14 -6
- aws_cdk/aws_ivs/__init__.py +1273 -71
- aws_cdk/aws_kms/__init__.py +44 -0
- aws_cdk/aws_lambda/__init__.py +9 -0
- aws_cdk/aws_mediatailor/__init__.py +41 -0
- aws_cdk/aws_oam/__init__.py +204 -0
- aws_cdk/aws_personalize/__init__.py +8 -6
- aws_cdk/aws_pinpoint/__init__.py +5 -3
- aws_cdk/aws_pipes/__init__.py +5 -1
- aws_cdk/aws_quicksight/__init__.py +12 -6
- aws_cdk/aws_rds/__init__.py +370 -96
- aws_cdk/aws_redshiftserverless/__init__.py +157 -0
- aws_cdk/aws_route53/__init__.py +587 -14
- aws_cdk/aws_sagemaker/__init__.py +233 -2
- aws_cdk/aws_securityhub/__init__.py +4940 -102
- aws_cdk/aws_securitylake/__init__.py +1326 -89
- aws_cdk/aws_ses_actions/__init__.py +155 -0
- aws_cdk/aws_sns/__init__.py +61 -4
- aws_cdk/aws_ssm/__init__.py +5 -2
- aws_cdk/aws_ssmcontacts/__init__.py +11 -4
- aws_cdk/aws_stepfunctions/__init__.py +8 -16
- aws_cdk/aws_stepfunctions_tasks/__init__.py +676 -1
- aws_cdk/aws_timestream/__init__.py +1045 -0
- aws_cdk/aws_transfer/__init__.py +19 -10
- aws_cdk/aws_verifiedpermissions/__init__.py +114 -37
- aws_cdk/aws_wisdom/__init__.py +2 -2
- aws_cdk/aws_workspacesthinclient/__init__.py +8 -8
- aws_cdk/custom_resources/__init__.py +688 -26
- aws_cdk/cx_api/__init__.py +17 -0
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/METADATA +3 -3
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/RECORD +73 -69
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_ivs/__init__.py
CHANGED
|
@@ -557,6 +557,383 @@ class CfnChannelProps:
|
|
|
557
557
|
)
|
|
558
558
|
|
|
559
559
|
|
|
560
|
+
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
561
|
+
class CfnEncoderConfiguration(
|
|
562
|
+
_CfnResource_9df397a6,
|
|
563
|
+
metaclass=jsii.JSIIMeta,
|
|
564
|
+
jsii_type="aws-cdk-lib.aws_ivs.CfnEncoderConfiguration",
|
|
565
|
+
):
|
|
566
|
+
'''The ``AWS::IVS::EncoderConfiguration`` resource specifies an encoder configuration.
|
|
567
|
+
|
|
568
|
+
An encoder configuration describes a stream’s video configuration. For more information, see `Streaming Configuration <https://docs.aws.amazon.com/ivs/latest/LowLatencyUserGuide/streaming-config.html>`_ in the *Amazon IVS Low-Latency Streaming User Guide* .
|
|
569
|
+
|
|
570
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-encoderconfiguration.html
|
|
571
|
+
:cloudformationResource: AWS::IVS::EncoderConfiguration
|
|
572
|
+
:exampleMetadata: fixture=_generated
|
|
573
|
+
|
|
574
|
+
Example::
|
|
575
|
+
|
|
576
|
+
# The code below shows an example of how to instantiate this type.
|
|
577
|
+
# The values are placeholders you should change.
|
|
578
|
+
from aws_cdk import aws_ivs as ivs
|
|
579
|
+
|
|
580
|
+
cfn_encoder_configuration = ivs.CfnEncoderConfiguration(self, "MyCfnEncoderConfiguration",
|
|
581
|
+
name="name",
|
|
582
|
+
tags=[CfnTag(
|
|
583
|
+
key="key",
|
|
584
|
+
value="value"
|
|
585
|
+
)],
|
|
586
|
+
video=ivs.CfnEncoderConfiguration.VideoProperty(
|
|
587
|
+
bitrate=123,
|
|
588
|
+
framerate=123,
|
|
589
|
+
height=123,
|
|
590
|
+
width=123
|
|
591
|
+
)
|
|
592
|
+
)
|
|
593
|
+
'''
|
|
594
|
+
|
|
595
|
+
def __init__(
|
|
596
|
+
self,
|
|
597
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
598
|
+
id: builtins.str,
|
|
599
|
+
*,
|
|
600
|
+
name: typing.Optional[builtins.str] = None,
|
|
601
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
602
|
+
video: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnEncoderConfiguration.VideoProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
603
|
+
) -> None:
|
|
604
|
+
'''
|
|
605
|
+
:param scope: Scope in which this resource is defined.
|
|
606
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
607
|
+
:param name: Encoder cnfiguration name.
|
|
608
|
+
:param tags: An array of key-value pairs to apply to this resource. For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-encoderconfiguration-tag.html>`_ .
|
|
609
|
+
:param video: Video configuration. Default: video resolution 1280x720, bitrate 2500 kbps, 30 fps. See the `Video <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-encoderconfiguration-video.html>`_ property type for more information.
|
|
610
|
+
'''
|
|
611
|
+
if __debug__:
|
|
612
|
+
type_hints = typing.get_type_hints(_typecheckingstub__0567625f957d978c482944a46fdbb2b7533ef9af0df4baffa7c6f443e004d9f9)
|
|
613
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
614
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
615
|
+
props = CfnEncoderConfigurationProps(name=name, tags=tags, video=video)
|
|
616
|
+
|
|
617
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
618
|
+
|
|
619
|
+
@jsii.member(jsii_name="inspect")
|
|
620
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
621
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
622
|
+
|
|
623
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
624
|
+
'''
|
|
625
|
+
if __debug__:
|
|
626
|
+
type_hints = typing.get_type_hints(_typecheckingstub__74f3191bc79bc285f7b8eefaf911f57a87950083af93a8ec3c39d61421b97b29)
|
|
627
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
628
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
629
|
+
|
|
630
|
+
@jsii.member(jsii_name="renderProperties")
|
|
631
|
+
def _render_properties(
|
|
632
|
+
self,
|
|
633
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
634
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
635
|
+
'''
|
|
636
|
+
:param props: -
|
|
637
|
+
'''
|
|
638
|
+
if __debug__:
|
|
639
|
+
type_hints = typing.get_type_hints(_typecheckingstub__5894ac5581a1dc1e629e1f66ec2014665b3f9227b553389ebce9188b817c4d61)
|
|
640
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
641
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
642
|
+
|
|
643
|
+
@jsii.python.classproperty
|
|
644
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
645
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
646
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
647
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
648
|
+
|
|
649
|
+
@builtins.property
|
|
650
|
+
@jsii.member(jsii_name="attrArn")
|
|
651
|
+
def attr_arn(self) -> builtins.str:
|
|
652
|
+
'''The encoder-configuration ARN.
|
|
653
|
+
|
|
654
|
+
For example: ``arn:aws:ivs:us-west-2:123456789012:encoder-configuration/abcdABCDefgh``
|
|
655
|
+
|
|
656
|
+
:cloudformationAttribute: Arn
|
|
657
|
+
'''
|
|
658
|
+
return typing.cast(builtins.str, jsii.get(self, "attrArn"))
|
|
659
|
+
|
|
660
|
+
@builtins.property
|
|
661
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
662
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
663
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
664
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
665
|
+
|
|
666
|
+
@builtins.property
|
|
667
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
668
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
669
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
670
|
+
|
|
671
|
+
@builtins.property
|
|
672
|
+
@jsii.member(jsii_name="name")
|
|
673
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
674
|
+
'''Encoder cnfiguration name.'''
|
|
675
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "name"))
|
|
676
|
+
|
|
677
|
+
@name.setter
|
|
678
|
+
def name(self, value: typing.Optional[builtins.str]) -> None:
|
|
679
|
+
if __debug__:
|
|
680
|
+
type_hints = typing.get_type_hints(_typecheckingstub__29237afd8a2086ac2e4d8c43148154a3bd8987f1c1e0ff26a989a10c5f072ba2)
|
|
681
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
682
|
+
jsii.set(self, "name", value)
|
|
683
|
+
|
|
684
|
+
@builtins.property
|
|
685
|
+
@jsii.member(jsii_name="tags")
|
|
686
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
687
|
+
'''An array of key-value pairs to apply to this resource.'''
|
|
688
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
|
|
689
|
+
|
|
690
|
+
@tags.setter
|
|
691
|
+
def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
|
|
692
|
+
if __debug__:
|
|
693
|
+
type_hints = typing.get_type_hints(_typecheckingstub__43c7ff5eb70740ddcbf72fae725c27870249dfb23fdbca3df5963221ac9c132f)
|
|
694
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
695
|
+
jsii.set(self, "tags", value)
|
|
696
|
+
|
|
697
|
+
@builtins.property
|
|
698
|
+
@jsii.member(jsii_name="video")
|
|
699
|
+
def video(
|
|
700
|
+
self,
|
|
701
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEncoderConfiguration.VideoProperty"]]:
|
|
702
|
+
'''Video configuration.'''
|
|
703
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEncoderConfiguration.VideoProperty"]], jsii.get(self, "video"))
|
|
704
|
+
|
|
705
|
+
@video.setter
|
|
706
|
+
def video(
|
|
707
|
+
self,
|
|
708
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEncoderConfiguration.VideoProperty"]],
|
|
709
|
+
) -> None:
|
|
710
|
+
if __debug__:
|
|
711
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f165a00a101e72d860585d7255e3d0ae733a51dcec3ea6dd3e616d27778b3415)
|
|
712
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
713
|
+
jsii.set(self, "video", value)
|
|
714
|
+
|
|
715
|
+
@jsii.data_type(
|
|
716
|
+
jsii_type="aws-cdk-lib.aws_ivs.CfnEncoderConfiguration.VideoProperty",
|
|
717
|
+
jsii_struct_bases=[],
|
|
718
|
+
name_mapping={
|
|
719
|
+
"bitrate": "bitrate",
|
|
720
|
+
"framerate": "framerate",
|
|
721
|
+
"height": "height",
|
|
722
|
+
"width": "width",
|
|
723
|
+
},
|
|
724
|
+
)
|
|
725
|
+
class VideoProperty:
|
|
726
|
+
def __init__(
|
|
727
|
+
self,
|
|
728
|
+
*,
|
|
729
|
+
bitrate: typing.Optional[jsii.Number] = None,
|
|
730
|
+
framerate: typing.Optional[jsii.Number] = None,
|
|
731
|
+
height: typing.Optional[jsii.Number] = None,
|
|
732
|
+
width: typing.Optional[jsii.Number] = None,
|
|
733
|
+
) -> None:
|
|
734
|
+
'''The Video property type describes a stream's video configuration.
|
|
735
|
+
|
|
736
|
+
:param bitrate: Bitrate for generated output, in bps. Default: 2500000. Default: - 2500000
|
|
737
|
+
:param framerate: Video frame rate, in fps. Default: 30. Default: - 30
|
|
738
|
+
:param height: Video-resolution height. Note that the maximum value is determined by width times height, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 720. Default: - 720
|
|
739
|
+
:param width: Video-resolution width. Note that the maximum value is determined by width times height, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 1280. Default: - 1280
|
|
740
|
+
|
|
741
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-encoderconfiguration-video.html
|
|
742
|
+
:exampleMetadata: fixture=_generated
|
|
743
|
+
|
|
744
|
+
Example::
|
|
745
|
+
|
|
746
|
+
# The code below shows an example of how to instantiate this type.
|
|
747
|
+
# The values are placeholders you should change.
|
|
748
|
+
from aws_cdk import aws_ivs as ivs
|
|
749
|
+
|
|
750
|
+
video_property = ivs.CfnEncoderConfiguration.VideoProperty(
|
|
751
|
+
bitrate=123,
|
|
752
|
+
framerate=123,
|
|
753
|
+
height=123,
|
|
754
|
+
width=123
|
|
755
|
+
)
|
|
756
|
+
'''
|
|
757
|
+
if __debug__:
|
|
758
|
+
type_hints = typing.get_type_hints(_typecheckingstub__34f2c1c7f794b153dbb8eef658c04b4e6467fa06e325f7b2c94dc782acbeab26)
|
|
759
|
+
check_type(argname="argument bitrate", value=bitrate, expected_type=type_hints["bitrate"])
|
|
760
|
+
check_type(argname="argument framerate", value=framerate, expected_type=type_hints["framerate"])
|
|
761
|
+
check_type(argname="argument height", value=height, expected_type=type_hints["height"])
|
|
762
|
+
check_type(argname="argument width", value=width, expected_type=type_hints["width"])
|
|
763
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
764
|
+
if bitrate is not None:
|
|
765
|
+
self._values["bitrate"] = bitrate
|
|
766
|
+
if framerate is not None:
|
|
767
|
+
self._values["framerate"] = framerate
|
|
768
|
+
if height is not None:
|
|
769
|
+
self._values["height"] = height
|
|
770
|
+
if width is not None:
|
|
771
|
+
self._values["width"] = width
|
|
772
|
+
|
|
773
|
+
@builtins.property
|
|
774
|
+
def bitrate(self) -> typing.Optional[jsii.Number]:
|
|
775
|
+
'''Bitrate for generated output, in bps.
|
|
776
|
+
|
|
777
|
+
Default: 2500000.
|
|
778
|
+
|
|
779
|
+
:default: - 2500000
|
|
780
|
+
|
|
781
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-encoderconfiguration-video.html#cfn-ivs-encoderconfiguration-video-bitrate
|
|
782
|
+
'''
|
|
783
|
+
result = self._values.get("bitrate")
|
|
784
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
785
|
+
|
|
786
|
+
@builtins.property
|
|
787
|
+
def framerate(self) -> typing.Optional[jsii.Number]:
|
|
788
|
+
'''Video frame rate, in fps.
|
|
789
|
+
|
|
790
|
+
Default: 30.
|
|
791
|
+
|
|
792
|
+
:default: - 30
|
|
793
|
+
|
|
794
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-encoderconfiguration-video.html#cfn-ivs-encoderconfiguration-video-framerate
|
|
795
|
+
'''
|
|
796
|
+
result = self._values.get("framerate")
|
|
797
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
798
|
+
|
|
799
|
+
@builtins.property
|
|
800
|
+
def height(self) -> typing.Optional[jsii.Number]:
|
|
801
|
+
'''Video-resolution height.
|
|
802
|
+
|
|
803
|
+
Note that the maximum value is determined by width times height, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 720.
|
|
804
|
+
|
|
805
|
+
:default: - 720
|
|
806
|
+
|
|
807
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-encoderconfiguration-video.html#cfn-ivs-encoderconfiguration-video-height
|
|
808
|
+
'''
|
|
809
|
+
result = self._values.get("height")
|
|
810
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
811
|
+
|
|
812
|
+
@builtins.property
|
|
813
|
+
def width(self) -> typing.Optional[jsii.Number]:
|
|
814
|
+
'''Video-resolution width.
|
|
815
|
+
|
|
816
|
+
Note that the maximum value is determined by width times height, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 1280.
|
|
817
|
+
|
|
818
|
+
:default: - 1280
|
|
819
|
+
|
|
820
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-encoderconfiguration-video.html#cfn-ivs-encoderconfiguration-video-width
|
|
821
|
+
'''
|
|
822
|
+
result = self._values.get("width")
|
|
823
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
824
|
+
|
|
825
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
826
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
827
|
+
|
|
828
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
829
|
+
return not (rhs == self)
|
|
830
|
+
|
|
831
|
+
def __repr__(self) -> str:
|
|
832
|
+
return "VideoProperty(%s)" % ", ".join(
|
|
833
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
834
|
+
)
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
@jsii.data_type(
|
|
838
|
+
jsii_type="aws-cdk-lib.aws_ivs.CfnEncoderConfigurationProps",
|
|
839
|
+
jsii_struct_bases=[],
|
|
840
|
+
name_mapping={"name": "name", "tags": "tags", "video": "video"},
|
|
841
|
+
)
|
|
842
|
+
class CfnEncoderConfigurationProps:
|
|
843
|
+
def __init__(
|
|
844
|
+
self,
|
|
845
|
+
*,
|
|
846
|
+
name: typing.Optional[builtins.str] = None,
|
|
847
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
848
|
+
video: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnEncoderConfiguration.VideoProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
849
|
+
) -> None:
|
|
850
|
+
'''Properties for defining a ``CfnEncoderConfiguration``.
|
|
851
|
+
|
|
852
|
+
:param name: Encoder cnfiguration name.
|
|
853
|
+
:param tags: An array of key-value pairs to apply to this resource. For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-encoderconfiguration-tag.html>`_ .
|
|
854
|
+
:param video: Video configuration. Default: video resolution 1280x720, bitrate 2500 kbps, 30 fps. See the `Video <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-encoderconfiguration-video.html>`_ property type for more information.
|
|
855
|
+
|
|
856
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-encoderconfiguration.html
|
|
857
|
+
:exampleMetadata: fixture=_generated
|
|
858
|
+
|
|
859
|
+
Example::
|
|
860
|
+
|
|
861
|
+
# The code below shows an example of how to instantiate this type.
|
|
862
|
+
# The values are placeholders you should change.
|
|
863
|
+
from aws_cdk import aws_ivs as ivs
|
|
864
|
+
|
|
865
|
+
cfn_encoder_configuration_props = ivs.CfnEncoderConfigurationProps(
|
|
866
|
+
name="name",
|
|
867
|
+
tags=[CfnTag(
|
|
868
|
+
key="key",
|
|
869
|
+
value="value"
|
|
870
|
+
)],
|
|
871
|
+
video=ivs.CfnEncoderConfiguration.VideoProperty(
|
|
872
|
+
bitrate=123,
|
|
873
|
+
framerate=123,
|
|
874
|
+
height=123,
|
|
875
|
+
width=123
|
|
876
|
+
)
|
|
877
|
+
)
|
|
878
|
+
'''
|
|
879
|
+
if __debug__:
|
|
880
|
+
type_hints = typing.get_type_hints(_typecheckingstub__663e73ad8dc18892ff8c6aa7cec15d284adf341fe58eeb580e68cff0a92ee161)
|
|
881
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
882
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
883
|
+
check_type(argname="argument video", value=video, expected_type=type_hints["video"])
|
|
884
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
885
|
+
if name is not None:
|
|
886
|
+
self._values["name"] = name
|
|
887
|
+
if tags is not None:
|
|
888
|
+
self._values["tags"] = tags
|
|
889
|
+
if video is not None:
|
|
890
|
+
self._values["video"] = video
|
|
891
|
+
|
|
892
|
+
@builtins.property
|
|
893
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
894
|
+
'''Encoder cnfiguration name.
|
|
895
|
+
|
|
896
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-encoderconfiguration.html#cfn-ivs-encoderconfiguration-name
|
|
897
|
+
'''
|
|
898
|
+
result = self._values.get("name")
|
|
899
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
900
|
+
|
|
901
|
+
@builtins.property
|
|
902
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
903
|
+
'''An array of key-value pairs to apply to this resource.
|
|
904
|
+
|
|
905
|
+
For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-encoderconfiguration-tag.html>`_ .
|
|
906
|
+
|
|
907
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-encoderconfiguration.html#cfn-ivs-encoderconfiguration-tags
|
|
908
|
+
'''
|
|
909
|
+
result = self._values.get("tags")
|
|
910
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
911
|
+
|
|
912
|
+
@builtins.property
|
|
913
|
+
def video(
|
|
914
|
+
self,
|
|
915
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnEncoderConfiguration.VideoProperty]]:
|
|
916
|
+
'''Video configuration.
|
|
917
|
+
|
|
918
|
+
Default: video resolution 1280x720, bitrate 2500 kbps, 30 fps. See the `Video <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-encoderconfiguration-video.html>`_ property type for more information.
|
|
919
|
+
|
|
920
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-encoderconfiguration.html#cfn-ivs-encoderconfiguration-video
|
|
921
|
+
'''
|
|
922
|
+
result = self._values.get("video")
|
|
923
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnEncoderConfiguration.VideoProperty]], result)
|
|
924
|
+
|
|
925
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
926
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
927
|
+
|
|
928
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
929
|
+
return not (rhs == self)
|
|
930
|
+
|
|
931
|
+
def __repr__(self) -> str:
|
|
932
|
+
return "CfnEncoderConfigurationProps(%s)" % ", ".join(
|
|
933
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
934
|
+
)
|
|
935
|
+
|
|
936
|
+
|
|
560
937
|
@jsii.implements(_IInspectable_c2943556, _ITaggable_36806126)
|
|
561
938
|
class CfnPlaybackKeyPair(
|
|
562
939
|
_CfnResource_9df397a6,
|
|
@@ -748,9 +1125,307 @@ class CfnPlaybackKeyPairProps:
|
|
|
748
1125
|
# The values are placeholders you should change.
|
|
749
1126
|
from aws_cdk import aws_ivs as ivs
|
|
750
1127
|
|
|
751
|
-
cfn_playback_key_pair_props = ivs.CfnPlaybackKeyPairProps(
|
|
1128
|
+
cfn_playback_key_pair_props = ivs.CfnPlaybackKeyPairProps(
|
|
1129
|
+
name="name",
|
|
1130
|
+
public_key_material="publicKeyMaterial",
|
|
1131
|
+
tags=[CfnTag(
|
|
1132
|
+
key="key",
|
|
1133
|
+
value="value"
|
|
1134
|
+
)]
|
|
1135
|
+
)
|
|
1136
|
+
'''
|
|
1137
|
+
if __debug__:
|
|
1138
|
+
type_hints = typing.get_type_hints(_typecheckingstub__7a8be2c5b1653b9a20f33850cbab1a9c21d6b30034b5c68883e658d0e145e6a3)
|
|
1139
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
1140
|
+
check_type(argname="argument public_key_material", value=public_key_material, expected_type=type_hints["public_key_material"])
|
|
1141
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
1142
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1143
|
+
if name is not None:
|
|
1144
|
+
self._values["name"] = name
|
|
1145
|
+
if public_key_material is not None:
|
|
1146
|
+
self._values["public_key_material"] = public_key_material
|
|
1147
|
+
if tags is not None:
|
|
1148
|
+
self._values["tags"] = tags
|
|
1149
|
+
|
|
1150
|
+
@builtins.property
|
|
1151
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
1152
|
+
'''Playback-key-pair name.
|
|
1153
|
+
|
|
1154
|
+
The value does not need to be unique.
|
|
1155
|
+
|
|
1156
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-playbackkeypair.html#cfn-ivs-playbackkeypair-name
|
|
1157
|
+
'''
|
|
1158
|
+
result = self._values.get("name")
|
|
1159
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1160
|
+
|
|
1161
|
+
@builtins.property
|
|
1162
|
+
def public_key_material(self) -> typing.Optional[builtins.str]:
|
|
1163
|
+
'''The public portion of a customer-generated key pair.
|
|
1164
|
+
|
|
1165
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-playbackkeypair.html#cfn-ivs-playbackkeypair-publickeymaterial
|
|
1166
|
+
'''
|
|
1167
|
+
result = self._values.get("public_key_material")
|
|
1168
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1169
|
+
|
|
1170
|
+
@builtins.property
|
|
1171
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
1172
|
+
'''An array of key-value pairs to apply to this resource.
|
|
1173
|
+
|
|
1174
|
+
For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-playbackkeypair-tag.html>`_ .
|
|
1175
|
+
|
|
1176
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-playbackkeypair.html#cfn-ivs-playbackkeypair-tags
|
|
1177
|
+
'''
|
|
1178
|
+
result = self._values.get("tags")
|
|
1179
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
1180
|
+
|
|
1181
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1182
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1183
|
+
|
|
1184
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1185
|
+
return not (rhs == self)
|
|
1186
|
+
|
|
1187
|
+
def __repr__(self) -> str:
|
|
1188
|
+
return "CfnPlaybackKeyPairProps(%s)" % ", ".join(
|
|
1189
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1190
|
+
)
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
1194
|
+
class CfnPlaybackRestrictionPolicy(
|
|
1195
|
+
_CfnResource_9df397a6,
|
|
1196
|
+
metaclass=jsii.JSIIMeta,
|
|
1197
|
+
jsii_type="aws-cdk-lib.aws_ivs.CfnPlaybackRestrictionPolicy",
|
|
1198
|
+
):
|
|
1199
|
+
'''The ``AWS::IVS::PlaybackRestrictionPolicy`` resource specifies an playback restriction policy.
|
|
1200
|
+
|
|
1201
|
+
A playback restriction policy constrains playback by country and/or origin sites. For more information, see `Undesired Content and Viewers <https://docs.aws.amazon.com/ivs/latest/LowLatencyUserGuide/undesired-content.html>`_ in the *Amazon IVS Low-Latency Streaming User Guide* .
|
|
1202
|
+
|
|
1203
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-playbackrestrictionpolicy.html
|
|
1204
|
+
:cloudformationResource: AWS::IVS::PlaybackRestrictionPolicy
|
|
1205
|
+
:exampleMetadata: fixture=_generated
|
|
1206
|
+
|
|
1207
|
+
Example::
|
|
1208
|
+
|
|
1209
|
+
# The code below shows an example of how to instantiate this type.
|
|
1210
|
+
# The values are placeholders you should change.
|
|
1211
|
+
from aws_cdk import aws_ivs as ivs
|
|
1212
|
+
|
|
1213
|
+
cfn_playback_restriction_policy = ivs.CfnPlaybackRestrictionPolicy(self, "MyCfnPlaybackRestrictionPolicy",
|
|
1214
|
+
allowed_countries=["allowedCountries"],
|
|
1215
|
+
allowed_origins=["allowedOrigins"],
|
|
1216
|
+
|
|
1217
|
+
# the properties below are optional
|
|
1218
|
+
enable_strict_origin_enforcement=False,
|
|
1219
|
+
name="name",
|
|
1220
|
+
tags=[CfnTag(
|
|
1221
|
+
key="key",
|
|
1222
|
+
value="value"
|
|
1223
|
+
)]
|
|
1224
|
+
)
|
|
1225
|
+
'''
|
|
1226
|
+
|
|
1227
|
+
def __init__(
|
|
1228
|
+
self,
|
|
1229
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
1230
|
+
id: builtins.str,
|
|
1231
|
+
*,
|
|
1232
|
+
allowed_countries: typing.Sequence[builtins.str],
|
|
1233
|
+
allowed_origins: typing.Sequence[builtins.str],
|
|
1234
|
+
enable_strict_origin_enforcement: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
1235
|
+
name: typing.Optional[builtins.str] = None,
|
|
1236
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1237
|
+
) -> None:
|
|
1238
|
+
'''
|
|
1239
|
+
:param scope: Scope in which this resource is defined.
|
|
1240
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
1241
|
+
:param allowed_countries: A list of country codes that control geoblocking restrictions. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).
|
|
1242
|
+
:param allowed_origins: A list of origin sites that control CORS restriction. Allowed values are the same as valid values of the Origin header defined at `https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin" <https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin>`_
|
|
1243
|
+
:param enable_strict_origin_enforcement: Whether channel playback is constrained by the origin site. Default: - false
|
|
1244
|
+
:param name: Playback-restriction-policy name.
|
|
1245
|
+
:param tags: An array of key-value pairs to apply to this resource. For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-playbackrestrictionpolicy-tag.html>`_ .
|
|
1246
|
+
'''
|
|
1247
|
+
if __debug__:
|
|
1248
|
+
type_hints = typing.get_type_hints(_typecheckingstub__987a35e58d5c2ae76d6f7c41b5ef19dc05ac42c651fd8a03f9f28e044029b375)
|
|
1249
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
1250
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
1251
|
+
props = CfnPlaybackRestrictionPolicyProps(
|
|
1252
|
+
allowed_countries=allowed_countries,
|
|
1253
|
+
allowed_origins=allowed_origins,
|
|
1254
|
+
enable_strict_origin_enforcement=enable_strict_origin_enforcement,
|
|
1255
|
+
name=name,
|
|
1256
|
+
tags=tags,
|
|
1257
|
+
)
|
|
1258
|
+
|
|
1259
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
1260
|
+
|
|
1261
|
+
@jsii.member(jsii_name="inspect")
|
|
1262
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
1263
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
1264
|
+
|
|
1265
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
1266
|
+
'''
|
|
1267
|
+
if __debug__:
|
|
1268
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6f3f6891340e6dab4eba842f305f96e563b405ee29ecb437451d108aecb54492)
|
|
1269
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
1270
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
1271
|
+
|
|
1272
|
+
@jsii.member(jsii_name="renderProperties")
|
|
1273
|
+
def _render_properties(
|
|
1274
|
+
self,
|
|
1275
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
1276
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
1277
|
+
'''
|
|
1278
|
+
:param props: -
|
|
1279
|
+
'''
|
|
1280
|
+
if __debug__:
|
|
1281
|
+
type_hints = typing.get_type_hints(_typecheckingstub__0e57b154c63f829875b079b3d6baf6c33a6d6c377987d9ac6e9f4586303e9729)
|
|
1282
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
1283
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
1284
|
+
|
|
1285
|
+
@jsii.python.classproperty
|
|
1286
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
1287
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
1288
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
1289
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
1290
|
+
|
|
1291
|
+
@builtins.property
|
|
1292
|
+
@jsii.member(jsii_name="attrArn")
|
|
1293
|
+
def attr_arn(self) -> builtins.str:
|
|
1294
|
+
'''The playback-restriction-policy ARN.
|
|
1295
|
+
|
|
1296
|
+
For example: ``arn:aws:ivs:us-west-2:123456789012:playback-restriction-policy/abcdABCDefgh``
|
|
1297
|
+
|
|
1298
|
+
:cloudformationAttribute: Arn
|
|
1299
|
+
'''
|
|
1300
|
+
return typing.cast(builtins.str, jsii.get(self, "attrArn"))
|
|
1301
|
+
|
|
1302
|
+
@builtins.property
|
|
1303
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
1304
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
1305
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
1306
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
1307
|
+
|
|
1308
|
+
@builtins.property
|
|
1309
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
1310
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
1311
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
1312
|
+
|
|
1313
|
+
@builtins.property
|
|
1314
|
+
@jsii.member(jsii_name="allowedCountries")
|
|
1315
|
+
def allowed_countries(self) -> typing.List[builtins.str]:
|
|
1316
|
+
'''A list of country codes that control geoblocking restrictions.'''
|
|
1317
|
+
return typing.cast(typing.List[builtins.str], jsii.get(self, "allowedCountries"))
|
|
1318
|
+
|
|
1319
|
+
@allowed_countries.setter
|
|
1320
|
+
def allowed_countries(self, value: typing.List[builtins.str]) -> None:
|
|
1321
|
+
if __debug__:
|
|
1322
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f6636af9e45dbeea2bcf7b5990280edcd8fec18083a4bfe23a76e19bd655ef03)
|
|
1323
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1324
|
+
jsii.set(self, "allowedCountries", value)
|
|
1325
|
+
|
|
1326
|
+
@builtins.property
|
|
1327
|
+
@jsii.member(jsii_name="allowedOrigins")
|
|
1328
|
+
def allowed_origins(self) -> typing.List[builtins.str]:
|
|
1329
|
+
'''A list of origin sites that control CORS restriction.'''
|
|
1330
|
+
return typing.cast(typing.List[builtins.str], jsii.get(self, "allowedOrigins"))
|
|
1331
|
+
|
|
1332
|
+
@allowed_origins.setter
|
|
1333
|
+
def allowed_origins(self, value: typing.List[builtins.str]) -> None:
|
|
1334
|
+
if __debug__:
|
|
1335
|
+
type_hints = typing.get_type_hints(_typecheckingstub__773f5ee580b6a7c42904b5a38460c9ae7e7e147bde8b69e1c43edddd32d7dc69)
|
|
1336
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1337
|
+
jsii.set(self, "allowedOrigins", value)
|
|
1338
|
+
|
|
1339
|
+
@builtins.property
|
|
1340
|
+
@jsii.member(jsii_name="enableStrictOriginEnforcement")
|
|
1341
|
+
def enable_strict_origin_enforcement(
|
|
1342
|
+
self,
|
|
1343
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
1344
|
+
'''Whether channel playback is constrained by the origin site.'''
|
|
1345
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "enableStrictOriginEnforcement"))
|
|
1346
|
+
|
|
1347
|
+
@enable_strict_origin_enforcement.setter
|
|
1348
|
+
def enable_strict_origin_enforcement(
|
|
1349
|
+
self,
|
|
1350
|
+
value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
|
|
1351
|
+
) -> None:
|
|
1352
|
+
if __debug__:
|
|
1353
|
+
type_hints = typing.get_type_hints(_typecheckingstub__67d34a00cb21cb2e87b091d21364ddc0afcd5ff11075db95ae750d23e62e2808)
|
|
1354
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1355
|
+
jsii.set(self, "enableStrictOriginEnforcement", value)
|
|
1356
|
+
|
|
1357
|
+
@builtins.property
|
|
1358
|
+
@jsii.member(jsii_name="name")
|
|
1359
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
1360
|
+
'''Playback-restriction-policy name.'''
|
|
1361
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "name"))
|
|
1362
|
+
|
|
1363
|
+
@name.setter
|
|
1364
|
+
def name(self, value: typing.Optional[builtins.str]) -> None:
|
|
1365
|
+
if __debug__:
|
|
1366
|
+
type_hints = typing.get_type_hints(_typecheckingstub__4b36ada0e65d44733ed151613d84de1502ed0c39b1d83d8f62ea23a0f231bba3)
|
|
1367
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1368
|
+
jsii.set(self, "name", value)
|
|
1369
|
+
|
|
1370
|
+
@builtins.property
|
|
1371
|
+
@jsii.member(jsii_name="tags")
|
|
1372
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
1373
|
+
'''An array of key-value pairs to apply to this resource.'''
|
|
1374
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
|
|
1375
|
+
|
|
1376
|
+
@tags.setter
|
|
1377
|
+
def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
|
|
1378
|
+
if __debug__:
|
|
1379
|
+
type_hints = typing.get_type_hints(_typecheckingstub__72c43ae8ddd92a7ae402fb8cc1729052bd0d141f4f2106265c702c75bd0b9369)
|
|
1380
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1381
|
+
jsii.set(self, "tags", value)
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
@jsii.data_type(
|
|
1385
|
+
jsii_type="aws-cdk-lib.aws_ivs.CfnPlaybackRestrictionPolicyProps",
|
|
1386
|
+
jsii_struct_bases=[],
|
|
1387
|
+
name_mapping={
|
|
1388
|
+
"allowed_countries": "allowedCountries",
|
|
1389
|
+
"allowed_origins": "allowedOrigins",
|
|
1390
|
+
"enable_strict_origin_enforcement": "enableStrictOriginEnforcement",
|
|
1391
|
+
"name": "name",
|
|
1392
|
+
"tags": "tags",
|
|
1393
|
+
},
|
|
1394
|
+
)
|
|
1395
|
+
class CfnPlaybackRestrictionPolicyProps:
|
|
1396
|
+
def __init__(
|
|
1397
|
+
self,
|
|
1398
|
+
*,
|
|
1399
|
+
allowed_countries: typing.Sequence[builtins.str],
|
|
1400
|
+
allowed_origins: typing.Sequence[builtins.str],
|
|
1401
|
+
enable_strict_origin_enforcement: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
1402
|
+
name: typing.Optional[builtins.str] = None,
|
|
1403
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1404
|
+
) -> None:
|
|
1405
|
+
'''Properties for defining a ``CfnPlaybackRestrictionPolicy``.
|
|
1406
|
+
|
|
1407
|
+
:param allowed_countries: A list of country codes that control geoblocking restrictions. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).
|
|
1408
|
+
:param allowed_origins: A list of origin sites that control CORS restriction. Allowed values are the same as valid values of the Origin header defined at `https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin" <https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin>`_
|
|
1409
|
+
:param enable_strict_origin_enforcement: Whether channel playback is constrained by the origin site. Default: - false
|
|
1410
|
+
:param name: Playback-restriction-policy name.
|
|
1411
|
+
:param tags: An array of key-value pairs to apply to this resource. For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-playbackrestrictionpolicy-tag.html>`_ .
|
|
1412
|
+
|
|
1413
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-playbackrestrictionpolicy.html
|
|
1414
|
+
:exampleMetadata: fixture=_generated
|
|
1415
|
+
|
|
1416
|
+
Example::
|
|
1417
|
+
|
|
1418
|
+
# The code below shows an example of how to instantiate this type.
|
|
1419
|
+
# The values are placeholders you should change.
|
|
1420
|
+
from aws_cdk import aws_ivs as ivs
|
|
1421
|
+
|
|
1422
|
+
cfn_playback_restriction_policy_props = ivs.CfnPlaybackRestrictionPolicyProps(
|
|
1423
|
+
allowed_countries=["allowedCountries"],
|
|
1424
|
+
allowed_origins=["allowedOrigins"],
|
|
1425
|
+
|
|
1426
|
+
# the properties below are optional
|
|
1427
|
+
enable_strict_origin_enforcement=False,
|
|
752
1428
|
name="name",
|
|
753
|
-
public_key_material="publicKeyMaterial",
|
|
754
1429
|
tags=[CfnTag(
|
|
755
1430
|
key="key",
|
|
756
1431
|
value="value"
|
|
@@ -758,45 +1433,76 @@ class CfnPlaybackKeyPairProps:
|
|
|
758
1433
|
)
|
|
759
1434
|
'''
|
|
760
1435
|
if __debug__:
|
|
761
|
-
type_hints = typing.get_type_hints(
|
|
1436
|
+
type_hints = typing.get_type_hints(_typecheckingstub__feaf48f348987f686c52239e867f8aedc7a8a6debbbc2bec008fea1cc72c201f)
|
|
1437
|
+
check_type(argname="argument allowed_countries", value=allowed_countries, expected_type=type_hints["allowed_countries"])
|
|
1438
|
+
check_type(argname="argument allowed_origins", value=allowed_origins, expected_type=type_hints["allowed_origins"])
|
|
1439
|
+
check_type(argname="argument enable_strict_origin_enforcement", value=enable_strict_origin_enforcement, expected_type=type_hints["enable_strict_origin_enforcement"])
|
|
762
1440
|
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
763
|
-
check_type(argname="argument public_key_material", value=public_key_material, expected_type=type_hints["public_key_material"])
|
|
764
1441
|
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
765
|
-
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1442
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1443
|
+
"allowed_countries": allowed_countries,
|
|
1444
|
+
"allowed_origins": allowed_origins,
|
|
1445
|
+
}
|
|
1446
|
+
if enable_strict_origin_enforcement is not None:
|
|
1447
|
+
self._values["enable_strict_origin_enforcement"] = enable_strict_origin_enforcement
|
|
766
1448
|
if name is not None:
|
|
767
1449
|
self._values["name"] = name
|
|
768
|
-
if public_key_material is not None:
|
|
769
|
-
self._values["public_key_material"] = public_key_material
|
|
770
1450
|
if tags is not None:
|
|
771
1451
|
self._values["tags"] = tags
|
|
772
1452
|
|
|
773
1453
|
@builtins.property
|
|
774
|
-
def
|
|
775
|
-
'''
|
|
1454
|
+
def allowed_countries(self) -> typing.List[builtins.str]:
|
|
1455
|
+
'''A list of country codes that control geoblocking restrictions.
|
|
776
1456
|
|
|
777
|
-
|
|
1457
|
+
Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).
|
|
778
1458
|
|
|
779
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-
|
|
1459
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-playbackrestrictionpolicy.html#cfn-ivs-playbackrestrictionpolicy-allowedcountries
|
|
780
1460
|
'''
|
|
781
|
-
result = self._values.get("
|
|
782
|
-
|
|
1461
|
+
result = self._values.get("allowed_countries")
|
|
1462
|
+
assert result is not None, "Required property 'allowed_countries' is missing"
|
|
1463
|
+
return typing.cast(typing.List[builtins.str], result)
|
|
783
1464
|
|
|
784
1465
|
@builtins.property
|
|
785
|
-
def
|
|
786
|
-
'''
|
|
1466
|
+
def allowed_origins(self) -> typing.List[builtins.str]:
|
|
1467
|
+
'''A list of origin sites that control CORS restriction.
|
|
787
1468
|
|
|
788
|
-
|
|
1469
|
+
Allowed values are the same as valid values of the Origin header defined at `https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin" <https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin>`_
|
|
1470
|
+
|
|
1471
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-playbackrestrictionpolicy.html#cfn-ivs-playbackrestrictionpolicy-allowedorigins
|
|
789
1472
|
'''
|
|
790
|
-
result = self._values.get("
|
|
1473
|
+
result = self._values.get("allowed_origins")
|
|
1474
|
+
assert result is not None, "Required property 'allowed_origins' is missing"
|
|
1475
|
+
return typing.cast(typing.List[builtins.str], result)
|
|
1476
|
+
|
|
1477
|
+
@builtins.property
|
|
1478
|
+
def enable_strict_origin_enforcement(
|
|
1479
|
+
self,
|
|
1480
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
1481
|
+
'''Whether channel playback is constrained by the origin site.
|
|
1482
|
+
|
|
1483
|
+
:default: - false
|
|
1484
|
+
|
|
1485
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-playbackrestrictionpolicy.html#cfn-ivs-playbackrestrictionpolicy-enablestrictoriginenforcement
|
|
1486
|
+
'''
|
|
1487
|
+
result = self._values.get("enable_strict_origin_enforcement")
|
|
1488
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
1489
|
+
|
|
1490
|
+
@builtins.property
|
|
1491
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
1492
|
+
'''Playback-restriction-policy name.
|
|
1493
|
+
|
|
1494
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-playbackrestrictionpolicy.html#cfn-ivs-playbackrestrictionpolicy-name
|
|
1495
|
+
'''
|
|
1496
|
+
result = self._values.get("name")
|
|
791
1497
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
792
1498
|
|
|
793
1499
|
@builtins.property
|
|
794
1500
|
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
795
1501
|
'''An array of key-value pairs to apply to this resource.
|
|
796
1502
|
|
|
797
|
-
For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-
|
|
1503
|
+
For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-playbackrestrictionpolicy-tag.html>`_ .
|
|
798
1504
|
|
|
799
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-
|
|
1505
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-playbackrestrictionpolicy.html#cfn-ivs-playbackrestrictionpolicy-tags
|
|
800
1506
|
'''
|
|
801
1507
|
result = self._values.get("tags")
|
|
802
1508
|
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
@@ -808,7 +1514,7 @@ class CfnPlaybackKeyPairProps:
|
|
|
808
1514
|
return not (rhs == self)
|
|
809
1515
|
|
|
810
1516
|
def __repr__(self) -> str:
|
|
811
|
-
return "
|
|
1517
|
+
return "CfnPlaybackRestrictionPolicyProps(%s)" % ", ".join(
|
|
812
1518
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
813
1519
|
)
|
|
814
1520
|
|
|
@@ -875,7 +1581,7 @@ class CfnRecordingConfiguration(
|
|
|
875
1581
|
'''
|
|
876
1582
|
:param scope: Scope in which this resource is defined.
|
|
877
1583
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
878
|
-
:param destination_configuration: A destination configuration
|
|
1584
|
+
:param destination_configuration: A destination configuration describes an S3 bucket where recorded video will be stored. See the DestinationConfiguration property type for more information.
|
|
879
1585
|
:param name: Recording-configuration name. The value does not need to be unique.
|
|
880
1586
|
:param recording_reconnect_window_seconds: If a broadcast disconnects and then reconnects within the specified interval, the multiple streams will be considered a single broadcast and merged together. *Default* : ``0`` Default: - 0
|
|
881
1587
|
:param rendition_configuration: A rendition configuration describes which renditions should be recorded for a stream. See the RenditionConfiguration property type for more information.
|
|
@@ -965,7 +1671,7 @@ class CfnRecordingConfiguration(
|
|
|
965
1671
|
def destination_configuration(
|
|
966
1672
|
self,
|
|
967
1673
|
) -> typing.Union[_IResolvable_da3f097b, "CfnRecordingConfiguration.DestinationConfigurationProperty"]:
|
|
968
|
-
'''A destination configuration
|
|
1674
|
+
'''A destination configuration describes an S3 bucket where recorded video will be stored.'''
|
|
969
1675
|
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnRecordingConfiguration.DestinationConfigurationProperty"], jsii.get(self, "destinationConfiguration"))
|
|
970
1676
|
|
|
971
1677
|
@destination_configuration.setter
|
|
@@ -1402,7 +2108,7 @@ class CfnRecordingConfigurationProps:
|
|
|
1402
2108
|
) -> None:
|
|
1403
2109
|
'''Properties for defining a ``CfnRecordingConfiguration``.
|
|
1404
2110
|
|
|
1405
|
-
:param destination_configuration: A destination configuration
|
|
2111
|
+
:param destination_configuration: A destination configuration describes an S3 bucket where recorded video will be stored. See the DestinationConfiguration property type for more information.
|
|
1406
2112
|
:param name: Recording-configuration name. The value does not need to be unique.
|
|
1407
2113
|
:param recording_reconnect_window_seconds: If a broadcast disconnects and then reconnects within the specified interval, the multiple streams will be considered a single broadcast and merged together. *Default* : ``0`` Default: - 0
|
|
1408
2114
|
:param rendition_configuration: A rendition configuration describes which renditions should be recorded for a stream. See the RenditionConfiguration property type for more information.
|
|
@@ -1470,7 +2176,7 @@ class CfnRecordingConfigurationProps:
|
|
|
1470
2176
|
def destination_configuration(
|
|
1471
2177
|
self,
|
|
1472
2178
|
) -> typing.Union[_IResolvable_da3f097b, CfnRecordingConfiguration.DestinationConfigurationProperty]:
|
|
1473
|
-
'''A destination configuration
|
|
2179
|
+
'''A destination configuration describes an S3 bucket where recorded video will be stored.
|
|
1474
2180
|
|
|
1475
2181
|
See the DestinationConfiguration property type for more information.
|
|
1476
2182
|
|
|
@@ -1538,8 +2244,225 @@ class CfnRecordingConfigurationProps:
|
|
|
1538
2244
|
|
|
1539
2245
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-recordingconfiguration.html#cfn-ivs-recordingconfiguration-thumbnailconfiguration
|
|
1540
2246
|
'''
|
|
1541
|
-
result = self._values.get("thumbnail_configuration")
|
|
1542
|
-
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnRecordingConfiguration.ThumbnailConfigurationProperty]], result)
|
|
2247
|
+
result = self._values.get("thumbnail_configuration")
|
|
2248
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnRecordingConfiguration.ThumbnailConfigurationProperty]], result)
|
|
2249
|
+
|
|
2250
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2251
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2252
|
+
|
|
2253
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
2254
|
+
return not (rhs == self)
|
|
2255
|
+
|
|
2256
|
+
def __repr__(self) -> str:
|
|
2257
|
+
return "CfnRecordingConfigurationProps(%s)" % ", ".join(
|
|
2258
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
2259
|
+
)
|
|
2260
|
+
|
|
2261
|
+
|
|
2262
|
+
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
2263
|
+
class CfnStage(
|
|
2264
|
+
_CfnResource_9df397a6,
|
|
2265
|
+
metaclass=jsii.JSIIMeta,
|
|
2266
|
+
jsii_type="aws-cdk-lib.aws_ivs.CfnStage",
|
|
2267
|
+
):
|
|
2268
|
+
'''The ``AWS::IVS::Stage`` resource specifies an stage.
|
|
2269
|
+
|
|
2270
|
+
A stage is a virtual space where participants can exchange video in real time. For more information, see `CreateStage <https://docs.aws.amazon.com/ivs/latest/RealTimeAPIReference/API_CreateStage.html>`_ in the *Amazon IVS Real-Time Streaming API Reference* .
|
|
2271
|
+
|
|
2272
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-stage.html
|
|
2273
|
+
:cloudformationResource: AWS::IVS::Stage
|
|
2274
|
+
:exampleMetadata: fixture=_generated
|
|
2275
|
+
|
|
2276
|
+
Example::
|
|
2277
|
+
|
|
2278
|
+
# The code below shows an example of how to instantiate this type.
|
|
2279
|
+
# The values are placeholders you should change.
|
|
2280
|
+
from aws_cdk import aws_ivs as ivs
|
|
2281
|
+
|
|
2282
|
+
cfn_stage = ivs.CfnStage(self, "MyCfnStage",
|
|
2283
|
+
name="name",
|
|
2284
|
+
tags=[CfnTag(
|
|
2285
|
+
key="key",
|
|
2286
|
+
value="value"
|
|
2287
|
+
)]
|
|
2288
|
+
)
|
|
2289
|
+
'''
|
|
2290
|
+
|
|
2291
|
+
def __init__(
|
|
2292
|
+
self,
|
|
2293
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
2294
|
+
id: builtins.str,
|
|
2295
|
+
*,
|
|
2296
|
+
name: typing.Optional[builtins.str] = None,
|
|
2297
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2298
|
+
) -> None:
|
|
2299
|
+
'''
|
|
2300
|
+
:param scope: Scope in which this resource is defined.
|
|
2301
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
2302
|
+
:param name: Stage name.
|
|
2303
|
+
:param tags: An array of key-value pairs to apply to this resource. For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-stage-tag.html>`_ .
|
|
2304
|
+
'''
|
|
2305
|
+
if __debug__:
|
|
2306
|
+
type_hints = typing.get_type_hints(_typecheckingstub__95445d65024ea014afa24d3c5da7a1c325ecb6f520b50f18c628abc8468ad394)
|
|
2307
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
2308
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
2309
|
+
props = CfnStageProps(name=name, tags=tags)
|
|
2310
|
+
|
|
2311
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
2312
|
+
|
|
2313
|
+
@jsii.member(jsii_name="inspect")
|
|
2314
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
2315
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
2316
|
+
|
|
2317
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
2318
|
+
'''
|
|
2319
|
+
if __debug__:
|
|
2320
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f30152ce06f8073bd50b8e496f375320497c078cc8206cb7c95344710fd6a98b)
|
|
2321
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
2322
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
2323
|
+
|
|
2324
|
+
@jsii.member(jsii_name="renderProperties")
|
|
2325
|
+
def _render_properties(
|
|
2326
|
+
self,
|
|
2327
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
2328
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
2329
|
+
'''
|
|
2330
|
+
:param props: -
|
|
2331
|
+
'''
|
|
2332
|
+
if __debug__:
|
|
2333
|
+
type_hints = typing.get_type_hints(_typecheckingstub__0236ad7c18356db2e70641309707f63a741f804d4d94814bedc5adeaab38d30c)
|
|
2334
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
2335
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
2336
|
+
|
|
2337
|
+
@jsii.python.classproperty
|
|
2338
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
2339
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
2340
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
2341
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
2342
|
+
|
|
2343
|
+
@builtins.property
|
|
2344
|
+
@jsii.member(jsii_name="attrActiveSessionId")
|
|
2345
|
+
def attr_active_session_id(self) -> builtins.str:
|
|
2346
|
+
'''ID of the active session within the stage.
|
|
2347
|
+
|
|
2348
|
+
For example: ``st-a1b2c3d4e5f6g``
|
|
2349
|
+
|
|
2350
|
+
:cloudformationAttribute: ActiveSessionId
|
|
2351
|
+
'''
|
|
2352
|
+
return typing.cast(builtins.str, jsii.get(self, "attrActiveSessionId"))
|
|
2353
|
+
|
|
2354
|
+
@builtins.property
|
|
2355
|
+
@jsii.member(jsii_name="attrArn")
|
|
2356
|
+
def attr_arn(self) -> builtins.str:
|
|
2357
|
+
'''The stage ARN.
|
|
2358
|
+
|
|
2359
|
+
For example: ``arn:aws:ivs:us-west-2:123456789012:stage/abcdABCDefgh``
|
|
2360
|
+
|
|
2361
|
+
:cloudformationAttribute: Arn
|
|
2362
|
+
'''
|
|
2363
|
+
return typing.cast(builtins.str, jsii.get(self, "attrArn"))
|
|
2364
|
+
|
|
2365
|
+
@builtins.property
|
|
2366
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
2367
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
2368
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
2369
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
2370
|
+
|
|
2371
|
+
@builtins.property
|
|
2372
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
2373
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
2374
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
2375
|
+
|
|
2376
|
+
@builtins.property
|
|
2377
|
+
@jsii.member(jsii_name="name")
|
|
2378
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
2379
|
+
'''Stage name.'''
|
|
2380
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "name"))
|
|
2381
|
+
|
|
2382
|
+
@name.setter
|
|
2383
|
+
def name(self, value: typing.Optional[builtins.str]) -> None:
|
|
2384
|
+
if __debug__:
|
|
2385
|
+
type_hints = typing.get_type_hints(_typecheckingstub__aa886ee78ed539f2863fcdc7d7f62035b31fa2118c7c2c34cf8ba71078c75632)
|
|
2386
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2387
|
+
jsii.set(self, "name", value)
|
|
2388
|
+
|
|
2389
|
+
@builtins.property
|
|
2390
|
+
@jsii.member(jsii_name="tags")
|
|
2391
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
2392
|
+
'''An array of key-value pairs to apply to this resource.'''
|
|
2393
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
|
|
2394
|
+
|
|
2395
|
+
@tags.setter
|
|
2396
|
+
def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
|
|
2397
|
+
if __debug__:
|
|
2398
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6a345b4498f1ee0487e9359886004162443d2310aa5159615d98ad8d30ecf6f7)
|
|
2399
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2400
|
+
jsii.set(self, "tags", value)
|
|
2401
|
+
|
|
2402
|
+
|
|
2403
|
+
@jsii.data_type(
|
|
2404
|
+
jsii_type="aws-cdk-lib.aws_ivs.CfnStageProps",
|
|
2405
|
+
jsii_struct_bases=[],
|
|
2406
|
+
name_mapping={"name": "name", "tags": "tags"},
|
|
2407
|
+
)
|
|
2408
|
+
class CfnStageProps:
|
|
2409
|
+
def __init__(
|
|
2410
|
+
self,
|
|
2411
|
+
*,
|
|
2412
|
+
name: typing.Optional[builtins.str] = None,
|
|
2413
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2414
|
+
) -> None:
|
|
2415
|
+
'''Properties for defining a ``CfnStage``.
|
|
2416
|
+
|
|
2417
|
+
:param name: Stage name.
|
|
2418
|
+
:param tags: An array of key-value pairs to apply to this resource. For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-stage-tag.html>`_ .
|
|
2419
|
+
|
|
2420
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-stage.html
|
|
2421
|
+
:exampleMetadata: fixture=_generated
|
|
2422
|
+
|
|
2423
|
+
Example::
|
|
2424
|
+
|
|
2425
|
+
# The code below shows an example of how to instantiate this type.
|
|
2426
|
+
# The values are placeholders you should change.
|
|
2427
|
+
from aws_cdk import aws_ivs as ivs
|
|
2428
|
+
|
|
2429
|
+
cfn_stage_props = ivs.CfnStageProps(
|
|
2430
|
+
name="name",
|
|
2431
|
+
tags=[CfnTag(
|
|
2432
|
+
key="key",
|
|
2433
|
+
value="value"
|
|
2434
|
+
)]
|
|
2435
|
+
)
|
|
2436
|
+
'''
|
|
2437
|
+
if __debug__:
|
|
2438
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f7a0020ee283466459b434f83d43a5d205fcf4dbcde3ddb35eef021e6e069bf5)
|
|
2439
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
2440
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
2441
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
2442
|
+
if name is not None:
|
|
2443
|
+
self._values["name"] = name
|
|
2444
|
+
if tags is not None:
|
|
2445
|
+
self._values["tags"] = tags
|
|
2446
|
+
|
|
2447
|
+
@builtins.property
|
|
2448
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
2449
|
+
'''Stage name.
|
|
2450
|
+
|
|
2451
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-stage.html#cfn-ivs-stage-name
|
|
2452
|
+
'''
|
|
2453
|
+
result = self._values.get("name")
|
|
2454
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2455
|
+
|
|
2456
|
+
@builtins.property
|
|
2457
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
2458
|
+
'''An array of key-value pairs to apply to this resource.
|
|
2459
|
+
|
|
2460
|
+
For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-stage-tag.html>`_ .
|
|
2461
|
+
|
|
2462
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-stage.html#cfn-ivs-stage-tags
|
|
2463
|
+
'''
|
|
2464
|
+
result = self._values.get("tags")
|
|
2465
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
1543
2466
|
|
|
1544
2467
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1545
2468
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -1548,23 +2471,23 @@ class CfnRecordingConfigurationProps:
|
|
|
1548
2471
|
return not (rhs == self)
|
|
1549
2472
|
|
|
1550
2473
|
def __repr__(self) -> str:
|
|
1551
|
-
return "
|
|
2474
|
+
return "CfnStageProps(%s)" % ", ".join(
|
|
1552
2475
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
1553
2476
|
)
|
|
1554
2477
|
|
|
1555
2478
|
|
|
1556
2479
|
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
1557
|
-
class
|
|
2480
|
+
class CfnStorageConfiguration(
|
|
1558
2481
|
_CfnResource_9df397a6,
|
|
1559
2482
|
metaclass=jsii.JSIIMeta,
|
|
1560
|
-
jsii_type="aws-cdk-lib.aws_ivs.
|
|
2483
|
+
jsii_type="aws-cdk-lib.aws_ivs.CfnStorageConfiguration",
|
|
1561
2484
|
):
|
|
1562
|
-
'''The ``AWS::IVS::
|
|
2485
|
+
'''The ``AWS::IVS::StorageConfiguration`` resource specifies an storage configuration.
|
|
1563
2486
|
|
|
1564
|
-
A
|
|
2487
|
+
A storage configuration describes an S3 location where recorded videos will be stored. For more information, see `Auto-Record to Amazon S3 (Low-Latency Streaming) <https://docs.aws.amazon.com/ivs/latest/LowLatencyUserGuide/record-to-s3.html>`_ in the *Amazon IVS Low-Latency Streaming User Guide* .
|
|
1565
2488
|
|
|
1566
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-
|
|
1567
|
-
:cloudformationResource: AWS::IVS::
|
|
2489
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-storageconfiguration.html
|
|
2490
|
+
:cloudformationResource: AWS::IVS::StorageConfiguration
|
|
1568
2491
|
:exampleMetadata: fixture=_generated
|
|
1569
2492
|
|
|
1570
2493
|
Example::
|
|
@@ -1573,7 +2496,12 @@ class CfnStage(
|
|
|
1573
2496
|
# The values are placeholders you should change.
|
|
1574
2497
|
from aws_cdk import aws_ivs as ivs
|
|
1575
2498
|
|
|
1576
|
-
|
|
2499
|
+
cfn_storage_configuration = ivs.CfnStorageConfiguration(self, "MyCfnStorageConfiguration",
|
|
2500
|
+
s3=ivs.CfnStorageConfiguration.S3StorageConfigurationProperty(
|
|
2501
|
+
bucket_name="bucketName"
|
|
2502
|
+
),
|
|
2503
|
+
|
|
2504
|
+
# the properties below are optional
|
|
1577
2505
|
name="name",
|
|
1578
2506
|
tags=[CfnTag(
|
|
1579
2507
|
key="key",
|
|
@@ -1587,20 +2515,22 @@ class CfnStage(
|
|
|
1587
2515
|
scope: _constructs_77d1e7e8.Construct,
|
|
1588
2516
|
id: builtins.str,
|
|
1589
2517
|
*,
|
|
2518
|
+
s3: typing.Union[_IResolvable_da3f097b, typing.Union["CfnStorageConfiguration.S3StorageConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
1590
2519
|
name: typing.Optional[builtins.str] = None,
|
|
1591
2520
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1592
2521
|
) -> None:
|
|
1593
2522
|
'''
|
|
1594
2523
|
:param scope: Scope in which this resource is defined.
|
|
1595
2524
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
1596
|
-
:param
|
|
1597
|
-
:param
|
|
2525
|
+
:param s3: An S3 storage configuration contains information about where recorded video will be stored. See the `S3StorageConfiguration <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-storageconfiguration-s3storageconfiguration.html>`_ property type for more information.
|
|
2526
|
+
:param name: Storage cnfiguration name.
|
|
2527
|
+
:param tags: An array of key-value pairs to apply to this resource. For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-storageconfiguration-tag.html>`_ .
|
|
1598
2528
|
'''
|
|
1599
2529
|
if __debug__:
|
|
1600
|
-
type_hints = typing.get_type_hints(
|
|
2530
|
+
type_hints = typing.get_type_hints(_typecheckingstub__dce4d013deb7e0886892fdd53eb91ee35dbd9f9b177c89526d3247ebc9882881)
|
|
1601
2531
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
1602
2532
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
1603
|
-
props =
|
|
2533
|
+
props = CfnStorageConfigurationProps(s3=s3, name=name, tags=tags)
|
|
1604
2534
|
|
|
1605
2535
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
1606
2536
|
|
|
@@ -1611,7 +2541,7 @@ class CfnStage(
|
|
|
1611
2541
|
:param inspector: tree inspector to collect and process attributes.
|
|
1612
2542
|
'''
|
|
1613
2543
|
if __debug__:
|
|
1614
|
-
type_hints = typing.get_type_hints(
|
|
2544
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2494a1ad7f068edf1f7c9065f8fab79a66a716614a7b447a5ad3f667c000931c)
|
|
1615
2545
|
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
1616
2546
|
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
1617
2547
|
|
|
@@ -1624,7 +2554,7 @@ class CfnStage(
|
|
|
1624
2554
|
:param props: -
|
|
1625
2555
|
'''
|
|
1626
2556
|
if __debug__:
|
|
1627
|
-
type_hints = typing.get_type_hints(
|
|
2557
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f04371e94acebb618807659e6214b479c084f311d8b8e55b0d7126c699b0095a)
|
|
1628
2558
|
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
1629
2559
|
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
1630
2560
|
|
|
@@ -1634,23 +2564,12 @@ class CfnStage(
|
|
|
1634
2564
|
'''The CloudFormation resource type name for this resource class.'''
|
|
1635
2565
|
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
1636
2566
|
|
|
1637
|
-
@builtins.property
|
|
1638
|
-
@jsii.member(jsii_name="attrActiveSessionId")
|
|
1639
|
-
def attr_active_session_id(self) -> builtins.str:
|
|
1640
|
-
'''ID of the active session within the stage.
|
|
1641
|
-
|
|
1642
|
-
For example: ``st-a1b2c3d4e5f6g``
|
|
1643
|
-
|
|
1644
|
-
:cloudformationAttribute: ActiveSessionId
|
|
1645
|
-
'''
|
|
1646
|
-
return typing.cast(builtins.str, jsii.get(self, "attrActiveSessionId"))
|
|
1647
|
-
|
|
1648
2567
|
@builtins.property
|
|
1649
2568
|
@jsii.member(jsii_name="attrArn")
|
|
1650
2569
|
def attr_arn(self) -> builtins.str:
|
|
1651
|
-
'''The
|
|
2570
|
+
'''The storage-configuration ARN.
|
|
1652
2571
|
|
|
1653
|
-
For example: ``arn:aws:ivs:us-west-2:123456789012:
|
|
2572
|
+
For example: ``arn:aws:ivs:us-west-2:123456789012:storage-configuration/abcdABCDefgh``
|
|
1654
2573
|
|
|
1655
2574
|
:cloudformationAttribute: Arn
|
|
1656
2575
|
'''
|
|
@@ -1667,16 +2586,34 @@ class CfnStage(
|
|
|
1667
2586
|
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
1668
2587
|
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
1669
2588
|
|
|
2589
|
+
@builtins.property
|
|
2590
|
+
@jsii.member(jsii_name="s3")
|
|
2591
|
+
def s3(
|
|
2592
|
+
self,
|
|
2593
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnStorageConfiguration.S3StorageConfigurationProperty"]:
|
|
2594
|
+
'''An S3 storage configuration contains information about where recorded video will be stored.'''
|
|
2595
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnStorageConfiguration.S3StorageConfigurationProperty"], jsii.get(self, "s3"))
|
|
2596
|
+
|
|
2597
|
+
@s3.setter
|
|
2598
|
+
def s3(
|
|
2599
|
+
self,
|
|
2600
|
+
value: typing.Union[_IResolvable_da3f097b, "CfnStorageConfiguration.S3StorageConfigurationProperty"],
|
|
2601
|
+
) -> None:
|
|
2602
|
+
if __debug__:
|
|
2603
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a41e5161b80f9addb1b0e4316f4d2265340c959af7b1d4c11af686d0a7447cac)
|
|
2604
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2605
|
+
jsii.set(self, "s3", value)
|
|
2606
|
+
|
|
1670
2607
|
@builtins.property
|
|
1671
2608
|
@jsii.member(jsii_name="name")
|
|
1672
2609
|
def name(self) -> typing.Optional[builtins.str]:
|
|
1673
|
-
'''
|
|
2610
|
+
'''Storage cnfiguration name.'''
|
|
1674
2611
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "name"))
|
|
1675
2612
|
|
|
1676
2613
|
@name.setter
|
|
1677
2614
|
def name(self, value: typing.Optional[builtins.str]) -> None:
|
|
1678
2615
|
if __debug__:
|
|
1679
|
-
type_hints = typing.get_type_hints(
|
|
2616
|
+
type_hints = typing.get_type_hints(_typecheckingstub__c09664e580fb852260e35bce701abfe5d1c54a635fc151ec55bf483f45e7ac77)
|
|
1680
2617
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1681
2618
|
jsii.set(self, "name", value)
|
|
1682
2619
|
|
|
@@ -1689,29 +2626,83 @@ class CfnStage(
|
|
|
1689
2626
|
@tags.setter
|
|
1690
2627
|
def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
|
|
1691
2628
|
if __debug__:
|
|
1692
|
-
type_hints = typing.get_type_hints(
|
|
2629
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ac4f224a45d80fb7934ebfc58d4a23ea231aeab0929608af10892ba63ba4e79b)
|
|
1693
2630
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1694
2631
|
jsii.set(self, "tags", value)
|
|
1695
2632
|
|
|
2633
|
+
@jsii.data_type(
|
|
2634
|
+
jsii_type="aws-cdk-lib.aws_ivs.CfnStorageConfiguration.S3StorageConfigurationProperty",
|
|
2635
|
+
jsii_struct_bases=[],
|
|
2636
|
+
name_mapping={"bucket_name": "bucketName"},
|
|
2637
|
+
)
|
|
2638
|
+
class S3StorageConfigurationProperty:
|
|
2639
|
+
def __init__(self, *, bucket_name: builtins.str) -> None:
|
|
2640
|
+
'''The S3StorageConfiguration property type describes an S3 location where recorded videos will be stored.
|
|
2641
|
+
|
|
2642
|
+
:param bucket_name: Name of the S3 bucket where recorded video will be stored.
|
|
2643
|
+
|
|
2644
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-storageconfiguration-s3storageconfiguration.html
|
|
2645
|
+
:exampleMetadata: fixture=_generated
|
|
2646
|
+
|
|
2647
|
+
Example::
|
|
2648
|
+
|
|
2649
|
+
# The code below shows an example of how to instantiate this type.
|
|
2650
|
+
# The values are placeholders you should change.
|
|
2651
|
+
from aws_cdk import aws_ivs as ivs
|
|
2652
|
+
|
|
2653
|
+
s3_storage_configuration_property = ivs.CfnStorageConfiguration.S3StorageConfigurationProperty(
|
|
2654
|
+
bucket_name="bucketName"
|
|
2655
|
+
)
|
|
2656
|
+
'''
|
|
2657
|
+
if __debug__:
|
|
2658
|
+
type_hints = typing.get_type_hints(_typecheckingstub__69c0a188191cf8e78c91503f301a8af37a069a58e49a9e4b1175c595d36ec107)
|
|
2659
|
+
check_type(argname="argument bucket_name", value=bucket_name, expected_type=type_hints["bucket_name"])
|
|
2660
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
2661
|
+
"bucket_name": bucket_name,
|
|
2662
|
+
}
|
|
2663
|
+
|
|
2664
|
+
@builtins.property
|
|
2665
|
+
def bucket_name(self) -> builtins.str:
|
|
2666
|
+
'''Name of the S3 bucket where recorded video will be stored.
|
|
2667
|
+
|
|
2668
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-storageconfiguration-s3storageconfiguration.html#cfn-ivs-storageconfiguration-s3storageconfiguration-bucketname
|
|
2669
|
+
'''
|
|
2670
|
+
result = self._values.get("bucket_name")
|
|
2671
|
+
assert result is not None, "Required property 'bucket_name' is missing"
|
|
2672
|
+
return typing.cast(builtins.str, result)
|
|
2673
|
+
|
|
2674
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2675
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2676
|
+
|
|
2677
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
2678
|
+
return not (rhs == self)
|
|
2679
|
+
|
|
2680
|
+
def __repr__(self) -> str:
|
|
2681
|
+
return "S3StorageConfigurationProperty(%s)" % ", ".join(
|
|
2682
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
2683
|
+
)
|
|
2684
|
+
|
|
1696
2685
|
|
|
1697
2686
|
@jsii.data_type(
|
|
1698
|
-
jsii_type="aws-cdk-lib.aws_ivs.
|
|
2687
|
+
jsii_type="aws-cdk-lib.aws_ivs.CfnStorageConfigurationProps",
|
|
1699
2688
|
jsii_struct_bases=[],
|
|
1700
|
-
name_mapping={"name": "name", "tags": "tags"},
|
|
2689
|
+
name_mapping={"s3": "s3", "name": "name", "tags": "tags"},
|
|
1701
2690
|
)
|
|
1702
|
-
class
|
|
2691
|
+
class CfnStorageConfigurationProps:
|
|
1703
2692
|
def __init__(
|
|
1704
2693
|
self,
|
|
1705
2694
|
*,
|
|
2695
|
+
s3: typing.Union[_IResolvable_da3f097b, typing.Union[CfnStorageConfiguration.S3StorageConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
1706
2696
|
name: typing.Optional[builtins.str] = None,
|
|
1707
2697
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1708
2698
|
) -> None:
|
|
1709
|
-
'''Properties for defining a ``
|
|
2699
|
+
'''Properties for defining a ``CfnStorageConfiguration``.
|
|
1710
2700
|
|
|
1711
|
-
:param
|
|
1712
|
-
:param
|
|
2701
|
+
:param s3: An S3 storage configuration contains information about where recorded video will be stored. See the `S3StorageConfiguration <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-storageconfiguration-s3storageconfiguration.html>`_ property type for more information.
|
|
2702
|
+
:param name: Storage cnfiguration name.
|
|
2703
|
+
:param tags: An array of key-value pairs to apply to this resource. For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-storageconfiguration-tag.html>`_ .
|
|
1713
2704
|
|
|
1714
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-
|
|
2705
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-storageconfiguration.html
|
|
1715
2706
|
:exampleMetadata: fixture=_generated
|
|
1716
2707
|
|
|
1717
2708
|
Example::
|
|
@@ -1720,7 +2711,12 @@ class CfnStageProps:
|
|
|
1720
2711
|
# The values are placeholders you should change.
|
|
1721
2712
|
from aws_cdk import aws_ivs as ivs
|
|
1722
2713
|
|
|
1723
|
-
|
|
2714
|
+
cfn_storage_configuration_props = ivs.CfnStorageConfigurationProps(
|
|
2715
|
+
s3=ivs.CfnStorageConfiguration.S3StorageConfigurationProperty(
|
|
2716
|
+
bucket_name="bucketName"
|
|
2717
|
+
),
|
|
2718
|
+
|
|
2719
|
+
# the properties below are optional
|
|
1724
2720
|
name="name",
|
|
1725
2721
|
tags=[CfnTag(
|
|
1726
2722
|
key="key",
|
|
@@ -1729,20 +2725,37 @@ class CfnStageProps:
|
|
|
1729
2725
|
)
|
|
1730
2726
|
'''
|
|
1731
2727
|
if __debug__:
|
|
1732
|
-
type_hints = typing.get_type_hints(
|
|
2728
|
+
type_hints = typing.get_type_hints(_typecheckingstub__72410106e250d1874fbd4f3d9ea6ae3d4ffef1a3d301f8dc3bce88a672f05e4e)
|
|
2729
|
+
check_type(argname="argument s3", value=s3, expected_type=type_hints["s3"])
|
|
1733
2730
|
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
1734
2731
|
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
1735
|
-
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
2732
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
2733
|
+
"s3": s3,
|
|
2734
|
+
}
|
|
1736
2735
|
if name is not None:
|
|
1737
2736
|
self._values["name"] = name
|
|
1738
2737
|
if tags is not None:
|
|
1739
2738
|
self._values["tags"] = tags
|
|
1740
2739
|
|
|
2740
|
+
@builtins.property
|
|
2741
|
+
def s3(
|
|
2742
|
+
self,
|
|
2743
|
+
) -> typing.Union[_IResolvable_da3f097b, CfnStorageConfiguration.S3StorageConfigurationProperty]:
|
|
2744
|
+
'''An S3 storage configuration contains information about where recorded video will be stored.
|
|
2745
|
+
|
|
2746
|
+
See the `S3StorageConfiguration <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-storageconfiguration-s3storageconfiguration.html>`_ property type for more information.
|
|
2747
|
+
|
|
2748
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-storageconfiguration.html#cfn-ivs-storageconfiguration-s3
|
|
2749
|
+
'''
|
|
2750
|
+
result = self._values.get("s3")
|
|
2751
|
+
assert result is not None, "Required property 's3' is missing"
|
|
2752
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, CfnStorageConfiguration.S3StorageConfigurationProperty], result)
|
|
2753
|
+
|
|
1741
2754
|
@builtins.property
|
|
1742
2755
|
def name(self) -> typing.Optional[builtins.str]:
|
|
1743
|
-
'''
|
|
2756
|
+
'''Storage cnfiguration name.
|
|
1744
2757
|
|
|
1745
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-
|
|
2758
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-storageconfiguration.html#cfn-ivs-storageconfiguration-name
|
|
1746
2759
|
'''
|
|
1747
2760
|
result = self._values.get("name")
|
|
1748
2761
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1751,9 +2764,9 @@ class CfnStageProps:
|
|
|
1751
2764
|
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
1752
2765
|
'''An array of key-value pairs to apply to this resource.
|
|
1753
2766
|
|
|
1754
|
-
For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-
|
|
2767
|
+
For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-storageconfiguration-tag.html>`_ .
|
|
1755
2768
|
|
|
1756
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-
|
|
2769
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-storageconfiguration.html#cfn-ivs-storageconfiguration-tags
|
|
1757
2770
|
'''
|
|
1758
2771
|
result = self._values.get("tags")
|
|
1759
2772
|
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
@@ -1765,7 +2778,7 @@ class CfnStageProps:
|
|
|
1765
2778
|
return not (rhs == self)
|
|
1766
2779
|
|
|
1767
2780
|
def __repr__(self) -> str:
|
|
1768
|
-
return "
|
|
2781
|
+
return "CfnStorageConfigurationProps(%s)" % ", ".join(
|
|
1769
2782
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
1770
2783
|
)
|
|
1771
2784
|
|
|
@@ -1995,12 +3008,18 @@ class CfnStreamKeyProps:
|
|
|
1995
3008
|
__all__ = [
|
|
1996
3009
|
"CfnChannel",
|
|
1997
3010
|
"CfnChannelProps",
|
|
3011
|
+
"CfnEncoderConfiguration",
|
|
3012
|
+
"CfnEncoderConfigurationProps",
|
|
1998
3013
|
"CfnPlaybackKeyPair",
|
|
1999
3014
|
"CfnPlaybackKeyPairProps",
|
|
3015
|
+
"CfnPlaybackRestrictionPolicy",
|
|
3016
|
+
"CfnPlaybackRestrictionPolicyProps",
|
|
2000
3017
|
"CfnRecordingConfiguration",
|
|
2001
3018
|
"CfnRecordingConfigurationProps",
|
|
2002
3019
|
"CfnStage",
|
|
2003
3020
|
"CfnStageProps",
|
|
3021
|
+
"CfnStorageConfiguration",
|
|
3022
|
+
"CfnStorageConfigurationProps",
|
|
2004
3023
|
"CfnStreamKey",
|
|
2005
3024
|
"CfnStreamKeyProps",
|
|
2006
3025
|
]
|
|
@@ -2097,6 +3116,66 @@ def _typecheckingstub__61646017dba4df4ec5b97fde61911670aebc6b8151847b927754a4e9c
|
|
|
2097
3116
|
"""Type checking stubs"""
|
|
2098
3117
|
pass
|
|
2099
3118
|
|
|
3119
|
+
def _typecheckingstub__0567625f957d978c482944a46fdbb2b7533ef9af0df4baffa7c6f443e004d9f9(
|
|
3120
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
3121
|
+
id: builtins.str,
|
|
3122
|
+
*,
|
|
3123
|
+
name: typing.Optional[builtins.str] = None,
|
|
3124
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3125
|
+
video: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnEncoderConfiguration.VideoProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3126
|
+
) -> None:
|
|
3127
|
+
"""Type checking stubs"""
|
|
3128
|
+
pass
|
|
3129
|
+
|
|
3130
|
+
def _typecheckingstub__74f3191bc79bc285f7b8eefaf911f57a87950083af93a8ec3c39d61421b97b29(
|
|
3131
|
+
inspector: _TreeInspector_488e0dd5,
|
|
3132
|
+
) -> None:
|
|
3133
|
+
"""Type checking stubs"""
|
|
3134
|
+
pass
|
|
3135
|
+
|
|
3136
|
+
def _typecheckingstub__5894ac5581a1dc1e629e1f66ec2014665b3f9227b553389ebce9188b817c4d61(
|
|
3137
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
3138
|
+
) -> None:
|
|
3139
|
+
"""Type checking stubs"""
|
|
3140
|
+
pass
|
|
3141
|
+
|
|
3142
|
+
def _typecheckingstub__29237afd8a2086ac2e4d8c43148154a3bd8987f1c1e0ff26a989a10c5f072ba2(
|
|
3143
|
+
value: typing.Optional[builtins.str],
|
|
3144
|
+
) -> None:
|
|
3145
|
+
"""Type checking stubs"""
|
|
3146
|
+
pass
|
|
3147
|
+
|
|
3148
|
+
def _typecheckingstub__43c7ff5eb70740ddcbf72fae725c27870249dfb23fdbca3df5963221ac9c132f(
|
|
3149
|
+
value: typing.Optional[typing.List[_CfnTag_f6864754]],
|
|
3150
|
+
) -> None:
|
|
3151
|
+
"""Type checking stubs"""
|
|
3152
|
+
pass
|
|
3153
|
+
|
|
3154
|
+
def _typecheckingstub__f165a00a101e72d860585d7255e3d0ae733a51dcec3ea6dd3e616d27778b3415(
|
|
3155
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnEncoderConfiguration.VideoProperty]],
|
|
3156
|
+
) -> None:
|
|
3157
|
+
"""Type checking stubs"""
|
|
3158
|
+
pass
|
|
3159
|
+
|
|
3160
|
+
def _typecheckingstub__34f2c1c7f794b153dbb8eef658c04b4e6467fa06e325f7b2c94dc782acbeab26(
|
|
3161
|
+
*,
|
|
3162
|
+
bitrate: typing.Optional[jsii.Number] = None,
|
|
3163
|
+
framerate: typing.Optional[jsii.Number] = None,
|
|
3164
|
+
height: typing.Optional[jsii.Number] = None,
|
|
3165
|
+
width: typing.Optional[jsii.Number] = None,
|
|
3166
|
+
) -> None:
|
|
3167
|
+
"""Type checking stubs"""
|
|
3168
|
+
pass
|
|
3169
|
+
|
|
3170
|
+
def _typecheckingstub__663e73ad8dc18892ff8c6aa7cec15d284adf341fe58eeb580e68cff0a92ee161(
|
|
3171
|
+
*,
|
|
3172
|
+
name: typing.Optional[builtins.str] = None,
|
|
3173
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3174
|
+
video: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnEncoderConfiguration.VideoProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3175
|
+
) -> None:
|
|
3176
|
+
"""Type checking stubs"""
|
|
3177
|
+
pass
|
|
3178
|
+
|
|
2100
3179
|
def _typecheckingstub__d8c9299641f93177a19cfd84cad783d859723e15238afc5b2487f08100163f85(
|
|
2101
3180
|
scope: _constructs_77d1e7e8.Construct,
|
|
2102
3181
|
id: builtins.str,
|
|
@@ -2147,6 +3226,72 @@ def _typecheckingstub__7a8be2c5b1653b9a20f33850cbab1a9c21d6b30034b5c68883e658d0e
|
|
|
2147
3226
|
"""Type checking stubs"""
|
|
2148
3227
|
pass
|
|
2149
3228
|
|
|
3229
|
+
def _typecheckingstub__987a35e58d5c2ae76d6f7c41b5ef19dc05ac42c651fd8a03f9f28e044029b375(
|
|
3230
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
3231
|
+
id: builtins.str,
|
|
3232
|
+
*,
|
|
3233
|
+
allowed_countries: typing.Sequence[builtins.str],
|
|
3234
|
+
allowed_origins: typing.Sequence[builtins.str],
|
|
3235
|
+
enable_strict_origin_enforcement: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
3236
|
+
name: typing.Optional[builtins.str] = None,
|
|
3237
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3238
|
+
) -> None:
|
|
3239
|
+
"""Type checking stubs"""
|
|
3240
|
+
pass
|
|
3241
|
+
|
|
3242
|
+
def _typecheckingstub__6f3f6891340e6dab4eba842f305f96e563b405ee29ecb437451d108aecb54492(
|
|
3243
|
+
inspector: _TreeInspector_488e0dd5,
|
|
3244
|
+
) -> None:
|
|
3245
|
+
"""Type checking stubs"""
|
|
3246
|
+
pass
|
|
3247
|
+
|
|
3248
|
+
def _typecheckingstub__0e57b154c63f829875b079b3d6baf6c33a6d6c377987d9ac6e9f4586303e9729(
|
|
3249
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
3250
|
+
) -> None:
|
|
3251
|
+
"""Type checking stubs"""
|
|
3252
|
+
pass
|
|
3253
|
+
|
|
3254
|
+
def _typecheckingstub__f6636af9e45dbeea2bcf7b5990280edcd8fec18083a4bfe23a76e19bd655ef03(
|
|
3255
|
+
value: typing.List[builtins.str],
|
|
3256
|
+
) -> None:
|
|
3257
|
+
"""Type checking stubs"""
|
|
3258
|
+
pass
|
|
3259
|
+
|
|
3260
|
+
def _typecheckingstub__773f5ee580b6a7c42904b5a38460c9ae7e7e147bde8b69e1c43edddd32d7dc69(
|
|
3261
|
+
value: typing.List[builtins.str],
|
|
3262
|
+
) -> None:
|
|
3263
|
+
"""Type checking stubs"""
|
|
3264
|
+
pass
|
|
3265
|
+
|
|
3266
|
+
def _typecheckingstub__67d34a00cb21cb2e87b091d21364ddc0afcd5ff11075db95ae750d23e62e2808(
|
|
3267
|
+
value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
|
|
3268
|
+
) -> None:
|
|
3269
|
+
"""Type checking stubs"""
|
|
3270
|
+
pass
|
|
3271
|
+
|
|
3272
|
+
def _typecheckingstub__4b36ada0e65d44733ed151613d84de1502ed0c39b1d83d8f62ea23a0f231bba3(
|
|
3273
|
+
value: typing.Optional[builtins.str],
|
|
3274
|
+
) -> None:
|
|
3275
|
+
"""Type checking stubs"""
|
|
3276
|
+
pass
|
|
3277
|
+
|
|
3278
|
+
def _typecheckingstub__72c43ae8ddd92a7ae402fb8cc1729052bd0d141f4f2106265c702c75bd0b9369(
|
|
3279
|
+
value: typing.Optional[typing.List[_CfnTag_f6864754]],
|
|
3280
|
+
) -> None:
|
|
3281
|
+
"""Type checking stubs"""
|
|
3282
|
+
pass
|
|
3283
|
+
|
|
3284
|
+
def _typecheckingstub__feaf48f348987f686c52239e867f8aedc7a8a6debbbc2bec008fea1cc72c201f(
|
|
3285
|
+
*,
|
|
3286
|
+
allowed_countries: typing.Sequence[builtins.str],
|
|
3287
|
+
allowed_origins: typing.Sequence[builtins.str],
|
|
3288
|
+
enable_strict_origin_enforcement: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
3289
|
+
name: typing.Optional[builtins.str] = None,
|
|
3290
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3291
|
+
) -> None:
|
|
3292
|
+
"""Type checking stubs"""
|
|
3293
|
+
pass
|
|
3294
|
+
|
|
2150
3295
|
def _typecheckingstub__541cdf033047e5777646c5f067e03131707927e43c41e609fd3ac9ee776ae419(
|
|
2151
3296
|
scope: _constructs_77d1e7e8.Construct,
|
|
2152
3297
|
id: builtins.str,
|
|
@@ -2295,6 +3440,63 @@ def _typecheckingstub__f7a0020ee283466459b434f83d43a5d205fcf4dbcde3ddb35eef021e6
|
|
|
2295
3440
|
"""Type checking stubs"""
|
|
2296
3441
|
pass
|
|
2297
3442
|
|
|
3443
|
+
def _typecheckingstub__dce4d013deb7e0886892fdd53eb91ee35dbd9f9b177c89526d3247ebc9882881(
|
|
3444
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
3445
|
+
id: builtins.str,
|
|
3446
|
+
*,
|
|
3447
|
+
s3: typing.Union[_IResolvable_da3f097b, typing.Union[CfnStorageConfiguration.S3StorageConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
3448
|
+
name: typing.Optional[builtins.str] = None,
|
|
3449
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3450
|
+
) -> None:
|
|
3451
|
+
"""Type checking stubs"""
|
|
3452
|
+
pass
|
|
3453
|
+
|
|
3454
|
+
def _typecheckingstub__2494a1ad7f068edf1f7c9065f8fab79a66a716614a7b447a5ad3f667c000931c(
|
|
3455
|
+
inspector: _TreeInspector_488e0dd5,
|
|
3456
|
+
) -> None:
|
|
3457
|
+
"""Type checking stubs"""
|
|
3458
|
+
pass
|
|
3459
|
+
|
|
3460
|
+
def _typecheckingstub__f04371e94acebb618807659e6214b479c084f311d8b8e55b0d7126c699b0095a(
|
|
3461
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
3462
|
+
) -> None:
|
|
3463
|
+
"""Type checking stubs"""
|
|
3464
|
+
pass
|
|
3465
|
+
|
|
3466
|
+
def _typecheckingstub__a41e5161b80f9addb1b0e4316f4d2265340c959af7b1d4c11af686d0a7447cac(
|
|
3467
|
+
value: typing.Union[_IResolvable_da3f097b, CfnStorageConfiguration.S3StorageConfigurationProperty],
|
|
3468
|
+
) -> None:
|
|
3469
|
+
"""Type checking stubs"""
|
|
3470
|
+
pass
|
|
3471
|
+
|
|
3472
|
+
def _typecheckingstub__c09664e580fb852260e35bce701abfe5d1c54a635fc151ec55bf483f45e7ac77(
|
|
3473
|
+
value: typing.Optional[builtins.str],
|
|
3474
|
+
) -> None:
|
|
3475
|
+
"""Type checking stubs"""
|
|
3476
|
+
pass
|
|
3477
|
+
|
|
3478
|
+
def _typecheckingstub__ac4f224a45d80fb7934ebfc58d4a23ea231aeab0929608af10892ba63ba4e79b(
|
|
3479
|
+
value: typing.Optional[typing.List[_CfnTag_f6864754]],
|
|
3480
|
+
) -> None:
|
|
3481
|
+
"""Type checking stubs"""
|
|
3482
|
+
pass
|
|
3483
|
+
|
|
3484
|
+
def _typecheckingstub__69c0a188191cf8e78c91503f301a8af37a069a58e49a9e4b1175c595d36ec107(
|
|
3485
|
+
*,
|
|
3486
|
+
bucket_name: builtins.str,
|
|
3487
|
+
) -> None:
|
|
3488
|
+
"""Type checking stubs"""
|
|
3489
|
+
pass
|
|
3490
|
+
|
|
3491
|
+
def _typecheckingstub__72410106e250d1874fbd4f3d9ea6ae3d4ffef1a3d301f8dc3bce88a672f05e4e(
|
|
3492
|
+
*,
|
|
3493
|
+
s3: typing.Union[_IResolvable_da3f097b, typing.Union[CfnStorageConfiguration.S3StorageConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
3494
|
+
name: typing.Optional[builtins.str] = None,
|
|
3495
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3496
|
+
) -> None:
|
|
3497
|
+
"""Type checking stubs"""
|
|
3498
|
+
pass
|
|
3499
|
+
|
|
2298
3500
|
def _typecheckingstub__c508febc00a5b76d50ae6b38407e9fa4357bcef12dfb4180bbc821ced1e89112(
|
|
2299
3501
|
scope: _constructs_77d1e7e8.Construct,
|
|
2300
3502
|
id: builtins.str,
|