aws_sdk_cloudfront/client/
update_distribution_tenant.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 [`UpdateDistributionTenant`](crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`id(impl Into<String>)`](crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder::set_id):<br>required: **true**<br><p>The ID of the distribution tenant.</p><br>
7    ///   - [`distribution_id(impl Into<String>)`](crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder::distribution_id) / [`set_distribution_id(Option<String>)`](crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder::set_distribution_id):<br>required: **false**<br><p>The ID for the multi-tenant distribution.</p><br>
8    ///   - [`domains(DomainItem)`](crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder::domains) / [`set_domains(Option<Vec::<DomainItem>>)`](crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder::set_domains):<br>required: **false**<br><p>The domains to update for the distribution tenant. A domain object can contain only a domain property. You must specify at least one domain. Each distribution tenant can have up to 5 domains.</p><br>
9    ///   - [`customizations(Customizations)`](crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder::customizations) / [`set_customizations(Option<Customizations>)`](crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder::set_customizations):<br>required: **false**<br><p>Customizations for the distribution tenant. For each distribution tenant, you can specify the geographic restrictions, and the Amazon Resource Names (ARNs) for the ACM certificate and WAF web ACL. These are specific values that you can override or disable from the multi-tenant distribution that was used to create the distribution tenant.</p><br>
10    ///   - [`parameters(Parameter)`](crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder::parameters) / [`set_parameters(Option<Vec::<Parameter>>)`](crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder::set_parameters):<br>required: **false**<br><p>A list of parameter values to add to the resource. A parameter is specified as a key-value pair. A valid parameter value must exist for any parameter that is marked as required in the multi-tenant distribution.</p><br>
11    ///   - [`connection_group_id(impl Into<String>)`](crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder::connection_group_id) / [`set_connection_group_id(Option<String>)`](crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder::set_connection_group_id):<br>required: **false**<br><p>The ID of the target connection group.</p><br>
12    ///   - [`if_match(impl Into<String>)`](crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder::if_match) / [`set_if_match(Option<String>)`](crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder::set_if_match):<br>required: **true**<br><p>The value of the <code>ETag</code> header that you received when retrieving the distribution tenant to update. This value is returned in the response of the <code>GetDistributionTenant</code> API operation.</p><br>
13    ///   - [`managed_certificate_request(ManagedCertificateRequest)`](crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder::managed_certificate_request) / [`set_managed_certificate_request(Option<ManagedCertificateRequest>)`](crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder::set_managed_certificate_request):<br>required: **false**<br><p>An object that contains the CloudFront managed ACM certificate request.</p><br>
14    ///   - [`enabled(bool)`](crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder::enabled) / [`set_enabled(Option<bool>)`](crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder::set_enabled):<br>required: **false**<br><p>Indicates whether the distribution tenant should be updated to an enabled state. If you update the distribution tenant and it's not enabled, the distribution tenant won't serve traffic.</p><br>
15    /// - On success, responds with [`UpdateDistributionTenantOutput`](crate::operation::update_distribution_tenant::UpdateDistributionTenantOutput) with field(s):
16    ///   - [`distribution_tenant(Option<DistributionTenant>)`](crate::operation::update_distribution_tenant::UpdateDistributionTenantOutput::distribution_tenant): <p>The distribution tenant that you're updating.</p>
17    ///   - [`e_tag(Option<String>)`](crate::operation::update_distribution_tenant::UpdateDistributionTenantOutput::e_tag): <p>The current version of the distribution tenant.</p>
18    /// - On failure, responds with [`SdkError<UpdateDistributionTenantError>`](crate::operation::update_distribution_tenant::UpdateDistributionTenantError)
19    pub fn update_distribution_tenant(&self) -> crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder {
20        crate::operation::update_distribution_tenant::builders::UpdateDistributionTenantFluentBuilder::new(self.handle.clone())
21    }
22}