aws_sdk_wafv2/client/delete_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 [`DeleteAPIKey`](crate::operation::delete_api_key::builders::DeleteAPIKeyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`scope(Scope)`](crate::operation::delete_api_key::builders::DeleteAPIKeyFluentBuilder::scope) / [`set_scope(Option<Scope>)`](crate::operation::delete_api_key::builders::DeleteAPIKeyFluentBuilder::set_scope):<br>required: **true**<br><p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p> <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:</p> <ul> <li> <p>CLI - Specify the Region when you use the CloudFront scope: <code>--scope=CLOUDFRONT --region=us-east-1</code>.</p></li> <li> <p>API and SDKs - For all calls, use the Region endpoint us-east-1.</p></li> </ul><br>
7 /// - [`api_key(impl Into<String>)`](crate::operation::delete_api_key::builders::DeleteAPIKeyFluentBuilder::api_key) / [`set_api_key(Option<String>)`](crate::operation::delete_api_key::builders::DeleteAPIKeyFluentBuilder::set_api_key):<br>required: **true**<br><p>The encrypted API key that you want to delete.</p><br>
8 /// - On success, responds with [`DeleteApiKeyOutput`](crate::operation::delete_api_key::DeleteApiKeyOutput)
9 /// - On failure, responds with [`SdkError<DeleteAPIKeyError>`](crate::operation::delete_api_key::DeleteAPIKeyError)
10 pub fn delete_api_key(&self) -> crate::operation::delete_api_key::builders::DeleteAPIKeyFluentBuilder {
11 crate::operation::delete_api_key::builders::DeleteAPIKeyFluentBuilder::new(self.handle.clone())
12 }
13}