aws_sdk_vpclattice/client/create_service_network_vpc_association.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateServiceNetworkVpcAssociation`](crate::operation::create_service_network_vpc_association::builders::CreateServiceNetworkVpcAssociationFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`client_token(impl Into<String>)`](crate::operation::create_service_network_vpc_association::builders::CreateServiceNetworkVpcAssociationFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_service_network_vpc_association::builders::CreateServiceNetworkVpcAssociationFluentBuilder::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>
/// - [`service_network_identifier(impl Into<String>)`](crate::operation::create_service_network_vpc_association::builders::CreateServiceNetworkVpcAssociationFluentBuilder::service_network_identifier) / [`set_service_network_identifier(Option<String>)`](crate::operation::create_service_network_vpc_association::builders::CreateServiceNetworkVpcAssociationFluentBuilder::set_service_network_identifier):<br>required: **true**<br><p>The ID or Amazon Resource Name (ARN) of the service network. You must use the ARN when the resources specified in the operation are in different accounts.</p><br>
/// - [`vpc_identifier(impl Into<String>)`](crate::operation::create_service_network_vpc_association::builders::CreateServiceNetworkVpcAssociationFluentBuilder::vpc_identifier) / [`set_vpc_identifier(Option<String>)`](crate::operation::create_service_network_vpc_association::builders::CreateServiceNetworkVpcAssociationFluentBuilder::set_vpc_identifier):<br>required: **true**<br><p>The ID of the VPC.</p><br>
/// - [`security_group_ids(impl Into<String>)`](crate::operation::create_service_network_vpc_association::builders::CreateServiceNetworkVpcAssociationFluentBuilder::security_group_ids) / [`set_security_group_ids(Option<Vec::<String>>)`](crate::operation::create_service_network_vpc_association::builders::CreateServiceNetworkVpcAssociationFluentBuilder::set_security_group_ids):<br>required: **false**<br><p>The IDs of the security groups. Security groups aren't added by default. You can add a security group to apply network level controls to control which resources in a VPC are allowed to access the service network and its services. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html">Control traffic to resources using security groups</a> in the <i>Amazon VPC User Guide</i>.</p><br>
/// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_service_network_vpc_association::builders::CreateServiceNetworkVpcAssociationFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_service_network_vpc_association::builders::CreateServiceNetworkVpcAssociationFluentBuilder::set_tags):<br>required: **false**<br><p>The tags for the association.</p><br>
/// - On success, responds with [`CreateServiceNetworkVpcAssociationOutput`](crate::operation::create_service_network_vpc_association::CreateServiceNetworkVpcAssociationOutput) with field(s):
/// - [`id(Option<String>)`](crate::operation::create_service_network_vpc_association::CreateServiceNetworkVpcAssociationOutput::id): <p>The ID of the association.</p>
/// - [`status(Option<ServiceNetworkVpcAssociationStatus>)`](crate::operation::create_service_network_vpc_association::CreateServiceNetworkVpcAssociationOutput::status): <p>The association status.</p>
/// - [`arn(Option<String>)`](crate::operation::create_service_network_vpc_association::CreateServiceNetworkVpcAssociationOutput::arn): <p>The Amazon Resource Name (ARN) of the association.</p>
/// - [`created_by(Option<String>)`](crate::operation::create_service_network_vpc_association::CreateServiceNetworkVpcAssociationOutput::created_by): <p>The account that created the association.</p>
/// - [`security_group_ids(Option<Vec::<String>>)`](crate::operation::create_service_network_vpc_association::CreateServiceNetworkVpcAssociationOutput::security_group_ids): <p>The IDs of the security groups.</p>
/// - On failure, responds with [`SdkError<CreateServiceNetworkVpcAssociationError>`](crate::operation::create_service_network_vpc_association::CreateServiceNetworkVpcAssociationError)
pub fn create_service_network_vpc_association(
&self,
) -> crate::operation::create_service_network_vpc_association::builders::CreateServiceNetworkVpcAssociationFluentBuilder {
crate::operation::create_service_network_vpc_association::builders::CreateServiceNetworkVpcAssociationFluentBuilder::new(self.handle.clone())
}
}