module Stratosphere.MediaPackage.OriginEndpoint.AuthorizationProperty ( AuthorizationProperty(..), mkAuthorizationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data AuthorizationProperty = -- | See: AuthorizationProperty {haddock_workaround_ :: (), -- | See: cdnIdentifierSecret :: (Value Prelude.Text), -- | See: secretsRoleArn :: (Value Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkAuthorizationProperty :: Value Prelude.Text -> Value Prelude.Text -> AuthorizationProperty mkAuthorizationProperty cdnIdentifierSecret secretsRoleArn = AuthorizationProperty {haddock_workaround_ = (), cdnIdentifierSecret = cdnIdentifierSecret, secretsRoleArn = secretsRoleArn} instance ToResourceProperties AuthorizationProperty where toResourceProperties AuthorizationProperty {..} = ResourceProperties {awsType = "AWS::MediaPackage::OriginEndpoint.Authorization", supportsTags = Prelude.False, properties = ["CdnIdentifierSecret" JSON..= cdnIdentifierSecret, "SecretsRoleArn" JSON..= secretsRoleArn]} instance JSON.ToJSON AuthorizationProperty where toJSON AuthorizationProperty {..} = JSON.object ["CdnIdentifierSecret" JSON..= cdnIdentifierSecret, "SecretsRoleArn" JSON..= secretsRoleArn] instance Property "CdnIdentifierSecret" AuthorizationProperty where type PropertyType "CdnIdentifierSecret" AuthorizationProperty = Value Prelude.Text set newValue AuthorizationProperty {..} = AuthorizationProperty {cdnIdentifierSecret = newValue, ..} instance Property "SecretsRoleArn" AuthorizationProperty where type PropertyType "SecretsRoleArn" AuthorizationProperty = Value Prelude.Text set newValue AuthorizationProperty {..} = AuthorizationProperty {secretsRoleArn = newValue, ..}