aws_sdk_appmesh/client/
create_mesh.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 [`CreateMesh`](crate::operation::create_mesh::builders::CreateMeshFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`mesh_name(impl Into<String>)`](crate::operation::create_mesh::builders::CreateMeshFluentBuilder::mesh_name) / [`set_mesh_name(Option<String>)`](crate::operation::create_mesh::builders::CreateMeshFluentBuilder::set_mesh_name):<br>required: **true**<br><p>The name to use for the service mesh.</p><br>
7    ///   - [`spec(MeshSpec)`](crate::operation::create_mesh::builders::CreateMeshFluentBuilder::spec) / [`set_spec(Option<MeshSpec>)`](crate::operation::create_mesh::builders::CreateMeshFluentBuilder::set_spec):<br>required: **false**<br><p>The service mesh specification to apply.</p><br>
8    ///   - [`tags(TagRef)`](crate::operation::create_mesh::builders::CreateMeshFluentBuilder::tags) / [`set_tags(Option<Vec::<TagRef>>)`](crate::operation::create_mesh::builders::CreateMeshFluentBuilder::set_tags):<br>required: **false**<br><p>Optional metadata that you can apply to the service mesh to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.</p><br>
9    ///   - [`client_token(impl Into<String>)`](crate::operation::create_mesh::builders::CreateMeshFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_mesh::builders::CreateMeshFluentBuilder::set_client_token):<br>required: **false**<br><p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.</p><br>
10    /// - On success, responds with [`CreateMeshOutput`](crate::operation::create_mesh::CreateMeshOutput) with field(s):
11    ///   - [`mesh(Option<MeshData>)`](crate::operation::create_mesh::CreateMeshOutput::mesh): <p>The full description of your service mesh following the create call.</p>
12    /// - On failure, responds with [`SdkError<CreateMeshError>`](crate::operation::create_mesh::CreateMeshError)
13    pub fn create_mesh(&self) -> crate::operation::create_mesh::builders::CreateMeshFluentBuilder {
14        crate::operation::create_mesh::builders::CreateMeshFluentBuilder::new(self.handle.clone())
15    }
16}