amazonka-cloudwatch-logs-1.4.0: Amazon CloudWatch Logs SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudWatchLogs.PutDestinationPolicy

Contents

Description

Creates or updates an access policy associated with an existing Destination. An access policy is an IAM policy document that is used to authorize claims to register a subscription filter against a given destination.

Synopsis

Creating a Request

putDestinationPolicy Source

Creates a value of PutDestinationPolicy with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

pdpDestinationName :: Lens' PutDestinationPolicy Text Source

A name for an existing destination.

pdpAccessPolicy :: Lens' PutDestinationPolicy Text Source

An IAM policy document that authorizes cross-account users to deliver their log events to associated destination.

Destructuring the Response

putDestinationPolicyResponse :: PutDestinationPolicyResponse Source

Creates a value of PutDestinationPolicyResponse with the minimum fields required to make a request.