module Stratosphere.BedrockAgentCore.CodeInterpreterCustom (
        module Exports, CodeInterpreterCustom(..), mkCodeInterpreterCustom
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.BedrockAgentCore.CodeInterpreterCustom.CodeInterpreterNetworkConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CodeInterpreterCustom
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-codeinterpretercustom.html>
    CodeInterpreterCustom {CodeInterpreterCustom -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-codeinterpretercustom.html#cfn-bedrockagentcore-codeinterpretercustom-description>
                           CodeInterpreterCustom -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-codeinterpretercustom.html#cfn-bedrockagentcore-codeinterpretercustom-executionrolearn>
                           CodeInterpreterCustom -> Maybe (Value Text)
executionRoleArn :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-codeinterpretercustom.html#cfn-bedrockagentcore-codeinterpretercustom-name>
                           CodeInterpreterCustom -> Value Text
name :: (Value Prelude.Text),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-codeinterpretercustom.html#cfn-bedrockagentcore-codeinterpretercustom-networkconfiguration>
                           CodeInterpreterCustom
-> CodeInterpreterNetworkConfigurationProperty
networkConfiguration :: CodeInterpreterNetworkConfigurationProperty,
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-codeinterpretercustom.html#cfn-bedrockagentcore-codeinterpretercustom-tags>
                           CodeInterpreterCustom -> Maybe (Map Text (Value Text))
tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
  deriving stock (CodeInterpreterCustom -> CodeInterpreterCustom -> Bool
(CodeInterpreterCustom -> CodeInterpreterCustom -> Bool)
-> (CodeInterpreterCustom -> CodeInterpreterCustom -> Bool)
-> Eq CodeInterpreterCustom
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CodeInterpreterCustom -> CodeInterpreterCustom -> Bool
== :: CodeInterpreterCustom -> CodeInterpreterCustom -> Bool
$c/= :: CodeInterpreterCustom -> CodeInterpreterCustom -> Bool
/= :: CodeInterpreterCustom -> CodeInterpreterCustom -> Bool
Prelude.Eq, Int -> CodeInterpreterCustom -> ShowS
[CodeInterpreterCustom] -> ShowS
CodeInterpreterCustom -> String
(Int -> CodeInterpreterCustom -> ShowS)
-> (CodeInterpreterCustom -> String)
-> ([CodeInterpreterCustom] -> ShowS)
-> Show CodeInterpreterCustom
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CodeInterpreterCustom -> ShowS
showsPrec :: Int -> CodeInterpreterCustom -> ShowS
$cshow :: CodeInterpreterCustom -> String
show :: CodeInterpreterCustom -> String
$cshowList :: [CodeInterpreterCustom] -> ShowS
showList :: [CodeInterpreterCustom] -> ShowS
Prelude.Show)
mkCodeInterpreterCustom ::
  Value Prelude.Text
  -> CodeInterpreterNetworkConfigurationProperty
     -> CodeInterpreterCustom
mkCodeInterpreterCustom :: Value Text
-> CodeInterpreterNetworkConfigurationProperty
-> CodeInterpreterCustom
mkCodeInterpreterCustom Value Text
name CodeInterpreterNetworkConfigurationProperty
networkConfiguration
  = CodeInterpreterCustom
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name,
       networkConfiguration :: CodeInterpreterNetworkConfigurationProperty
networkConfiguration = CodeInterpreterNetworkConfigurationProperty
networkConfiguration,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, executionRoleArn :: Maybe (Value Text)
executionRoleArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe (Map Text (Value Text))
tags = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CodeInterpreterCustom where
  toResourceProperties :: CodeInterpreterCustom -> ResourceProperties
toResourceProperties CodeInterpreterCustom {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
CodeInterpreterNetworkConfigurationProperty
haddock_workaround_ :: CodeInterpreterCustom -> ()
description :: CodeInterpreterCustom -> Maybe (Value Text)
executionRoleArn :: CodeInterpreterCustom -> Maybe (Value Text)
name :: CodeInterpreterCustom -> Value Text
networkConfiguration :: CodeInterpreterCustom
-> CodeInterpreterNetworkConfigurationProperty
tags :: CodeInterpreterCustom -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRoleArn :: Maybe (Value Text)
name :: Value Text
networkConfiguration :: CodeInterpreterNetworkConfigurationProperty
tags :: Maybe (Map Text (Value Text))
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::BedrockAgentCore::CodeInterpreterCustom",
         supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"Name" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
name,
                            Key
"NetworkConfiguration" Key -> CodeInterpreterNetworkConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= CodeInterpreterNetworkConfigurationProperty
networkConfiguration]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
                               Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExecutionRoleArn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
executionRoleArn,
                               Key -> Map Text (Value Text) -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags]))}
