package awsmediapackage // Key provider settings for DRM. // // Example: // // The code below shows an example of how to instantiate this type. // // The values are placeholders you should change. // import "github.com/aws/aws-cdk-go/awscdk" // // spekeKeyProviderProperty := &SpekeKeyProviderProperty{ // ResourceId: jsii.String("resourceId"), // RoleArn: jsii.String("roleArn"), // SystemIds: []*string{ // jsii.String("systemIds"), // }, // Url: jsii.String("url"), // // // the properties below are optional // CertificateArn: jsii.String("certificateArn"), // EncryptionContractConfiguration: &EncryptionContractConfigurationProperty{ // PresetSpeke20Audio: jsii.String("presetSpeke20Audio"), // PresetSpeke20Video: jsii.String("presetSpeke20Video"), // }, // } // // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-originendpoint-spekekeyprovider.html // type CfnOriginEndpoint_SpekeKeyProviderProperty struct { // Unique identifier for this endpoint, as it is configured in the key provider service. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-originendpoint-spekekeyprovider.html#cfn-mediapackage-originendpoint-spekekeyprovider-resourceid // ResourceId *string `field:"required" json:"resourceId" yaml:"resourceId"` // The ARN for the IAM role that's granted by the key provider to provide access to the key provider API. // // This role must have a trust policy that allows AWS Elemental MediaPackage to assume the role, and it must have a sufficient permissions policy to allow access to the specific key retrieval URL. Valid format: arn:aws:iam::{accountID}:role/{name} // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-originendpoint-spekekeyprovider.html#cfn-mediapackage-originendpoint-spekekeyprovider-rolearn // RoleArn *string `field:"required" json:"roleArn" yaml:"roleArn"` // List of unique identifiers for the DRM systems to use, as defined in the CPIX specification. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-originendpoint-spekekeyprovider.html#cfn-mediapackage-originendpoint-spekekeyprovider-systemids // SystemIds *[]*string `field:"required" json:"systemIds" yaml:"systemIds"` // URL for the key provider’s key retrieval API endpoint. // // Must start with https://. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-originendpoint-spekekeyprovider.html#cfn-mediapackage-originendpoint-spekekeyprovider-url // Url *string `field:"required" json:"url" yaml:"url"` // The Amazon Resource Name (ARN) for the certificate that you imported to AWS Certificate Manager to add content key encryption to this endpoint. // // For this feature to work, your DRM key provider must support content key encryption. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-originendpoint-spekekeyprovider.html#cfn-mediapackage-originendpoint-spekekeyprovider-certificatearn // CertificateArn *string `field:"optional" json:"certificateArn" yaml:"certificateArn"` // Use `encryptionContractConfiguration` to 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. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-originendpoint-spekekeyprovider.html#cfn-mediapackage-originendpoint-spekekeyprovider-encryptioncontractconfiguration // EncryptionContractConfiguration interface{} `field:"optional" json:"encryptionContractConfiguration" yaml:"encryptionContractConfiguration"` }