aws_sdk_ec2/client/modify_vpc_endpoint_service_payer_responsibility.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 [`ModifyVpcEndpointServicePayerResponsibility`](crate::operation::modify_vpc_endpoint_service_payer_responsibility::builders::ModifyVpcEndpointServicePayerResponsibilityFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`dry_run(bool)`](crate::operation::modify_vpc_endpoint_service_payer_responsibility::builders::ModifyVpcEndpointServicePayerResponsibilityFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::modify_vpc_endpoint_service_payer_responsibility::builders::ModifyVpcEndpointServicePayerResponsibilityFluentBuilder::set_dry_run):<br>required: **false**<br><p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
7 /// - [`service_id(impl Into<String>)`](crate::operation::modify_vpc_endpoint_service_payer_responsibility::builders::ModifyVpcEndpointServicePayerResponsibilityFluentBuilder::service_id) / [`set_service_id(Option<String>)`](crate::operation::modify_vpc_endpoint_service_payer_responsibility::builders::ModifyVpcEndpointServicePayerResponsibilityFluentBuilder::set_service_id):<br>required: **true**<br><p>The ID of the service.</p><br>
8 /// - [`payer_responsibility(PayerResponsibility)`](crate::operation::modify_vpc_endpoint_service_payer_responsibility::builders::ModifyVpcEndpointServicePayerResponsibilityFluentBuilder::payer_responsibility) / [`set_payer_responsibility(Option<PayerResponsibility>)`](crate::operation::modify_vpc_endpoint_service_payer_responsibility::builders::ModifyVpcEndpointServicePayerResponsibilityFluentBuilder::set_payer_responsibility):<br>required: **true**<br><p>The entity that is responsible for the endpoint costs. The default is the endpoint owner. If you set the payer responsibility to the service owner, you cannot set it back to the endpoint owner.</p><br>
9 /// - On success, responds with [`ModifyVpcEndpointServicePayerResponsibilityOutput`](crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityOutput) with field(s):
10 /// - [`return_value(Option<bool>)`](crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityOutput::return_value): <p>Returns <code>true</code> if the request succeeds; otherwise, it returns an error.</p>
11 /// - On failure, responds with [`SdkError<ModifyVpcEndpointServicePayerResponsibilityError>`](crate::operation::modify_vpc_endpoint_service_payer_responsibility::ModifyVpcEndpointServicePayerResponsibilityError)
12 pub fn modify_vpc_endpoint_service_payer_responsibility(
13 &self,
14 ) -> crate::operation::modify_vpc_endpoint_service_payer_responsibility::builders::ModifyVpcEndpointServicePayerResponsibilityFluentBuilder {
15 crate::operation::modify_vpc_endpoint_service_payer_responsibility::builders::ModifyVpcEndpointServicePayerResponsibilityFluentBuilder::new(
16 self.handle.clone(),
17 )
18 }
19}