@@ -445,6 +445,75 @@ public void MediaPackageV2CreateOriginEndpoint()
445
445
#endregion
446
446
}
447
447
448
+ public void MediaPackageV2CreateOriginEndpoint ( )
449
+ {
450
+ #region example-3
451
+
452
+ var client = new AmazonMediaPackageV2Client ( ) ;
453
+ var response = client . CreateOriginEndpoint ( new CreateOriginEndpointRequest
454
+ {
455
+ ChannelGroupName = "exampleChannelGroup" ,
456
+ ChannelName = "exampleChannel" ,
457
+ ContainerType = "ISM" ,
458
+ Description = "Description for exampleOriginEndpointISM" ,
459
+ ForceEndpointErrorConfiguration = new ForceEndpointErrorConfiguration { EndpointErrorConditions = new List < string > {
460
+ "STALE_MANIFEST" ,
461
+ "INCOMPLETE_MANIFEST" ,
462
+ "MISSING_DRM_KEY" ,
463
+ "SLATE_INPUT"
464
+ } } ,
465
+ MssManifests = new List < CreateMssManifestConfiguration > {
466
+ new CreateMssManifestConfiguration {
467
+ ManifestLayout = "FULL" ,
468
+ ManifestName = "exampleMssManifest1" ,
469
+ ManifestWindowSeconds = 60
470
+ }
471
+ } ,
472
+ OriginEndpointName = "exampleOriginEndpointISM" ,
473
+ Segment = new Segment {
474
+ Encryption = new Encryption {
475
+ EncryptionMethod = new EncryptionMethod { IsmEncryptionMethod = "CENC" } ,
476
+ SpekeKeyProvider = new SpekeKeyProvider {
477
+ DrmSystems = new List < string > {
478
+ "PLAYREADY"
479
+ } ,
480
+ EncryptionContractConfiguration = new EncryptionContractConfiguration {
481
+ PresetSpeke20Audio = "SHARED" ,
482
+ PresetSpeke20Video = "SHARED"
483
+ } ,
484
+ ResourceId = "ResourceId" ,
485
+ RoleArn = "arn:aws:iam::123456789012:role/empRole" ,
486
+ Url = "https://speke-key-provider.example.com"
487
+ }
488
+ } ,
489
+ SegmentDurationSeconds = 2 ,
490
+ SegmentName = "segmentName"
491
+ } ,
492
+ StartoverWindowSeconds = 300 ,
493
+ Tags = new Dictionary < string , string > {
494
+ { "key1" , "value1" } ,
495
+ { "key2" , "value2" }
496
+ }
497
+ } ) ;
498
+
499
+ string arn = response . Arn ;
500
+ string channelGroupName = response . ChannelGroupName ;
501
+ string channelName = response . ChannelName ;
502
+ string containerType = response . ContainerType ;
503
+ DateTime createdAt = response . CreatedAt ;
504
+ string description = response . Description ;
505
+ string eTag = response . ETag ;
506
+ ForceEndpointErrorConfiguration forceEndpointErrorConfiguration = response . ForceEndpointErrorConfiguration ;
507
+ DateTime modifiedAt = response . ModifiedAt ;
508
+ List < GetMssManifestConfiguration > mssManifests = response . MssManifests ;
509
+ string originEndpointName = response . OriginEndpointName ;
510
+ Segment segment = response . Segment ;
511
+ int startoverWindowSeconds = response . StartoverWindowSeconds ;
512
+ Dictionary < string , string > tags = response . Tags ;
513
+
514
+ #endregion
515
+ }
516
+
448
517
public void MediaPackageV2DeleteChannel ( )
449
518
{
450
519
#region example-1
@@ -648,6 +717,36 @@ public void MediaPackageV2GetOriginEndpoint()
648
717
#endregion
649
718
}
650
719
720
+ public void MediaPackageV2GetOriginEndpoint ( )
721
+ {
722
+ #region example-2
723
+
724
+ var client = new AmazonMediaPackageV2Client ( ) ;
725
+ var response = client . GetOriginEndpoint ( new GetOriginEndpointRequest
726
+ {
727
+ ChannelGroupName = "exampleChannelGroup" ,
728
+ ChannelName = "exampleChannel" ,
729
+ OriginEndpointName = "exampleOriginEndpointISM"
730
+ } ) ;
731
+
732
+ string arn = response . Arn ;
733
+ string channelGroupName = response . ChannelGroupName ;
734
+ string channelName = response . ChannelName ;
735
+ string containerType = response . ContainerType ;
736
+ DateTime createdAt = response . CreatedAt ;
737
+ string description = response . Description ;
738
+ string eTag = response . ETag ;
739
+ ForceEndpointErrorConfiguration forceEndpointErrorConfiguration = response . ForceEndpointErrorConfiguration ;
740
+ DateTime modifiedAt = response . ModifiedAt ;
741
+ List < GetMssManifestConfiguration > mssManifests = response . MssManifests ;
742
+ string originEndpointName = response . OriginEndpointName ;
743
+ Segment segment = response . Segment ;
744
+ int startoverWindowSeconds = response . StartoverWindowSeconds ;
745
+ Dictionary < string , string > tags = response . Tags ;
746
+
747
+ #endregion
748
+ }
749
+
651
750
public void MediaPackageV2GetOriginEndpointPolicy ( )
652
751
{
653
752
#region example-1
@@ -1071,6 +1170,76 @@ public void MediaPackageV2UpdateOriginEndpoint()
1071
1170
#endregion
1072
1171
}
1073
1172
1173
+ public void MediaPackageV2UpdateOriginEndpoint ( )
1174
+ {
1175
+ #region example-2
1176
+
1177
+ var client = new AmazonMediaPackageV2Client ( ) ;
1178
+ var response = client . UpdateOriginEndpoint ( new UpdateOriginEndpointRequest
1179
+ {
1180
+ ChannelGroupName = "exampleChannelGroup" ,
1181
+ ChannelName = "exampleChannel" ,
1182
+ ContainerType = "ISM" ,
1183
+ Description = "Updated description for exampleOriginEndpointISM" ,
1184
+ ForceEndpointErrorConfiguration = new ForceEndpointErrorConfiguration { EndpointErrorConditions = new List < string > {
1185
+ "STALE_MANIFEST" ,
1186
+ "INCOMPLETE_MANIFEST" ,
1187
+ "MISSING_DRM_KEY" ,
1188
+ "SLATE_INPUT"
1189
+ } } ,
1190
+ MssManifests = new List < CreateMssManifestConfiguration > {
1191
+ new CreateMssManifestConfiguration {
1192
+ ManifestLayout = "FULL" ,
1193
+ ManifestName = "exampleMssManifest1" ,
1194
+ ManifestWindowSeconds = 60
1195
+ } ,
1196
+ new CreateMssManifestConfiguration {
1197
+ ManifestLayout = "COMPACT" ,
1198
+ ManifestName = "exampleMssManifest2" ,
1199
+ ManifestWindowSeconds = 30
1200
+ }
1201
+ } ,
1202
+ OriginEndpointName = "exampleOriginEndpointISM" ,
1203
+ Segment = new Segment {
1204
+ Encryption = new Encryption {
1205
+ EncryptionMethod = new EncryptionMethod { IsmEncryptionMethod = "CENC" } ,
1206
+ SpekeKeyProvider = new SpekeKeyProvider {
1207
+ DrmSystems = new List < string > {
1208
+ "PLAYREADY"
1209
+ } ,
1210
+ EncryptionContractConfiguration = new EncryptionContractConfiguration {
1211
+ PresetSpeke20Audio = "SHARED" ,
1212
+ PresetSpeke20Video = "SHARED"
1213
+ } ,
1214
+ ResourceId = "ResourceId" ,
1215
+ RoleArn = "arn:aws:iam::123456789012:role/empRole" ,
1216
+ Url = "https://speke-key-provider.example.com"
1217
+ }
1218
+ } ,
1219
+ SegmentDurationSeconds = 2 ,
1220
+ SegmentName = "segmentName2"
1221
+ } ,
1222
+ StartoverWindowSeconds = 600
1223
+ } ) ;
1224
+
1225
+ string arn = response . Arn ;
1226
+ string channelGroupName = response . ChannelGroupName ;
1227
+ string channelName = response . ChannelName ;
1228
+ string containerType = response . ContainerType ;
1229
+ DateTime createdAt = response . CreatedAt ;
1230
+ string description = response . Description ;
1231
+ string eTag = response . ETag ;
1232
+ ForceEndpointErrorConfiguration forceEndpointErrorConfiguration = response . ForceEndpointErrorConfiguration ;
1233
+ DateTime modifiedAt = response . ModifiedAt ;
1234
+ List < GetMssManifestConfiguration > mssManifests = response . MssManifests ;
1235
+ string originEndpointName = response . OriginEndpointName ;
1236
+ Segment segment = response . Segment ;
1237
+ int startoverWindowSeconds = response . StartoverWindowSeconds ;
1238
+ Dictionary < string , string > tags = response . Tags ;
1239
+
1240
+ #endregion
1241
+ }
1242
+
1074
1243
1075
1244
# region ISample Members
1076
1245
public virtual void Run ( )
0 commit comments