module Stratosphere.BedrockAgentCore.BrowserCustom.RecordingConfigProperty ( module Exports, RecordingConfigProperty(..), mkRecordingConfigProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.BedrockAgentCore.BrowserCustom.S3LocationProperty as Exports import Stratosphere.ResourceProperties import Stratosphere.Value data RecordingConfigProperty = -- | See: RecordingConfigProperty {haddock_workaround_ :: (), -- | See: enabled :: (Prelude.Maybe (Value Prelude.Bool)), -- | See: s3Location :: (Prelude.Maybe S3LocationProperty)} deriving stock (Prelude.Eq, Prelude.Show) mkRecordingConfigProperty :: RecordingConfigProperty mkRecordingConfigProperty = RecordingConfigProperty {haddock_workaround_ = (), enabled = Prelude.Nothing, s3Location = Prelude.Nothing} instance ToResourceProperties RecordingConfigProperty where toResourceProperties RecordingConfigProperty {..} = ResourceProperties {awsType = "AWS::BedrockAgentCore::BrowserCustom.RecordingConfig", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Enabled" Prelude.<$> enabled, (JSON..=) "S3Location" Prelude.<$> s3Location])} instance JSON.ToJSON RecordingConfigProperty where toJSON RecordingConfigProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Enabled" Prelude.<$> enabled, (JSON..=) "S3Location" Prelude.<$> s3Location])) instance Property "Enabled" RecordingConfigProperty where type PropertyType "Enabled" RecordingConfigProperty = Value Prelude.Bool set newValue RecordingConfigProperty {..} = RecordingConfigProperty {enabled = Prelude.pure newValue, ..} instance Property "S3Location" RecordingConfigProperty where type PropertyType "S3Location" RecordingConfigProperty = S3LocationProperty set newValue RecordingConfigProperty {..} = RecordingConfigProperty {s3Location = Prelude.pure newValue, ..}