update_link
async
¶
update_link(
identifier: ResourceIdentifier,
resource_types: ResourceTypesInput,
*,
config_overrides: Optional[AsyncOAMClientConfig] = None,
link_configuration: Optional[LinkConfiguration] = None,
include_tags: Optional[IncludeTags] = None,
) -> UpdateLinkOutput
Use this operation to change what types of data are shared from a source account to its linked monitoring account sink. You can't change the sink or change the monitoring account with this operation.
When you update 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.
To update the list of tags associated with the sink, use TagResource.
Parameters:
-
identifier(ResourceIdentifier) –The ARN of the link that you want to update.
-
resource_types(ResourceTypesInput) –An array of strings that define which types of data that the source account will send to the monitoring account.
Your input here replaces the current set of data types that are shared.
-
link_configuration(Optional[LinkConfiguration], default:None) –Use this structure to filter which metric namespaces and which log groups are to be shared from the source account to the monitoring account.
-
include_tags(Optional[IncludeTags], default:None) –Specifies whether to include the tags associated with the link in the response after the update operation. When
IncludeTagsis set totrueand the caller has the required permission,oam:ListTagsForResource, the API will return the tags for the specified resource. If the caller doesn't have the required permission,oam:ListTagsForResource, the API will raise an exception.The default value is
false.
Raises:
-
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.
-
ResourceNotFoundException–The request references a resource that does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_oam/_services/async_oam.py
1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 | |