aws-cdk.aws-ivs-alpha 2.143.1a0__py3-none-any.whl → 2.144.0a0__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.aws-ivs-alpha might be problematic. Click here for more details.

@@ -39,6 +39,22 @@ You can create a channel
39
39
  my_channel = ivs.Channel(self, "Channel")
40
40
  ```
41
41
 
42
+ You can use Advanced Channel type by setting the `type` property to
43
+ `ivs.ChannelType.ADVANCED_HD` or `ivs.ChannelType.ADVANCED_SD`.
44
+
45
+ Additionally, when using the Advanced Channel type, you can set
46
+ the `preset` property to `ivs.Preset.CONSTRAINED_BANDWIDTH_DELIVERY`
47
+ or `ivs.Preset.HIGHER_BANDWIDTH_DELIVERY`.
48
+
49
+ For more information, see [Amazon IVS Streaming Configuration](https://docs.aws.amazon.com/ivs/latest/LowLatencyUserGuide/streaming-config.html).
50
+
51
+ ```python
52
+ my_channel = ivs.Channel(self, "myChannel",
53
+ type=ivs.ChannelType.ADVANCED_HD,
54
+ preset=ivs.Preset.CONSTRAINED_BANDWIDTH_DELIVERY
55
+ )
56
+ ```
57
+
42
58
  ### Importing an existing channel
43
59
 
44
60
  You can reference an existing channel, for example, if you need to create a
@@ -116,6 +132,7 @@ import constructs as _constructs_77d1e7e8
116
132
  "authorized": "authorized",
117
133
  "channel_name": "channelName",
118
134
  "latency_mode": "latencyMode",
135
+ "preset": "preset",
119
136
  "type": "type",
120
137
  },
121
138
  )
@@ -126,6 +143,7 @@ class ChannelProps:
126
143
  authorized: typing.Optional[builtins.bool] = None,
127
144
  channel_name: typing.Optional[builtins.str] = None,
128
145
  latency_mode: typing.Optional["LatencyMode"] = None,
146
+ preset: typing.Optional["Preset"] = None,
129
147
  type: typing.Optional["ChannelType"] = None,
130
148
  ) -> None:
131
149
  '''(experimental) Properties for creating a new Channel.
@@ -133,6 +151,7 @@ class ChannelProps:
133
151
  :param authorized: (experimental) Whether the channel is authorized. If you wish to make an authorized channel, you will need to ensure that a PlaybackKeyPair has been uploaded to your account as this is used to validate the signed JWT that is required for authorization Default: false
134
152
  :param channel_name: (experimental) A name for the channel. Default: Automatically generated name
135
153
  :param latency_mode: (experimental) Channel latency mode. Default: LatencyMode.LOW
154
+ :param preset: (experimental) An optional transcode preset for the channel. Can be used for ADVANCED_HD and ADVANCED_SD channel types. When LOW or STANDARD is used, the preset will be overridden and set to none regardless of the value provided. Default: - Preset.HIGHER_BANDWIDTH_DELIVERY if channelType is ADVANCED_SD or ADVANCED_HD, none otherwise
136
155
  :param type: (experimental) The channel type, which determines the allowable resolution and bitrate. If you exceed the allowable resolution or bitrate, the stream will disconnect immediately Default: ChannelType.STANDARD
137
156
 
138
157
  :stability: experimental
@@ -140,8 +159,9 @@ class ChannelProps:
140
159
 
141
160
  Example::
142
161
 
143
- my_channel = ivs.Channel(self, "Channel",
144
- authorized=True
162
+ my_channel = ivs.Channel(self, "myChannel",
163
+ type=ivs.ChannelType.ADVANCED_HD,
164
+ preset=ivs.Preset.CONSTRAINED_BANDWIDTH_DELIVERY
145
165
  )
146
166
  '''
147
167
  if __debug__:
@@ -149,6 +169,7 @@ class ChannelProps:
149
169
  check_type(argname="argument authorized", value=authorized, expected_type=type_hints["authorized"])
150
170
  check_type(argname="argument channel_name", value=channel_name, expected_type=type_hints["channel_name"])
151
171
  check_type(argname="argument latency_mode", value=latency_mode, expected_type=type_hints["latency_mode"])
172
+ check_type(argname="argument preset", value=preset, expected_type=type_hints["preset"])
152
173
  check_type(argname="argument type", value=type, expected_type=type_hints["type"])
153
174
  self._values: typing.Dict[builtins.str, typing.Any] = {}
154
175
  if authorized is not None:
@@ -157,6 +178,8 @@ class ChannelProps:
157
178
  self._values["channel_name"] = channel_name
158
179
  if latency_mode is not None:
159
180
  self._values["latency_mode"] = latency_mode
181
+ if preset is not None:
182
+ self._values["preset"] = preset
160
183
  if type is not None:
161
184
  self._values["type"] = type
162
185
 
@@ -197,6 +220,20 @@ class ChannelProps:
197
220
  result = self._values.get("latency_mode")
198
221
  return typing.cast(typing.Optional["LatencyMode"], result)
199
222
 
223
+ @builtins.property
224
+ def preset(self) -> typing.Optional["Preset"]:
225
+ '''(experimental) An optional transcode preset for the channel.
226
+
227
+ Can be used for ADVANCED_HD and ADVANCED_SD channel types.
228
+ When LOW or STANDARD is used, the preset will be overridden and set to none regardless of the value provided.
229
+
230
+ :default: - Preset.HIGHER_BANDWIDTH_DELIVERY if channelType is ADVANCED_SD or ADVANCED_HD, none otherwise
231
+
232
+ :stability: experimental
233
+ '''
234
+ result = self._values.get("preset")
235
+ return typing.cast(typing.Optional["Preset"], result)
236
+
200
237
  @builtins.property
201
238
  def type(self) -> typing.Optional["ChannelType"]:
202
239
  '''(experimental) The channel type, which determines the allowable resolution and bitrate.
@@ -228,21 +265,47 @@ class ChannelType(enum.Enum):
228
265
 
229
266
  If you exceed the allowable resolution or bitrate, the stream probably will disconnect immediately.
230
267
 
268
+ :see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-channel.html
231
269
  :stability: experimental
270
+ :exampleMetadata: infused
271
+
272
+ Example::
273
+
274
+ my_channel = ivs.Channel(self, "myChannel",
275
+ type=ivs.ChannelType.ADVANCED_HD,
276
+ preset=ivs.Preset.CONSTRAINED_BANDWIDTH_DELIVERY
277
+ )
232
278
  '''
233
279
 
234
280
  STANDARD = "STANDARD"
235
281
  '''(experimental) Multiple qualities are generated from the original input, to automatically give viewers the best experience for their devices and network conditions.
236
282
 
237
- :see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-channel.html
283
+ Transcoding allows higher playback quality across a range of download speeds. Resolution can be up to 1080p and bitrate can be up to 8.5 Mbps.
284
+ Audio is transcoded only for renditions 360p and below; above that, audio is passed through.
285
+
238
286
  :stability: experimental
239
287
  '''
240
288
  BASIC = "BASIC"
241
- '''(experimental) delivers the original input to viewers.
289
+ '''(experimental) Delivers the original input to viewers.
242
290
 
243
291
  The viewer’s video-quality choice is limited to the original input.
244
292
 
245
- :see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-channel.html
293
+ :stability: experimental
294
+ '''
295
+ ADVANCED_SD = "ADVANCED_SD"
296
+ '''(experimental) Multiple qualities are generated from the original input, to automatically give viewers the best experience for their devices and network conditions.
297
+
298
+ Input resolution can be up to 1080p and bitrate can be up to 8.5 Mbps; output is capped at SD quality (480p).
299
+ Audio for all renditions is transcoded, and an audio-only rendition is available.
300
+
301
+ :stability: experimental
302
+ '''
303
+ ADVANCED_HD = "ADVANCED_HD"
304
+ '''(experimental) Multiple qualities are generated from the original input, to automatically give viewers the best experience for their devices and network conditions.
305
+
306
+ Input resolution can be up to 1080p and bitrate can be up to 8.5 Mbps; output is capped at HD quality (720p).
307
+ Audio for all renditions is transcoded, and an audio-only rendition is available.
308
+
246
309
  :stability: experimental
247
310
  '''
248
311
 
@@ -570,6 +633,40 @@ class PlaybackKeyPairProps:
570
633
  )
571
634
 
572
635
 
636
+ @jsii.enum(jsii_type="@aws-cdk/aws-ivs-alpha.Preset")
637
+ class Preset(enum.Enum):
638
+ '''(experimental) An optional transcode preset for the channel.
639
+
640
+ This is selectable only for ADVANCED_HD and ADVANCED_SD channel types.
641
+
642
+ :see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-channel.html
643
+ :stability: experimental
644
+ :exampleMetadata: infused
645
+
646
+ Example::
647
+
648
+ my_channel = ivs.Channel(self, "myChannel",
649
+ type=ivs.ChannelType.ADVANCED_HD,
650
+ preset=ivs.Preset.CONSTRAINED_BANDWIDTH_DELIVERY
651
+ )
652
+ '''
653
+
654
+ CONSTRAINED_BANDWIDTH_DELIVERY = "CONSTRAINED_BANDWIDTH_DELIVERY"
655
+ '''(experimental) Use a lower bitrate than STANDARD for each quality level.
656
+
657
+ Use it if you have low download bandwidth and/or simple video content (e.g., talking heads).
658
+
659
+ :stability: experimental
660
+ '''
661
+ HIGHER_BANDWIDTH_DELIVERY = "HIGHER_BANDWIDTH_DELIVERY"
662
+ '''(experimental) Use a higher bitrate for each quality level.
663
+
664
+ Use it if you have high download bandwidth and/or complex video content (e.g., flashes and quick scene changes).
665
+
666
+ :stability: experimental
667
+ '''
668
+
669
+
573
670
  @jsii.implements(IStreamKey)
574
671
  class StreamKey(
575
672
  _aws_cdk_ceddda9d.Resource,
@@ -700,7 +797,7 @@ class Channel(
700
797
 
701
798
  Example::
702
799
 
703
- my_channel = ivs.Channel(self, "Channel")
800
+ my_channel = ivs.Channel.from_channel_arn(self, "Channel", my_channel_arn)
704
801
  '''
705
802
 
706
803
  def __init__(
@@ -711,6 +808,7 @@ class Channel(
711
808
  authorized: typing.Optional[builtins.bool] = None,
712
809
  channel_name: typing.Optional[builtins.str] = None,
713
810
  latency_mode: typing.Optional[LatencyMode] = None,
811
+ preset: typing.Optional[Preset] = None,
714
812
  type: typing.Optional[ChannelType] = None,
715
813
  ) -> None:
716
814
  '''
@@ -719,6 +817,7 @@ class Channel(
719
817
  :param authorized: (experimental) Whether the channel is authorized. If you wish to make an authorized channel, you will need to ensure that a PlaybackKeyPair has been uploaded to your account as this is used to validate the signed JWT that is required for authorization Default: false
720
818
  :param channel_name: (experimental) A name for the channel. Default: Automatically generated name
721
819
  :param latency_mode: (experimental) Channel latency mode. Default: LatencyMode.LOW
820
+ :param preset: (experimental) An optional transcode preset for the channel. Can be used for ADVANCED_HD and ADVANCED_SD channel types. When LOW or STANDARD is used, the preset will be overridden and set to none regardless of the value provided. Default: - Preset.HIGHER_BANDWIDTH_DELIVERY if channelType is ADVANCED_SD or ADVANCED_HD, none otherwise
722
821
  :param type: (experimental) The channel type, which determines the allowable resolution and bitrate. If you exceed the allowable resolution or bitrate, the stream will disconnect immediately Default: ChannelType.STANDARD
723
822
 
724
823
  :stability: experimental
@@ -731,6 +830,7 @@ class Channel(
731
830
  authorized=authorized,
732
831
  channel_name=channel_name,
733
832
  latency_mode=latency_mode,
833
+ preset=preset,
734
834
  type=type,
735
835
  )
736
836
 
@@ -819,6 +919,7 @@ __all__ = [
819
919
  "LatencyMode",
820
920
  "PlaybackKeyPair",
821
921
  "PlaybackKeyPairProps",
922
+ "Preset",
822
923
  "StreamKey",
823
924
  "StreamKeyProps",
824
925
  ]
@@ -830,6 +931,7 @@ def _typecheckingstub__0ebf6a0e98bbd5b88d9676fbe616666a44f837cba80675eade5df1fea
830
931
  authorized: typing.Optional[builtins.bool] = None,
831
932
  channel_name: typing.Optional[builtins.str] = None,
832
933
  latency_mode: typing.Optional[LatencyMode] = None,
934
+ preset: typing.Optional[Preset] = None,
833
935
  type: typing.Optional[ChannelType] = None,
834
936
  ) -> None:
835
937
  """Type checking stubs"""
@@ -882,6 +984,7 @@ def _typecheckingstub__07139327925dc97a551bbf17c849a0f698e0c9c60d3da3f65f2b3d2be
882
984
  authorized: typing.Optional[builtins.bool] = None,
883
985
  channel_name: typing.Optional[builtins.str] = None,
884
986
  latency_mode: typing.Optional[LatencyMode] = None,
987
+ preset: typing.Optional[Preset] = None,
885
988
  type: typing.Optional[ChannelType] = None,
886
989
  ) -> None:
887
990
  """Type checking stubs"""
@@ -18,9 +18,9 @@ import constructs._jsii
18
18
 
19
19
  __jsii_assembly__ = jsii.JSIIAssembly.load(
20
20
  "@aws-cdk/aws-ivs-alpha",
21
- "2.143.1-alpha.0",
21
+ "2.144.0-alpha.0",
22
22
  __name__[0:-6],
23
- "aws-ivs-alpha@2.143.1-alpha.0.jsii.tgz",
23
+ "aws-ivs-alpha@2.144.0-alpha.0.jsii.tgz",
24
24
  )
25
25
 
26
26
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aws-cdk.aws-ivs-alpha
3
- Version: 2.143.1a0
3
+ Version: 2.144.0a0
4
4
  Summary: The CDK Construct Library for AWS::IVS
5
5
  Home-page: https://github.com/aws/aws-cdk
6
6
  Author: Amazon Web Services
@@ -23,7 +23,7 @@ Requires-Python: ~=3.8
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
25
  License-File: NOTICE
26
- Requires-Dist: aws-cdk-lib <3.0.0,>=2.143.1
26
+ Requires-Dist: aws-cdk-lib <3.0.0,>=2.144.0
27
27
  Requires-Dist: constructs <11.0.0,>=10.0.0
28
28
  Requires-Dist: jsii <2.0.0,>=1.98.0
29
29
  Requires-Dist: publication >=0.0.3
@@ -69,6 +69,22 @@ You can create a channel
69
69
  my_channel = ivs.Channel(self, "Channel")
70
70
  ```
