1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateUsagePlanKey`](crate::operation::create_usage_plan_key::builders::CreateUsagePlanKeyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`usage_plan_id(impl Into<String>)`](crate::operation::create_usage_plan_key::builders::CreateUsagePlanKeyFluentBuilder::usage_plan_id) / [`set_usage_plan_id(Option<String>)`](crate::operation::create_usage_plan_key::builders::CreateUsagePlanKeyFluentBuilder::set_usage_plan_id):<br>required: **true**<br><p>The Id of the UsagePlan resource representing the usage plan containing the to-be-created UsagePlanKey resource representing a plan customer.</p><br>
    ///   - [`key_id(impl Into<String>)`](crate::operation::create_usage_plan_key::builders::CreateUsagePlanKeyFluentBuilder::key_id) / [`set_key_id(Option<String>)`](crate::operation::create_usage_plan_key::builders::CreateUsagePlanKeyFluentBuilder::set_key_id):<br>required: **true**<br><p>The identifier of a UsagePlanKey resource for a plan customer.</p><br>
    ///   - [`key_type(impl Into<String>)`](crate::operation::create_usage_plan_key::builders::CreateUsagePlanKeyFluentBuilder::key_type) / [`set_key_type(Option<String>)`](crate::operation::create_usage_plan_key::builders::CreateUsagePlanKeyFluentBuilder::set_key_type):<br>required: **true**<br><p>The type of a UsagePlanKey resource for a plan customer.</p><br>
    /// - On success, responds with [`CreateUsagePlanKeyOutput`](crate::operation::create_usage_plan_key::CreateUsagePlanKeyOutput) with field(s):
    ///   - [`id(Option<String>)`](crate::operation::create_usage_plan_key::CreateUsagePlanKeyOutput::id): <p>The Id of a usage plan key.</p>
    ///   - [`r#type(Option<String>)`](crate::operation::create_usage_plan_key::CreateUsagePlanKeyOutput::type): <p>The type of a usage plan key. Currently, the valid key type is <code>API_KEY</code>.</p>
    ///   - [`value(Option<String>)`](crate::operation::create_usage_plan_key::CreateUsagePlanKeyOutput::value): <p>The value of a usage plan key.</p>
    ///   - [`name(Option<String>)`](crate::operation::create_usage_plan_key::CreateUsagePlanKeyOutput::name): <p>The name of a usage plan key.</p>
    /// - On failure, responds with [`SdkError<CreateUsagePlanKeyError>`](crate::operation::create_usage_plan_key::CreateUsagePlanKeyError)
    pub fn create_usage_plan_key(&self) -> crate::operation::create_usage_plan_key::builders::CreateUsagePlanKeyFluentBuilder {
        crate::operation::create_usage_plan_key::builders::CreateUsagePlanKeyFluentBuilder::new(self.handle.clone())
    }
}