aws_sdk_route53/client/
associate_vpc_with_hosted_zone.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 [`AssociateVPCWithHostedZone`](crate::operation::associate_vpc_with_hosted_zone::builders::AssociateVPCWithHostedZoneFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`hosted_zone_id(impl Into<String>)`](crate::operation::associate_vpc_with_hosted_zone::builders::AssociateVPCWithHostedZoneFluentBuilder::hosted_zone_id) / [`set_hosted_zone_id(Option<String>)`](crate::operation::associate_vpc_with_hosted_zone::builders::AssociateVPCWithHostedZoneFluentBuilder::set_hosted_zone_id):<br>required: **true**<br><p>The ID of the private hosted zone that you want to associate an Amazon VPC with.</p> <p>Note that you can't associate a VPC with a hosted zone that doesn't have an existing VPC association.</p><br>
7    ///   - [`vpc(Vpc)`](crate::operation::associate_vpc_with_hosted_zone::builders::AssociateVPCWithHostedZoneFluentBuilder::vpc) / [`set_vpc(Option<Vpc>)`](crate::operation::associate_vpc_with_hosted_zone::builders::AssociateVPCWithHostedZoneFluentBuilder::set_vpc):<br>required: **true**<br><p>A complex type that contains information about the VPC that you want to associate with a private hosted zone.</p><br>
8    ///   - [`comment(impl Into<String>)`](crate::operation::associate_vpc_with_hosted_zone::builders::AssociateVPCWithHostedZoneFluentBuilder::comment) / [`set_comment(Option<String>)`](crate::operation::associate_vpc_with_hosted_zone::builders::AssociateVPCWithHostedZoneFluentBuilder::set_comment):<br>required: **false**<br><p><i>Optional:</i> A comment about the association request.</p><br>
9    /// - On success, responds with [`AssociateVpcWithHostedZoneOutput`](crate::operation::associate_vpc_with_hosted_zone::AssociateVpcWithHostedZoneOutput) with field(s):
10    ///   - [`change_info(Option<ChangeInfo>)`](crate::operation::associate_vpc_with_hosted_zone::AssociateVpcWithHostedZoneOutput::change_info): <p>A complex type that describes the changes made to your hosted zone.</p>
11    /// - On failure, responds with [`SdkError<AssociateVPCWithHostedZoneError>`](crate::operation::associate_vpc_with_hosted_zone::AssociateVPCWithHostedZoneError)
12    pub fn associate_vpc_with_hosted_zone(
13        &self,
14    ) -> crate::operation::associate_vpc_with_hosted_zone::builders::AssociateVPCWithHostedZoneFluentBuilder {
15        crate::operation::associate_vpc_with_hosted_zone::builders::AssociateVPCWithHostedZoneFluentBuilder::new(self.handle.clone())
16    }
17}