aws_sdk_apigateway/client/update_api_key.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`UpdateApiKey`](crate::operation::update_api_key::builders::UpdateApiKeyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`api_key(impl Into<String>)`](crate::operation::update_api_key::builders::UpdateApiKeyFluentBuilder::api_key) / [`set_api_key(Option<String>)`](crate::operation::update_api_key::builders::UpdateApiKeyFluentBuilder::set_api_key):<br>required: **true**<br><p>The identifier of the ApiKey resource to be updated.</p><br>
7 /// - [`patch_operations(PatchOperation)`](crate::operation::update_api_key::builders::UpdateApiKeyFluentBuilder::patch_operations) / [`set_patch_operations(Option<Vec::<PatchOperation>>)`](crate::operation::update_api_key::builders::UpdateApiKeyFluentBuilder::set_patch_operations):<br>required: **false**<br><p>For more information about supported patch operations, see <a href="https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html">Patch Operations</a>.</p><br>
8 /// - On success, responds with [`UpdateApiKeyOutput`](crate::operation::update_api_key::UpdateApiKeyOutput) with field(s):
9 /// - [`id(Option<String>)`](crate::operation::update_api_key::UpdateApiKeyOutput::id): <p>The identifier of the API Key.</p>
10 /// - [`value(Option<String>)`](crate::operation::update_api_key::UpdateApiKeyOutput::value): <p>The value of the API Key.</p>
11 /// - [`name(Option<String>)`](crate::operation::update_api_key::UpdateApiKeyOutput::name): <p>The name of the API Key.</p>
12 /// - [`customer_id(Option<String>)`](crate::operation::update_api_key::UpdateApiKeyOutput::customer_id): <p>An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.</p>
13 /// - [`description(Option<String>)`](crate::operation::update_api_key::UpdateApiKeyOutput::description): <p>The description of the API Key.</p>
14 /// - [`enabled(bool)`](crate::operation::update_api_key::UpdateApiKeyOutput::enabled): <p>Specifies whether the API Key can be used by callers.</p>
15 /// - [`created_date(Option<DateTime>)`](crate::operation::update_api_key::UpdateApiKeyOutput::created_date): <p>The timestamp when the API Key was created.</p>
16 /// - [`last_updated_date(Option<DateTime>)`](crate::operation::update_api_key::UpdateApiKeyOutput::last_updated_date): <p>The timestamp when the API Key was last updated.</p>
17 /// - [`stage_keys(Option<Vec::<String>>)`](crate::operation::update_api_key::UpdateApiKeyOutput::stage_keys): <p>A list of Stage resources that are associated with the ApiKey resource.</p>
18 /// - [`tags(Option<HashMap::<String, String>>)`](crate::operation::update_api_key::UpdateApiKeyOutput::tags): <p>The collection of tags. Each tag element is associated with a given resource.</p>
19 /// - On failure, responds with [`SdkError<UpdateApiKeyError>`](crate::operation::update_api_key::UpdateApiKeyError)
20 pub fn update_api_key(&self) -> crate::operation::update_api_key::builders::UpdateApiKeyFluentBuilder {
21 crate::operation::update_api_key::builders::UpdateApiKeyFluentBuilder::new(self.handle.clone())
22 }
23}