71
71
 
72
+ You can use Advanced Channel type by setting the `type` property to
73
+ `ivs.ChannelType.ADVANCED_HD` or `ivs.ChannelType.ADVANCED_SD`.
74
+
75
+ Additionally, when using the Advanced Channel type, you can set
76
+ the `preset` property to `ivs.Preset.CONSTRAINED_BANDWIDTH_DELIVERY`
77
+ or `ivs.Preset.HIGHER_BANDWIDTH_DELIVERY`.
78
+
79
+ For more information, see [Amazon IVS Streaming Configuration](https://docs.aws.amazon.com/ivs/latest/LowLatencyUserGuide/streaming-config.html).
80
+
81
+ ```python
82
+ my_channel = ivs.Channel(self, "myChannel",
83
+ type=ivs.ChannelType.ADVANCED_HD,
84
+ preset=ivs.Preset.CONSTRAINED_BANDWIDTH_DELIVERY
85
+ )
86
+ ```
87
+
72
88
  ### Importing an existing channel
73
89
 
74
90
  You can reference an existing channel, for example, if you need to create a
@@ -0,0 +1,10 @@
1
+ aws_cdk/aws_ivs_alpha/__init__.py,sha256=l-pcKM1wJqzDvOaZ0SC7yTQQozckqpvajIM_4BkCvZY,36420
2
+ aws_cdk/aws_ivs_alpha/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
+ aws_cdk/aws_ivs_alpha/_jsii/__init__.py,sha256=vc56Oac_G0wf-n5qdNkjOpenOhQ5PMGH8gsCiisT1_o,511
4
+ aws_cdk/aws_ivs_alpha/_jsii/aws-ivs-alpha@2.144.0-alpha.0.jsii.tgz,sha256=4dieBe60u0bBCGYM3v0YSUyLiH66mEMDENGLvAb_jHs,37183
5
+ aws_cdk.aws_ivs_alpha-2.144.0a0.dist-info/LICENSE,sha256=kEDF86xJUQh1E9M7UPKKbHepBEdFxIUyoGfTwQB7zKg,11391
6
+ aws_cdk.aws_ivs_alpha-2.144.0a0.dist-info/METADATA,sha256=aRFUvLxpCKp3cRZMBHWBgm9YxX71ugkQDosFkxUov2c,4960
7
+ aws_cdk.aws_ivs_alpha-2.144.0a0.dist-info/NOTICE,sha256=dXf56qvx2VDNCaqiRscOD2IH5GbmqbnKRzroZCeLtaQ,113
8
+ aws_cdk.aws_ivs_alpha-2.144.0a0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
9
+ aws_cdk.aws_ivs_alpha-2.144.0a0.dist-info/top_level.txt,sha256=1TALAKbuUGsMSrfKWEf268lySCmcqSEO6cDYe_XlLHM,8
10
+ aws_cdk.aws_ivs_alpha-2.144.0a0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.3)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,10 +0,0 @@
1
- aws_cdk/aws_ivs_alpha/__init__.py,sha256=Gxr-VC7XuqJW-0BGOXLmhQwbN8Gn2qpcunKOvvHFtWU,31553
2
- aws_cdk/aws_ivs_alpha/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
- aws_cdk/aws_ivs_alpha/_jsii/__init__.py,sha256=F0Y1UP4V0JIk79H_tzwIJqOsOWBXM6EDttM3vmZtLMY,511
4
- aws_cdk/aws_ivs_alpha/_jsii/aws-ivs-alpha@2.143.1-alpha.0.jsii.tgz,sha256=NfkUkOwUbwnV5otn8YNojr1FeKsVcsSX8YMFAPnUFVY,33600
5
- aws_cdk.aws_ivs_alpha-2.143.1a0.dist-info/LICENSE,sha256=kEDF86xJUQh1E9M7UPKKbHepBEdFxIUyoGfTwQB7zKg,11391
6
- aws_cdk.aws_ivs_alpha-2.143.1a0.dist-info/METADATA,sha256=93QoquwAMM4JyuKFU_EBXsCbHEN_t5uqlmBMlHOC9PA,4351
7
- aws_cdk.aws_ivs_alpha-2.143.1a0.dist-info/NOTICE,sha256=dXf56qvx2VDNCaqiRscOD2IH5GbmqbnKRzroZCeLtaQ,113
8
- aws_cdk.aws_ivs_alpha-2.143.1a0.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
9
- aws_cdk.aws_ivs_alpha-2.143.1a0.dist-info/top_level.txt,sha256=1TALAKbuUGsMSrfKWEf268lySCmcqSEO6cDYe_XlLHM,8
10
- aws_cdk.aws_ivs_alpha-2.143.1a0.dist-info/RECORD,,