instance JSON.ToJSON CodeInterpreterCustom where
  toJSON :: CodeInterpreterCustom -> Value
toJSON CodeInterpreterCustom {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
CodeInterpreterNetworkConfigurationProperty
haddock_workaround_ :: CodeInterpreterCustom -> ()
description :: CodeInterpreterCustom -> Maybe (Value Text)
executionRoleArn :: CodeInterpreterCustom -> Maybe (Value Text)
name :: CodeInterpreterCustom -> Value Text
networkConfiguration :: CodeInterpreterCustom
-> CodeInterpreterNetworkConfigurationProperty
tags :: CodeInterpreterCustom -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRoleArn :: Maybe (Value Text)
name :: Value Text
networkConfiguration :: CodeInterpreterNetworkConfigurationProperty
tags :: Maybe (Map Text (Value Text))
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"Name" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
name,
               Key
"NetworkConfiguration" Key -> CodeInterpreterNetworkConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= CodeInterpreterNetworkConfigurationProperty
networkConfiguration]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
                  Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExecutionRoleArn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
executionRoleArn,
                  Key -> Map Text (Value Text) -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags])))
instance Property "Description" CodeInterpreterCustom where
  type PropertyType "Description" CodeInterpreterCustom = Value Prelude.Text
  set :: PropertyType "Description" CodeInterpreterCustom
-> CodeInterpreterCustom -> CodeInterpreterCustom
set PropertyType "Description" CodeInterpreterCustom
newValue CodeInterpreterCustom {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
CodeInterpreterNetworkConfigurationProperty
haddock_workaround_ :: CodeInterpreterCustom -> ()
description :: CodeInterpreterCustom -> Maybe (Value Text)
executionRoleArn :: CodeInterpreterCustom -> Maybe (Value Text)
name :: CodeInterpreterCustom -> Value Text
networkConfiguration :: CodeInterpreterCustom
-> CodeInterpreterNetworkConfigurationProperty
tags :: CodeInterpreterCustom -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRoleArn :: Maybe (Value Text)
name :: Value Text
networkConfiguration :: CodeInterpreterNetworkConfigurationProperty
tags :: Maybe (Map Text (Value Text))
..}
    = CodeInterpreterCustom {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" CodeInterpreterCustom
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
CodeInterpreterNetworkConfigurationProperty
haddock_workaround_ :: ()
executionRoleArn :: Maybe (Value Text)
name :: Value Text
networkConfiguration :: CodeInterpreterNetworkConfigurationProperty
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
executionRoleArn :: Maybe (Value Text)
name :: Value Text
networkConfiguration :: CodeInterpreterNetworkConfigurationProperty
tags :: Maybe (Map Text (Value Text))
..}
instance Property "ExecutionRoleArn" CodeInterpreterCustom where
  type PropertyType "ExecutionRoleArn" CodeInterpreterCustom = Value Prelude.Text
  set :: PropertyType "ExecutionRoleArn" CodeInterpreterCustom
