aws_sdk_ec2/client/create_dhcp_options.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 [`CreateDhcpOptions`](crate::operation::create_dhcp_options::builders::CreateDhcpOptionsFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`dhcp_configurations(NewDhcpConfiguration)`](crate::operation::create_dhcp_options::builders::CreateDhcpOptionsFluentBuilder::dhcp_configurations) / [`set_dhcp_configurations(Option<Vec::<NewDhcpConfiguration>>)`](crate::operation::create_dhcp_options::builders::CreateDhcpOptionsFluentBuilder::set_dhcp_configurations):<br>required: **true**<br><p>A DHCP configuration option.</p><br>
7 /// - [`tag_specifications(TagSpecification)`](crate::operation::create_dhcp_options::builders::CreateDhcpOptionsFluentBuilder::tag_specifications) / [`set_tag_specifications(Option<Vec::<TagSpecification>>)`](crate::operation::create_dhcp_options::builders::CreateDhcpOptionsFluentBuilder::set_tag_specifications):<br>required: **false**<br><p>The tags to assign to the DHCP option.</p><br>
8 /// - [`dry_run(bool)`](crate::operation::create_dhcp_options::builders::CreateDhcpOptionsFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::create_dhcp_options::builders::CreateDhcpOptionsFluentBuilder::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>
9 /// - On success, responds with [`CreateDhcpOptionsOutput`](crate::operation::create_dhcp_options::CreateDhcpOptionsOutput) with field(s):
10 /// - [`dhcp_options(Option<DhcpOptions>)`](crate::operation::create_dhcp_options::CreateDhcpOptionsOutput::dhcp_options): <p>A set of DHCP options.</p>
11 /// - On failure, responds with [`SdkError<CreateDhcpOptionsError>`](crate::operation::create_dhcp_options::CreateDhcpOptionsError)
12 pub fn create_dhcp_options(&self) -> crate::operation::create_dhcp_options::builders::CreateDhcpOptionsFluentBuilder {
13 crate::operation::create_dhcp_options::builders::CreateDhcpOptionsFluentBuilder::new(self.handle.clone())
14 }
15}