get_resource
async
¶
get_resource(
rest_api_id: String,
resource_id: String,
*,
config_overrides: Optional[AsyncAPIGatewayClientConfig] = None,
embed: Optional[ListOfString] = None,
) -> Resource
Lists information about a resource.
Parameters:
-
rest_api_id(String) –The string identifier of the associated RestApi.
-
resource_id(String) –The identifier for the Resource resource.
-
embed(Optional[ListOfString], default:None) –A query parameter to retrieve the specified resources embedded in the returned Resource representation in the response. This
embedparameter value is a list of comma-separated strings. Currently, the request supports only retrieval of the embedded Method resources this way. The query parameter value must be a single-valued list and contain the"methods"string. For example,GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods.
Raises:
-
NotFoundException–The requested resource is not found. Make sure that the request URI is correct.
-
TooManyRequestsException–The request has reached its throttling limit. Retry after the specified time period.
-
UnauthorizedException–The request is denied because the caller has insufficient permissions.
-
UnknownServiceError–The service returned an error code this client does not model.