amazonka-cloudtrail-2.0: Amazon CloudTrail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudTrail.Types.Destination

Description

 
Synopsis

Documentation

data Destination Source #

Contains information about the service where CloudTrail delivers events.

See: newDestination smart constructor.

Constructors

Destination' 

Fields

  • type' :: DestinationType

    The type of destination for events arriving from a channel. For service-linked channels, the value is AWS_SERVICE.

  • location :: Text

    For service-linked channels, the value is the name of the Amazon Web Services service.

Instances

Instances details
FromJSON Destination Source # 
Instance details

Defined in Amazonka.CloudTrail.Types.Destination

Generic Destination Source # 
Instance details

Defined in Amazonka.CloudTrail.Types.Destination

Associated Types

type Rep Destination :: Type -> Type #

Read Destination Source # 
Instance details

Defined in Amazonka.CloudTrail.Types.Destination

Show Destination Source # 
Instance details

Defined in Amazonka.CloudTrail.Types.Destination

NFData Destination Source # 
Instance details

Defined in Amazonka.CloudTrail.Types.Destination

Methods

rnf :: Destination -> () #

Eq Destination Source # 
Instance details

Defined in Amazonka.CloudTrail.Types.Destination

Hashable Destination Source # 
Instance details

Defined in Amazonka.CloudTrail.Types.Destination

type Rep Destination Source # 
Instance details

Defined in Amazonka.CloudTrail.Types.Destination

type Rep Destination = D1 ('MetaData "Destination" "Amazonka.CloudTrail.Types.Destination" "amazonka-cloudtrail-2.0-6vmpMB1YeZzDIMmexWGsF3" 'False) (C1 ('MetaCons "Destination'" 'PrefixI 'True) (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DestinationType) :*: S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDestination Source #

Create a value of Destination with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:type':Destination', destination_type - The type of destination for events arriving from a channel. For service-linked channels, the value is AWS_SERVICE.

$sel:location:Destination', destination_location - For service-linked channels, the value is the name of the Amazon Web Services service.

destination_type :: Lens' Destination DestinationType Source #

The type of destination for events arriving from a channel. For service-linked channels, the value is AWS_SERVICE.

destination_location :: Lens' Destination Text Source #

For service-linked channels, the value is the name of the Amazon Web Services service.