aws_sdk_apigateway/client/
create_documentation_part.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 [`CreateDocumentationPart`](crate::operation::create_documentation_part::builders::CreateDocumentationPartFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`rest_api_id(impl Into<String>)`](crate::operation::create_documentation_part::builders::CreateDocumentationPartFluentBuilder::rest_api_id) / [`set_rest_api_id(Option<String>)`](crate::operation::create_documentation_part::builders::CreateDocumentationPartFluentBuilder::set_rest_api_id):<br>required: **true**<br><p>The string identifier of the associated RestApi.</p><br>
7    ///   - [`location(DocumentationPartLocation)`](crate::operation::create_documentation_part::builders::CreateDocumentationPartFluentBuilder::location) / [`set_location(Option<DocumentationPartLocation>)`](crate::operation::create_documentation_part::builders::CreateDocumentationPartFluentBuilder::set_location):<br>required: **true**<br><p>The location of the targeted API entity of the to-be-created documentation part.</p><br>
8    ///   - [`properties(impl Into<String>)`](crate::operation::create_documentation_part::builders::CreateDocumentationPartFluentBuilder::properties) / [`set_properties(Option<String>)`](crate::operation::create_documentation_part::builders::CreateDocumentationPartFluentBuilder::set_properties):<br>required: **true**<br><p>The new documentation content map of the targeted API entity. Enclosed key-value pairs are API-specific, but only OpenAPI-compliant key-value pairs can be exported and, hence, published.</p><br>
9    /// - On success, responds with [`CreateDocumentationPartOutput`](crate::operation::create_documentation_part::CreateDocumentationPartOutput) with field(s):
10    ///   - [`id(Option<String>)`](crate::operation::create_documentation_part::CreateDocumentationPartOutput::id): <p>The DocumentationPart identifier, generated by API Gateway when the <code>DocumentationPart</code> is created.</p>
11    ///   - [`location(Option<DocumentationPartLocation>)`](crate::operation::create_documentation_part::CreateDocumentationPartOutput::location): <p>The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.</p>
12    ///   - [`properties(Option<String>)`](crate::operation::create_documentation_part::CreateDocumentationPartOutput::properties): <p>A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., <code>"{ \"description\": \"The API does ...\" }"</code>. Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of <code>x-amazon-apigateway-documentation</code>.</p>
13    /// - On failure, responds with [`SdkError<CreateDocumentationPartError>`](crate::operation::create_documentation_part::CreateDocumentationPartError)
14    pub fn create_documentation_part(&self) -> crate::operation::create_documentation_part::builders::CreateDocumentationPartFluentBuilder {
15        crate::operation::create_documentation_part::builders::CreateDocumentationPartFluentBuilder::new(self.handle.clone())
16    }
17}