aws_sdk_vpclattice/client/create_service_network.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateServiceNetwork`](crate::operation::create_service_network::builders::CreateServiceNetworkFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`client_token(impl Into<String>)`](crate::operation::create_service_network::builders::CreateServiceNetworkFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_service_network::builders::CreateServiceNetworkFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren't identical, the retry fails.</p><br>
/// - [`name(impl Into<String>)`](crate::operation::create_service_network::builders::CreateServiceNetworkFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_service_network::builders::CreateServiceNetworkFluentBuilder::set_name):<br>required: **true**<br><p>The name of the service network. The name must be unique to the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.</p><br>
/// - [`auth_type(AuthType)`](crate::operation::create_service_network::builders::CreateServiceNetworkFluentBuilder::auth_type) / [`set_auth_type(Option<AuthType>)`](crate::operation::create_service_network::builders::CreateServiceNetworkFluentBuilder::set_auth_type):<br>required: **false**<br><p>The type of IAM policy.</p> <ul> <li> <p><code>NONE</code>: The resource does not use an IAM policy. This is the default.</p></li> <li> <p><code>AWS_IAM</code>: The resource uses an IAM policy. When this type is used, auth is enabled and an auth policy is required.</p></li> </ul><br>
/// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_service_network::builders::CreateServiceNetworkFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_service_network::builders::CreateServiceNetworkFluentBuilder::set_tags):<br>required: **false**<br><p>The tags for the service network.</p><br>
/// - On success, responds with [`CreateServiceNetworkOutput`](crate::operation::create_service_network::CreateServiceNetworkOutput) with field(s):
/// - [`id(Option<String>)`](crate::operation::create_service_network::CreateServiceNetworkOutput::id): <p>The ID of the service network.</p>
/// - [`name(Option<String>)`](crate::operation::create_service_network::CreateServiceNetworkOutput::name): <p>The name of the service network.</p>
/// - [`arn(Option<String>)`](crate::operation::create_service_network::CreateServiceNetworkOutput::arn): <p>The Amazon Resource Name (ARN) of the service network.</p>
/// - [`auth_type(Option<AuthType>)`](crate::operation::create_service_network::CreateServiceNetworkOutput::auth_type): <p>The type of IAM policy.</p>
/// - On failure, responds with [`SdkError<CreateServiceNetworkError>`](crate::operation::create_service_network::CreateServiceNetworkError)
pub fn create_service_network(&self) -> crate::operation::create_service_network::builders::CreateServiceNetworkFluentBuilder {
crate::operation::create_service_network::builders::CreateServiceNetworkFluentBuilder::new(self.handle.clone())
}
}