Retrieves information about a specified reusable delegation set, including the four name servers that are assigned to the delegation set.
Parameters:
-
id
(ResourceId)
–
The ID of the reusable delegation set that you want to get a list of name servers for.
Raises:
Source code in docs_src/capo_route_53/_services/route53.py
| def get_reusable_delegation_set(
self,
id: "capo_route_53.types.resource_id.ResourceId",
*,
config_overrides: Optional[Route53ClientConfig] = None,
) -> "capo_route_53.types.get_reusable_delegation_set_response.GetReusableDelegationSetResponse":
"""<p>Retrieves information about a specified reusable delegation set, including the four name servers that are assigned to the delegation set.</p>
Args:
id: <p>The ID of the reusable delegation set that you want to get a list of name servers for.</p>
Raises:
capo_route_53.errors.delegation_set_not_reusable.DelegationSetNotReusable: <p>A reusable delegation set with the specified ID does not exist.</p>
capo_route_53.errors.invalid_input.InvalidInput: <p>The input is not valid.</p>
capo_route_53.errors.no_such_delegation_set.NoSuchDelegationSet: <p>A reusable delegation set with the specified ID does not exist.</p>
capo_route_53.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_route_53.types.get_reusable_delegation_set_request.GetReusableDelegationSetRequest]",
) -> OperationResponse[
"capo_route_53.types.get_reusable_delegation_set_response.GetReusableDelegationSetResponse"
]:
import capo_route_53._operations.aws_dns_v20130401.get_reusable_delegation_set
output, http_response = (
capo_route_53._operations.aws_dns_v20130401.get_reusable_delegation_set.get_reusable_delegation_set(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetReusableDelegationSet")
)
input_: capo_route_53.types.get_reusable_delegation_set_request.GetReusableDelegationSetRequest = {
"id": id
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|