/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the mediapackagev2-2022-12-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.MediaPackageV2.Model { /// /// The parameters for the SPEKE key provider. /// public partial class SpekeKeyProvider { private List _drmSystems = new List(); private EncryptionContractConfiguration _encryptionContractConfiguration; private string _resourceId; private string _roleArn; private string _url; /// /// Gets and sets the property DrmSystems. /// /// The DRM solution provider you're using to protect your content during distribution. /// /// [AWSProperty(Required=true, Min=1, Max=4)] public List DrmSystems { get { return this._drmSystems; } set { this._drmSystems = value; } } // Check to see if DrmSystems property is set internal bool IsSetDrmSystems() { return this._drmSystems != null && this._drmSystems.Count > 0; } /// /// Gets and sets the property EncryptionContractConfiguration. /// /// Configure one or more content encryption keys for your endpoints that use SPEKE Version /// 2.0. The encryption contract defines which content keys are used to encrypt the audio /// and video tracks in your stream. To configure the encryption contract, specify which /// audio and video encryption presets to use. /// /// [AWSProperty(Required=true)] public EncryptionContractConfiguration EncryptionContractConfiguration { get { return this._encryptionContractConfiguration; } set { this._encryptionContractConfiguration = value; } } // Check to see if EncryptionContractConfiguration property is set internal bool IsSetEncryptionContractConfiguration() { return this._encryptionContractConfiguration != null; } /// /// Gets and sets the property ResourceId. /// /// The unique identifier for the content. The service sends this to the key server to /// identify the current endpoint. How unique you make this depends on how fine-grained /// you want access controls to be. The service does not permit you to use the same ID /// for two simultaneous encryption processes. The resource ID is also known as the content /// ID. /// /// /// /// The following example shows a resource ID: MovieNight20171126093045 /// /// [AWSProperty(Required=true, Min=1, Max=256)] public string ResourceId { get { return this._resourceId; } set { this._resourceId = value; } } // Check to see if ResourceId property is set internal bool IsSetResourceId() { return this._resourceId != null; } /// /// Gets and sets the property RoleArn. /// /// The ARN for the IAM role granted by the key provider that provides access to the key /// provider API. This role must have a trust policy that allows MediaPackage to assume /// the role, and it must have a sufficient permissions policy to allow access to the /// specific key retrieval URL. Get this from your DRM solution provider. /// /// /// /// Valid format: arn:aws:iam::{accountID}:role/{name}. The following example /// shows a role ARN: arn:aws:iam::444455556666:role/SpekeAccess /// /// [AWSProperty(Required=true, Min=1, Max=2048)] public string RoleArn { get { return this._roleArn; } set { this._roleArn = value; } } // Check to see if RoleArn property is set internal bool IsSetRoleArn() { return this._roleArn != null; } /// /// Gets and sets the property Url. /// /// The URL of the API Gateway proxy that you set up to talk to your key server. The API /// Gateway proxy must reside in the same AWS Region as MediaPackage and must start with /// https://. /// /// /// /// The following example shows a URL: https://1wm2dx1f33.execute-api.us-west-2.amazonaws.com/SpekeSample/copyProtection /// /// /// [AWSProperty(Required=true, Min=1, Max=1024)] public string Url { get { return this._url; } set { this._url = value; } } // Check to see if Url property is set internal bool IsSetUrl() { return this._url != null; } } }