// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateDirectConnectGatewayAssociation`](crate::operation::create_direct_connect_gateway_association::builders::CreateDirectConnectGatewayAssociationFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`direct_connect_gateway_id(impl Into<String>)`](crate::operation::create_direct_connect_gateway_association::builders::CreateDirectConnectGatewayAssociationFluentBuilder::direct_connect_gateway_id) / [`set_direct_connect_gateway_id(Option<String>)`](crate::operation::create_direct_connect_gateway_association::builders::CreateDirectConnectGatewayAssociationFluentBuilder::set_direct_connect_gateway_id):<br>required: **true**<br><p>The ID of the Direct Connect gateway.</p><br>
/// - [`gateway_id(impl Into<String>)`](crate::operation::create_direct_connect_gateway_association::builders::CreateDirectConnectGatewayAssociationFluentBuilder::gateway_id) / [`set_gateway_id(Option<String>)`](crate::operation::create_direct_connect_gateway_association::builders::CreateDirectConnectGatewayAssociationFluentBuilder::set_gateway_id):<br>required: **false**<br><p>The ID of the virtual private gateway or transit gateway.</p><br>
/// - [`add_allowed_prefixes_to_direct_connect_gateway(RouteFilterPrefix)`](crate::operation::create_direct_connect_gateway_association::builders::CreateDirectConnectGatewayAssociationFluentBuilder::add_allowed_prefixes_to_direct_connect_gateway) / [`set_add_allowed_prefixes_to_direct_connect_gateway(Option<Vec::<RouteFilterPrefix>>)`](crate::operation::create_direct_connect_gateway_association::builders::CreateDirectConnectGatewayAssociationFluentBuilder::set_add_allowed_prefixes_to_direct_connect_gateway):<br>required: **false**<br><p>The Amazon VPC prefixes to advertise to the Direct Connect gateway</p> <p>This parameter is required when you create an association to a transit gateway.</p> <p>For information about how to set the prefixes, see <a href="https://docs.aws.amazon.com/directconnect/latest/UserGuide/multi-account-associate-vgw.html#allowed-prefixes">Allowed Prefixes</a> in the <i>Direct Connect User Guide</i>.</p><br>
/// - [`virtual_gateway_id(impl Into<String>)`](crate::operation::create_direct_connect_gateway_association::builders::CreateDirectConnectGatewayAssociationFluentBuilder::virtual_gateway_id) / [`set_virtual_gateway_id(Option<String>)`](crate::operation::create_direct_connect_gateway_association::builders::CreateDirectConnectGatewayAssociationFluentBuilder::set_virtual_gateway_id):<br>required: **false**<br><p>The ID of the virtual private gateway.</p><br>
/// - On success, responds with [`CreateDirectConnectGatewayAssociationOutput`](crate::operation::create_direct_connect_gateway_association::CreateDirectConnectGatewayAssociationOutput) with field(s):
/// - [`direct_connect_gateway_association(Option<DirectConnectGatewayAssociation>)`](crate::operation::create_direct_connect_gateway_association::CreateDirectConnectGatewayAssociationOutput::direct_connect_gateway_association): <p>The association to be created.</p>
/// - On failure, responds with [`SdkError<CreateDirectConnectGatewayAssociationError>`](crate::operation::create_direct_connect_gateway_association::CreateDirectConnectGatewayAssociationError)
pub fn create_direct_connect_gateway_association(
&self,
) -> crate::operation::create_direct_connect_gateway_association::builders::CreateDirectConnectGatewayAssociationFluentBuilder {
crate::operation::create_direct_connect_gateway_association::builders::CreateDirectConnectGatewayAssociationFluentBuilder::new(
self.handle.clone(),
)
}
}