module Stratosphere.VpcLattice.ServiceNetworkServiceAssociation ( module Exports, ServiceNetworkServiceAssociation(..), mkServiceNetworkServiceAssociation ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.VpcLattice.ServiceNetworkServiceAssociation.DnsEntryProperty as Exports import Stratosphere.ResourceProperties import Stratosphere.Tag import Stratosphere.Value data ServiceNetworkServiceAssociation = -- | See: ServiceNetworkServiceAssociation {haddock_workaround_ :: (), -- | See: dnsEntry :: (Prelude.Maybe DnsEntryProperty), -- | See: serviceIdentifier :: (Prelude.Maybe (Value Prelude.Text)), -- | See: serviceNetworkIdentifier :: (Prelude.Maybe (Value Prelude.Text)), -- | See: tags :: (Prelude.Maybe [Tag])} deriving stock (Prelude.Eq, Prelude.Show) mkServiceNetworkServiceAssociation :: ServiceNetworkServiceAssociation mkServiceNetworkServiceAssociation = ServiceNetworkServiceAssociation {haddock_workaround_ = (), dnsEntry = Prelude.Nothing, serviceIdentifier = Prelude.Nothing, serviceNetworkIdentifier = Prelude.Nothing, tags = Prelude.Nothing} instance ToResourceProperties ServiceNetworkServiceAssociation where toResourceProperties ServiceNetworkServiceAssociation {..} = ResourceProperties {awsType = "AWS::VpcLattice::ServiceNetworkServiceAssociation", supportsTags = Prelude.True, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "DnsEntry" Prelude.<$> dnsEntry, (JSON..=) "ServiceIdentifier" Prelude.<$> serviceIdentifier, (JSON..=) "ServiceNetworkIdentifier" Prelude.<$> serviceNetworkIdentifier, (JSON..=) "Tags" Prelude.<$> tags])} instance JSON.ToJSON ServiceNetworkServiceAssociation where toJSON ServiceNetworkServiceAssociation {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "DnsEntry" Prelude.<$> dnsEntry, (JSON..=) "ServiceIdentifier" Prelude.<$> serviceIdentifier, (JSON..=) "ServiceNetworkIdentifier" Prelude.<$> serviceNetworkIdentifier, (JSON..=) "Tags" Prelude.<$> tags])) instance Property "DnsEntry" ServiceNetworkServiceAssociation where type PropertyType "DnsEntry" ServiceNetworkServiceAssociation = DnsEntryProperty set newValue ServiceNetworkServiceAssociation {..} = ServiceNetworkServiceAssociation {dnsEntry = Prelude.pure newValue, ..} instance Property "ServiceIdentifier" ServiceNetworkServiceAssociation where type PropertyType "ServiceIdentifier" ServiceNetworkServiceAssociation = Value Prelude.Text set newValue ServiceNetworkServiceAssociation {..} = ServiceNetworkServiceAssociation {serviceIdentifier = Prelude.pure newValue, ..} instance Property "ServiceNetworkIdentifier" ServiceNetworkServiceAssociation where type PropertyType "ServiceNetworkIdentifier" ServiceNetworkServiceAssociation = Value Prelude.Text set newValue ServiceNetworkServiceAssociation {..} = ServiceNetworkServiceAssociation {serviceNetworkIdentifier = Prelude.pure newValue, ..} instance Property "Tags" ServiceNetworkServiceAssociation where type PropertyType "Tags" ServiceNetworkServiceAssociation = [Tag] set newValue ServiceNetworkServiceAssociation {..} = ServiceNetworkServiceAssociation {tags = Prelude.pure newValue, ..}