Module Values.CreateLinkOutputSource

Creates a link between a source account and a sink that you have created in a monitoring account. After the link is created, data is sent from the source account to the monitoring account. When you create a link, you can optionally specify filters that specify which metric namespaces and which log groups are shared from the source account to the monitoring account. Before you create a link, you must create a sink in the monitoring account and create a sink policy in that account. The sink policy must permit the source account to link to it. You can grant permission to source accounts by granting permission to an entire organization or to individual accounts. For more information, see CreateSink and PutSinkPolicy. Each monitoring account can be linked to as many as 100,000 source accounts. Each source account can be linked to as many as five monitoring accounts.

Sourcetype nonrec t = {
  1. arn : String_.t option;
    (*

    The ARN of the link that is newly created.

    *)
  2. id : String_.t option;
    (*

    The random ID string that Amazon Web Services generated as part of the link ARN.

    *)
  3. label : String_.t option;
    (*

    The label that you assigned to this link. If the labelTemplate includes variables, this field displays the variables resolved to their actual values.

    *)
  4. labelTemplate : String_.t option;
    (*

    The exact label template that you specified, with the variables not resolved.

    *)
  5. linkConfiguration : LinkConfiguration.t option;
    (*

    This structure includes filters that specify which metric namespaces and which log groups are shared from the source account to the monitoring account.

    *)
  6. resourceTypes : ResourceTypesOutput.t option;
    (*

    The resource types supported by this link.

    *)
  7. sinkArn : String_.t option;
    (*

    The ARN of the sink that is used for this link.

    *)
  8. tags : TagMapOutput.t option;
    (*

    The tags assigned to the link.

    *)
}
Sourcetype nonrec error = [
  1. | `ConflictException of ConflictException.t
  2. | `InternalServiceFault of InternalServiceFault.t
  3. | `InvalidParameterException of InvalidParameterException.t
  4. | `MissingRequiredParameterException of MissingRequiredParameterException.t
  5. | `ServiceQuotaExceededException of ServiceQuotaExceededException.t
  6. | `Unknown_operation_error of string * string option
]
Sourceval make : ?arn:??? -> ?id:??? -> ?label:??? -> ?labelTemplate:??? -> ?linkConfiguration:??? -> ?resourceTypes:??? -> ?sinkArn:??? -> ?tags:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `ConflictException of ConflictException.t | `InternalServiceFault of InternalServiceFault.t | `InvalidParameterException of InvalidParameterException.t | `MissingRequiredParameterException of MissingRequiredParameterException.t | `ServiceQuotaExceededException of ServiceQuotaExceededException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `ConflictException of ConflictException.t | `InternalServiceFault of InternalServiceFault.t | `InvalidParameterException of InvalidParameterException.t | `MissingRequiredParameterException of MissingRequiredParameterException.t | `ServiceQuotaExceededException of ServiceQuotaExceededException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `String of String_.t ] list | `Map of ([> `String of String_.t ] * [> `String of String_.t ]) list | `String of String_.t | `Structure of (string * [> `Structure of (string * [> `String of LogsFilter.t ]) list ]) list ]) 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