get_deployment
¶
get_deployment(
rest_api_id: String,
deployment_id: String,
*,
config_overrides: Optional[APIGatewayClientConfig] = None,
embed: Optional[ListOfString] = None,
) -> Deployment
Gets information about a Deployment resource.
Parameters:
-
rest_api_id(String) –The string identifier of the associated RestApi.
-
deployment_id(String) –The identifier of the Deployment resource to get information about.
-
embed(Optional[ListOfString], default:None) –A query parameter to retrieve the specified embedded resources of the returned Deployment resource in the response. In a REST API call, this
embedparameter value is a list of comma-separated strings, as inGET /restapis/{restapi_id}/deployments/{deployment_id}?embed=var1,var2. The SDK and other platform-dependent libraries might use a different format for the list. Currently, this request supports only retrieval of the embedded API summary this way. Hence, the parameter value must be a single-valued list containing only the"apisummary"string. For example,GET /restapis/{restapi_id}/deployments/{deployment_id}?embed=apisummary.
Raises:
-
BadRequestException–The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
NotFoundException–The requested resource is not found. Make sure that the request URI is correct.
-
ServiceUnavailableException–The requested service is not available. For details see the accompanying error message. Retry after the specified time period.
-
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.