amazonka-cloudwatch-logs-2.0: Amazon CloudWatch Logs 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.CloudWatchLogs.PutDestination

Description

Creates or updates a destination. This operation is used only to create destinations for cross-account subscriptions.

A destination encapsulates a physical resource (such as an Amazon Kinesis stream). With a destination, you can subscribe to a real-time stream of log events for a different account, ingested using PutLogEvents.

Through an access policy, a destination controls what is written to it. By default, PutDestination does not set any access policy with the destination, which means a cross-account user cannot call PutSubscriptionFilter against this destination. To enable this, the destination owner must call PutDestinationPolicy after PutDestination.

To perform a PutDestination operation, you must also have the iam:PassRole permission.

Synopsis

Creating a Request

data PutDestination Source #

See: newPutDestination smart constructor.

Constructors

PutDestination' 

Fields

Instances

Instances details
ToJSON PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

ToHeaders PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

ToPath PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

ToQuery PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

AWSRequest PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

Associated Types

type AWSResponse PutDestination #

Generic PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

Associated Types

type Rep PutDestination :: Type -> Type #

Read PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

Show PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

NFData PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

Methods

rnf :: PutDestination -> () #

Eq PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

Hashable PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

type AWSResponse PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

type Rep PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

type Rep PutDestination = D1 ('MetaData "PutDestination" "Amazonka.CloudWatchLogs.PutDestination" "amazonka-cloudwatch-logs-2.0-6gvDalNFsfE8djZ4aTfA4V" 'False) (C1 ('MetaCons "PutDestination'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "destinationName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "targetArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newPutDestination Source #

Create a value of PutDestination 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:tags:PutDestination', putDestination_tags - An optional list of key-value pairs to associate with the resource.

For more information about tagging, see Tagging Amazon Web Services resources

PutDestination, putDestination_destinationName - A name for the destination.

PutDestination, putDestination_targetArn - The ARN of an Amazon Kinesis stream to which to deliver matching log events.

PutDestination, putDestination_roleArn - The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon Kinesis PutRecord operation on the destination stream.

Request Lenses

putDestination_tags :: Lens' PutDestination (Maybe (HashMap Text Text)) Source #

An optional list of key-value pairs to associate with the resource.

For more information about tagging, see Tagging Amazon Web Services resources

putDestination_targetArn :: Lens' PutDestination Text Source #

The ARN of an Amazon Kinesis stream to which to deliver matching log events.

putDestination_roleArn :: Lens' PutDestination Text Source #

The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon Kinesis PutRecord operation on the destination stream.

Destructuring the Response

data PutDestinationResponse Source #

See: newPutDestinationResponse smart constructor.

Constructors

PutDestinationResponse' 

Fields

Instances

Instances details
Generic PutDestinationResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

Associated Types

type Rep PutDestinationResponse :: Type -> Type #

Read PutDestinationResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

Show PutDestinationResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

NFData PutDestinationResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

Methods

rnf :: PutDestinationResponse -> () #

Eq PutDestinationResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

type Rep PutDestinationResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

type Rep PutDestinationResponse = D1 ('MetaData "PutDestinationResponse" "Amazonka.CloudWatchLogs.PutDestination" "amazonka-cloudwatch-logs-2.0-6gvDalNFsfE8djZ4aTfA4V" 'False) (C1 ('MetaCons "PutDestinationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "destination") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Destination)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newPutDestinationResponse Source #

Create a value of PutDestinationResponse 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:

PutDestinationResponse, putDestinationResponse_destination - The destination.

$sel:httpStatus:PutDestinationResponse', putDestinationResponse_httpStatus - The response's http status code.

Response Lenses