Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates or updates a Destination
. A destination encapsulates a
physical resource (such as a Kinesis stream) and allows you to subscribe
to a real-time stream of log events of a different account, ingested
through PutLogEvents
requests. Currently, the only supported physical
resource is a Amazon Kinesis stream belonging to the same account as the
destination.
A destination controls what is written to its Amazon Kinesis stream
through an access policy. By default, PutDestination does not set any
access policy with the destination, which means a cross-account user
will not be able to call PutSubscriptionFilter
against this
destination. To enable that, the destination owner must call
PutDestinationPolicy
after PutDestination.
See: AWS API Reference for PutDestination.
- putDestination :: Text -> Text -> Text -> PutDestination
- data PutDestination
- pdDestinationName :: Lens' PutDestination Text
- pdTargetARN :: Lens' PutDestination Text
- pdRoleARN :: Lens' PutDestination Text
- putDestinationResponse :: Int -> PutDestinationResponse
- data PutDestinationResponse
- pdrsDestination :: Lens' PutDestinationResponse (Maybe Destination)
- pdrsStatus :: Lens' PutDestinationResponse Int
Creating a Request
Creates a value of PutDestination
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PutDestination Source
See: putDestination
smart constructor.
Request Lenses
pdDestinationName :: Lens' PutDestination Text Source
A name for the destination.
pdTargetARN :: Lens' PutDestination Text Source
The ARN of an Amazon Kinesis stream to deliver matching log events to.
pdRoleARN :: Lens' PutDestination Text Source
The ARN of an IAM role that grants Amazon CloudWatch Logs permissions to do Amazon Kinesis PutRecord requests on the desitnation stream.
Destructuring the Response
Creates a value of PutDestinationResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PutDestinationResponse Source
See: putDestinationResponse
smart constructor.
Response Lenses
pdrsDestination :: Lens' PutDestinationResponse (Maybe Destination) Source
Undocumented member.
pdrsStatus :: Lens' PutDestinationResponse Int Source
The response status code.