create_sink
async
¶
create_sink(
name: SinkName,
*,
config_overrides: Optional[AsyncOAMClientConfig] = None,
tags: Optional[TagMapInput] = None,
) -> CreateSinkOutput
Use this to create a sink in the current account, so that it can be used as a monitoring account in CloudWatch cross-account observability. A sink is a resource that represents an attachment point in a monitoring account. Source accounts can link to the sink to send observability data.
After you create a sink, you must create a sink policy that allows source accounts to attach to it. For more information, see PutSinkPolicy.
Each account can contain one sink per Region. If you delete a sink, you can then create a new one in that Region.
Parameters:
-
name(SinkName) –A name for the sink.
-
tags(Optional[TagMapInput], default:None) –Assigns one or more tags (key-value pairs) to the link.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
For more information about using tags to control access, see Controlling access to Amazon Web Services resources using tags.
Raises:
-
ConflictException–A resource was in an inconsistent state during an update or a deletion.
-
InternalServiceFault–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.
-
UnknownServiceError–The service returned an error code this client does not model.