Removes one or more tags from the specified Amazon Connect Customer Profiles resource. In Connect Customer Profiles, domains, profile object types, and integrations can be tagged.
Parameters:
-
resource_arn
(TagArn)
–
The ARN of the resource from which you are removing tags.
-
tag_keys
(TagKeyList)
–
The list of tag keys to remove from the resource.
Raises:
Source code in docs_src/capo_customer_profiles/_services/customer_profiles.py
| def untag_resource(
self,
resource_arn: "capo_customer_profiles.types.tag_arn.TagArn",
tag_keys: "capo_customer_profiles.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[CustomerProfilesClientConfig] = None,
) -> "capo_customer_profiles.types.untag_resource_response.UntagResourceResponse":
"""<p>Removes one or more tags from the specified Amazon Connect Customer Profiles resource. In Connect Customer Profiles, domains, profile object types, and integrations can be tagged.</p>
Args:
resource_arn: <p>The ARN of the resource from which you are removing tags.</p>
tag_keys: <p>The list of tag keys to remove from the resource.</p>
Raises:
capo_customer_profiles.errors.bad_request_exception.BadRequestException: <p>The input you provided is invalid.</p>
capo_customer_profiles.errors.internal_server_exception.InternalServerException: <p>An internal service error occurred.</p>
capo_customer_profiles.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource does not exist, or access was denied.</p>
capo_customer_profiles.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_customer_profiles.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[
"capo_customer_profiles.types.untag_resource_response.UntagResourceResponse"
]:
import capo_customer_profiles._operations.customer_profiles_20200815.untag_resource
output, http_response = (
capo_customer_profiles._operations.customer_profiles_20200815.untag_resource.untag_resource(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UntagResource")
)
input_: capo_customer_profiles.types.untag_resource_request.UntagResourceRequest = {
"resource_arn": resource_arn,
"tag_keys": tag_keys,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|