libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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) and enables you to 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

  • destinationName :: Text

    A name for the destination.

  • targetArn :: Text

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

  • roleArn :: Text

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

Instances

Instances details
Eq PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

Read PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

Show PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

Generic PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

Associated Types

type Rep PutDestination :: Type -> Type #

NFData PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

Methods

rnf :: PutDestination -> () #

Hashable PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

ToJSON PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

AWSRequest PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

Associated Types

type AWSResponse 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

type Rep PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

type Rep PutDestination = D1 ('MetaData "PutDestination" "Amazonka.CloudWatchLogs.PutDestination" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" 'False) (C1 ('MetaCons "PutDestination'" 'PrefixI 'True) (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))))
type AWSResponse PutDestination Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

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:destinationName:PutDestination', putDestination_destinationName - A name for the destination.

$sel:targetArn:PutDestination', putDestination_targetArn - The ARN of an Amazon Kinesis stream to which to deliver matching log events.

$sel:roleArn: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_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
Eq PutDestinationResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

Read PutDestinationResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

Show PutDestinationResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

Generic PutDestinationResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

Associated Types

type Rep PutDestinationResponse :: Type -> Type #

NFData PutDestinationResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

Methods

rnf :: PutDestinationResponse -> () #

type Rep PutDestinationResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutDestination

type Rep PutDestinationResponse = D1 ('MetaData "PutDestinationResponse" "Amazonka.CloudWatchLogs.PutDestination" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" '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:

$sel:destination:PutDestinationResponse', putDestinationResponse_destination - The destination.

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

Response Lenses