update_api
¶
update_api(
api_id: String,
name: ApiName,
event_config: EventConfig,
*,
config_overrides: Optional[AppSyncClientConfig] = None,
owner_contact: Optional[String] = None,
) -> UpdateApiResponse
Updates an Api.
Parameters:
-
api_id(String) –The
ApiID. -
name(ApiName) –The name of the Api.
-
owner_contact(Optional[String], default:None) –The owner contact information for the
Api. -
event_config(EventConfig) –The new event configuration. This includes the default authorization configuration for connecting, publishing, and subscribing to an Event API.
Raises:
-
AccessDeniedException–You don't have access to perform this operation on this resource.
-
BadRequestException–The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException–Another modification is in progress at this time and it must complete before you can make your change.
-
InternalFailureException–An internal AppSync error occurred. Try your request again.
-
NotFoundException–The resource specified in the request was not found. Check the resource, and then try again.
-
UnauthorizedException–You aren't authorized to perform this operation.
-
UnknownServiceError–The service returned an error code this client does not model.