AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
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.
For .NET Core this operation is only available in asynchronous form. Please refer to CreateLinkAsync.
Namespace: Amazon.OAM
Assembly: AWSSDK.OAM.dll
Version: 3.x.y.z
public abstract CreateLinkResponse CreateLink( CreateLinkRequest request )
Container for the necessary parameters to execute the CreateLink service method.
Exception | Condition |
---|---|
ConflictException | A resource was in an inconsistent state during an update or a deletion. |
InternalServiceException | Unexpected error while processing the request. Retry the request. |
InvalidParameterException | A parameter is specified incorrectly. |
MissingRequiredParameterException | A required parameter is missing from the request. |
ServiceQuotaExceededException | The request would cause a service quota to be exceeded. |
.NET Framework:
Supported in: 4.5 and newer, 3.5