Module Values.PutDestinationRequestSource

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.

Sourcetype nonrec t = {
  1. destinationName : DestinationName.t;
    (*

    A name for the destination.

    *)
  2. targetArn : TargetArn.t;
    (*

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

    *)
  3. roleArn : RoleArn.t;
    (*

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

    *)
  4. tags : Tags.t option;
    (*

    An optional list of key-value pairs to associate with the resource. For more information about tagging, see Tagging Amazon Web Services resources

    *)
}
Sourceval context_ : string
Sourceval make : ?tags:??? -> destinationName:DestinationName.t -> targetArn:TargetArn.t -> roleArn:RoleArn.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Map of ([> `String of TagKey.t ] * [> `String of TagValue.t ]) list | `String of DestinationName.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t