packages feed

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

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