aws_sdk_ec2/client/create_ipam_policy.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 [`CreateIpamPolicy`](crate::operation::create_ipam_policy::builders::CreateIpamPolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`dry_run(bool)`](crate::operation::create_ipam_policy::builders::CreateIpamPolicyFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::create_ipam_policy::builders::CreateIpamPolicyFluentBuilder::set_dry_run):<br>required: **false**<br><p>A check for 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 /// - [`tag_specifications(TagSpecification)`](crate::operation::create_ipam_policy::builders::CreateIpamPolicyFluentBuilder::tag_specifications) / [`set_tag_specifications(Option<Vec::<TagSpecification>>)`](crate::operation::create_ipam_policy::builders::CreateIpamPolicyFluentBuilder::set_tag_specifications):<br>required: **false**<br><p>The tags to assign to the IPAM policy.</p><br>
8 /// - [`client_token(impl Into<String>)`](crate::operation::create_ipam_policy::builders::CreateIpamPolicyFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_ipam_policy::builders::CreateIpamPolicyFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier to ensure the idempotency of the request.</p><br>
9 /// - [`ipam_id(impl Into<String>)`](crate::operation::create_ipam_policy::builders::CreateIpamPolicyFluentBuilder::ipam_id) / [`set_ipam_id(Option<String>)`](crate::operation::create_ipam_policy::builders::CreateIpamPolicyFluentBuilder::set_ipam_id):<br>required: **true**<br><p>The ID of the IPAM for which you're creating the policy.</p><br>
10 /// - On success, responds with [`CreateIpamPolicyOutput`](crate::operation::create_ipam_policy::CreateIpamPolicyOutput) with field(s):
11 /// - [`ipam_policy(Option<IpamPolicy>)`](crate::operation::create_ipam_policy::CreateIpamPolicyOutput::ipam_policy): <p>Information about the created IPAM policy.</p> <p>An IPAM policy is a set of rules that define how public IPv4 addresses from IPAM pools are allocated to Amazon Web Services resources. Each rule maps an Amazon Web Services service to IPAM pools that the service will use to get IP addresses. A single policy can have multiple rules and be applied to multiple Amazon Web Services Regions. If the IPAM pool run out of addresses then the services fallback to Amazon-provided IP addresses. A policy can be applied to an individual Amazon Web Services account or an entity within Amazon Web Services Organizations.</p>
12 /// - On failure, responds with [`SdkError<CreateIpamPolicyError>`](crate::operation::create_ipam_policy::CreateIpamPolicyError)
13 pub fn create_ipam_policy(&self) -> crate::operation::create_ipam_policy::builders::CreateIpamPolicyFluentBuilder {
14 crate::operation::create_ipam_policy::builders::CreateIpamPolicyFluentBuilder::new(self.handle.clone())
15 }
16}