aws_sdk_vpclattice/client/
create_service_network_resource_association.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateServiceNetworkResourceAssociation`](crate::operation::create_service_network_resource_association::builders::CreateServiceNetworkResourceAssociationFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_service_network_resource_association::builders::CreateServiceNetworkResourceAssociationFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_service_network_resource_association::builders::CreateServiceNetworkResourceAssociationFluentBuilder::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>
    ///   - [`resource_configuration_identifier(impl Into<String>)`](crate::operation::create_service_network_resource_association::builders::CreateServiceNetworkResourceAssociationFluentBuilder::resource_configuration_identifier) / [`set_resource_configuration_identifier(Option<String>)`](crate::operation::create_service_network_resource_association::builders::CreateServiceNetworkResourceAssociationFluentBuilder::set_resource_configuration_identifier):<br>required: **true**<br><p>The ID of the resource configuration to associate with the service network.</p><br>
    ///   - [`service_network_identifier(impl Into<String>)`](crate::operation::create_service_network_resource_association::builders::CreateServiceNetworkResourceAssociationFluentBuilder::service_network_identifier) / [`set_service_network_identifier(Option<String>)`](crate::operation::create_service_network_resource_association::builders::CreateServiceNetworkResourceAssociationFluentBuilder::set_service_network_identifier):<br>required: **true**<br><p>The ID of the service network to associate with the resource configuration.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_service_network_resource_association::builders::CreateServiceNetworkResourceAssociationFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_service_network_resource_association::builders::CreateServiceNetworkResourceAssociationFluentBuilder::set_tags):<br>required: **false**<br><p>The tags for the association.</p><br>
    /// - On success, responds with [`CreateServiceNetworkResourceAssociationOutput`](crate::operation::create_service_network_resource_association::CreateServiceNetworkResourceAssociationOutput) with field(s):
    ///   - [`id(Option<String>)`](crate::operation::create_service_network_resource_association::CreateServiceNetworkResourceAssociationOutput::id): <p>The ID of the association.</p>
    ///   - [`arn(Option<String>)`](crate::operation::create_service_network_resource_association::CreateServiceNetworkResourceAssociationOutput::arn): <p>The Amazon Resource Name (ARN) of the association.</p>
    ///   - [`status(Option<ServiceNetworkResourceAssociationStatus>)`](crate::operation::create_service_network_resource_association::CreateServiceNetworkResourceAssociationOutput::status): <p>The status of the association.</p>
    ///   - [`created_by(Option<String>)`](crate::operation::create_service_network_resource_association::CreateServiceNetworkResourceAssociationOutput::created_by): <p>The ID of the account that created the association.</p>
    /// - On failure, responds with [`SdkError<CreateServiceNetworkResourceAssociationError>`](crate::operation::create_service_network_resource_association::CreateServiceNetworkResourceAssociationError)
    pub fn create_service_network_resource_association(
        &self,
    ) -> crate::operation::create_service_network_resource_association::builders::CreateServiceNetworkResourceAssociationFluentBuilder {
        crate::operation::create_service_network_resource_association::builders::CreateServiceNetworkResourceAssociationFluentBuilder::new(
            self.handle.clone(),
        )
    }
}