-> CodeInterpreterCustom -> CodeInterpreterCustom
set PropertyType "ExecutionRoleArn" CodeInterpreterCustom
newValue CodeInterpreterCustom {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
CodeInterpreterNetworkConfigurationProperty
haddock_workaround_ :: CodeInterpreterCustom -> ()
description :: CodeInterpreterCustom -> Maybe (Value Text)
executionRoleArn :: CodeInterpreterCustom -> Maybe (Value Text)
name :: CodeInterpreterCustom -> Value Text
networkConfiguration :: CodeInterpreterCustom
-> CodeInterpreterNetworkConfigurationProperty
tags :: CodeInterpreterCustom -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRoleArn :: Maybe (Value Text)
name :: Value Text
networkConfiguration :: CodeInterpreterNetworkConfigurationProperty
tags :: Maybe (Map Text (Value Text))
..}
    = CodeInterpreterCustom
        {executionRoleArn :: Maybe (Value Text)
executionRoleArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ExecutionRoleArn" CodeInterpreterCustom
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
CodeInterpreterNetworkConfigurationProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
networkConfiguration :: CodeInterpreterNetworkConfigurationProperty
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
networkConfiguration :: CodeInterpreterNetworkConfigurationProperty
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Name" CodeInterpreterCustom where
  type PropertyType "Name" CodeInterpreterCustom = Value Prelude.Text
  set :: PropertyType "Name" CodeInterpreterCustom
-> CodeInterpreterCustom -> CodeInterpreterCustom
set PropertyType "Name" CodeInterpreterCustom
newValue CodeInterpreterCustom {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
CodeInterpreterNetworkConfigurationProperty
haddock_workaround_ :: CodeInterpreterCustom -> ()
description :: CodeInterpreterCustom -> Maybe (Value Text)
executionRoleArn :: CodeInterpreterCustom -> Maybe (Value Text)
name :: CodeInterpreterCustom -> Value Text
networkConfiguration :: CodeInterpreterCustom
-> CodeInterpreterNetworkConfigurationProperty
tags :: CodeInterpreterCustom -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRoleArn :: Maybe (Value Text)
name :: Value Text
networkConfiguration :: CodeInterpreterNetworkConfigurationProperty
tags :: Maybe (Map Text (Value Text))
..}
    = CodeInterpreterCustom {name :: Value Text
name = PropertyType "Name" CodeInterpreterCustom
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
CodeInterpreterNetworkConfigurationProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRoleArn :: Maybe (Value Text)
networkConfiguration :: CodeInterpreterNetworkConfigurationProperty
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRoleArn :: Maybe (Value Text)
networkConfiguration :: CodeInterpreterNetworkConfigurationProperty
tags :: Maybe (Map Text (Value Text))
..}
instance Property "NetworkConfiguration" CodeInterpreterCustom where
  type PropertyType "NetworkConfiguration" CodeInterpreterCustom = CodeInterpreterNetworkConfigurationProperty
  set :: PropertyType "NetworkConfiguration" CodeInterpreterCustom
-> CodeInterpreterCustom -> CodeInterpreterCustom
set PropertyType "NetworkConfiguration" CodeInterpreterCustom
newValue CodeInterpreterCustom {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
CodeInterpreterNetworkConfigurationProperty
haddock_workaround_ :: CodeInterpreterCustom -> ()
description :: CodeInterpreterCustom -> Maybe (Value Text)
executionRoleArn :: CodeInterpreterCustom -> Maybe (Value Text)
name :: CodeInterpreterCustom -> Value Text
networkConfiguration :: CodeInterpreterCustom
-> CodeInterpreterNetworkConfigurationProperty
tags :: CodeInterpreterCustom -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRoleArn :: Maybe (Value Text)
name :: Value Text
networkConfiguration :: CodeInterpreterNetworkConfigurationProperty
tags :: Maybe (Map Text (Value Text))
..}
    = CodeInterpreterCustom {networkConfiguration :: CodeInterpreterNetworkConfigurationProperty
networkConfiguration = PropertyType "NetworkConfiguration" CodeInterpreterCustom
CodeInterpreterNetworkConfigurationProperty
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRoleArn :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRoleArn :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Tags" CodeInterpreterCustom where
  type PropertyType "Tags" CodeInterpreterCustom = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "Tags" CodeInterpreterCustom
-> CodeInterpreterCustom -> CodeInterpreterCustom
set PropertyType "Tags" CodeInterpreterCustom
newValue CodeInterpreterCustom {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
CodeInterpreterNetworkConfigurationProperty
haddock_workaround_ :: CodeInterpreterCustom -> ()
description :: CodeInterpreterCustom -> Maybe (Value Text)
executionRoleArn :: CodeInterpreterCustom -> Maybe (Value Text)
name :: CodeInterpreterCustom -> Value Text
networkConfiguration :: CodeInterpreterCustom
-> CodeInterpreterNetworkConfigurationProperty
tags :: CodeInterpreterCustom -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRoleArn :: Maybe (Value Text)
name :: Value Text
networkConfiguration :: CodeInterpreterNetworkConfigurationProperty
tags :: Maybe (Map Text (Value Text))
..}
    = CodeInterpreterCustom {tags :: Maybe (Map Text (Value Text))
tags = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "Tags" CodeInterpreterCustom
newValue, Maybe (Value Text)
()
Value Text
CodeInterpreterNetworkConfigurationProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRoleArn :: Maybe (Value Text)
name :: Value Text
networkConfiguration :: CodeInterpreterNetworkConfigurationProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
executionRoleArn :: Maybe (Value Text)
name :: Value Text
networkConfiguration :: CodeInterpreterNetworkConfigurationProperty
..}