packages feed

stratosphere-datasync-1.0.0: gen/Stratosphere/DataSync/LocationObjectStorage/ManagedSecretConfigProperty.hs

module Stratosphere.DataSync.LocationObjectStorage.ManagedSecretConfigProperty (
        ManagedSecretConfigProperty(..), mkManagedSecretConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ManagedSecretConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-locationobjectstorage-managedsecretconfig.html>
    ManagedSecretConfigProperty {haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-locationobjectstorage-managedsecretconfig.html#cfn-datasync-locationobjectstorage-managedsecretconfig-secretarn>
                                 secretArn :: (Value Prelude.Text)}
  deriving stock (Prelude.Eq, Prelude.Show)
mkManagedSecretConfigProperty ::
  Value Prelude.Text -> ManagedSecretConfigProperty
mkManagedSecretConfigProperty secretArn
  = ManagedSecretConfigProperty
      {haddock_workaround_ = (), secretArn = secretArn}
instance ToResourceProperties ManagedSecretConfigProperty where
  toResourceProperties ManagedSecretConfigProperty {..}
    = ResourceProperties
        {awsType = "AWS::DataSync::LocationObjectStorage.ManagedSecretConfig",
         supportsTags = Prelude.False,
         properties = ["SecretArn" JSON..= secretArn]}
instance JSON.ToJSON ManagedSecretConfigProperty where
  toJSON ManagedSecretConfigProperty {..}
    = JSON.object ["SecretArn" JSON..= secretArn]
instance Property "SecretArn" ManagedSecretConfigProperty where
  type PropertyType "SecretArn" ManagedSecretConfigProperty = Value Prelude.Text
  set newValue ManagedSecretConfigProperty {..}
    = ManagedSecretConfigProperty {secretArn = newValue, ..}