pulumi_wasm_providers_aws_mini::ec2::vpc_ipam_pool

Struct VpcIpamPoolArgsBuilder

source
pub struct VpcIpamPoolArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_struct().

Implementations§

source§

impl<S: State> VpcIpamPoolArgsBuilder<S>

source

pub fn build_struct(self) -> VpcIpamPoolArgs
where S: IsComplete,

Finish building and return the requested object

source

pub fn address_family( self, value: impl Into<Output<String>>, ) -> VpcIpamPoolArgsBuilder<SetAddressFamily<S>>
where S::AddressFamily: IsUnset,

Required.

The IP protocol assigned to this pool. You must choose either IPv4 or IPv6 protocol for a pool.

source

pub fn allocation_default_netmask_length( self, value: impl Into<Output<Option<i32>>>, ) -> VpcIpamPoolArgsBuilder<SetAllocationDefaultNetmaskLength<S>>
where S::AllocationDefaultNetmaskLength: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

A default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new allocations will default to 10.0.0.0/16 (unless you provide a different netmask value when you create the new allocation).

source

pub fn maybe_allocation_default_netmask_length( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> VpcIpamPoolArgsBuilder<SetAllocationDefaultNetmaskLength<S>>
where S::AllocationDefaultNetmaskLength: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

A default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new allocations will default to 10.0.0.0/16 (unless you provide a different netmask value when you create the new allocation).

source

pub fn allocation_max_netmask_length( self, value: impl Into<Output<Option<i32>>>, ) -> VpcIpamPoolArgsBuilder<SetAllocationMaxNetmaskLength<S>>
where S::AllocationMaxNetmaskLength: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

The maximum netmask length that will be required for CIDR allocations in this pool.

source

pub fn maybe_allocation_max_netmask_length( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> VpcIpamPoolArgsBuilder<SetAllocationMaxNetmaskLength<S>>
where S::AllocationMaxNetmaskLength: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

The maximum netmask length that will be required for CIDR allocations in this pool.

source

pub fn allocation_min_netmask_length( self, value: impl Into<Output<Option<i32>>>, ) -> VpcIpamPoolArgsBuilder<SetAllocationMinNetmaskLength<S>>
where S::AllocationMinNetmaskLength: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

The minimum netmask length that will be required for CIDR allocations in this pool.

source

pub fn maybe_allocation_min_netmask_length( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> VpcIpamPoolArgsBuilder<SetAllocationMinNetmaskLength<S>>
where S::AllocationMinNetmaskLength: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

The minimum netmask length that will be required for CIDR allocations in this pool.

source

pub fn allocation_resource_tags( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> VpcIpamPoolArgsBuilder<SetAllocationResourceTags<S>>
where S::AllocationResourceTags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

Tags that are required for resources that use CIDRs from this IPAM pool. Resources that do not have these tags will not be allowed to allocate space from the pool. If the resources have their tags changed after they have allocated space or if the allocation tagging requirements are changed on the pool, the resource may be marked as noncompliant.

source

pub fn maybe_allocation_resource_tags( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> VpcIpamPoolArgsBuilder<SetAllocationResourceTags<S>>
where S::AllocationResourceTags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

Tags that are required for resources that use CIDRs from this IPAM pool. Resources that do not have these tags will not be allowed to allocate space from the pool. If the resources have their tags changed after they have allocated space or if the allocation tagging requirements are changed on the pool, the resource may be marked as noncompliant.

source

pub fn auto_import( self, value: impl Into<Output<Option<bool>>>, ) -> VpcIpamPoolArgsBuilder<SetAutoImport<S>>
where S::AutoImport: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

If you include this argument, IPAM automatically imports any VPCs you have in your scope that fall within the CIDR range in the pool.

source

pub fn maybe_auto_import( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> VpcIpamPoolArgsBuilder<SetAutoImport<S>>
where S::AutoImport: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

If you include this argument, IPAM automatically imports any VPCs you have in your scope that fall within the CIDR range in the pool.

source

pub fn aws_service( self, value: impl Into<Output<Option<String>>>, ) -> VpcIpamPoolArgsBuilder<SetAwsService<S>>
where S::AwsService: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Limits which AWS service the pool can be used in. Only useable on public scopes. Valid Values: ec2.

source

pub fn maybe_aws_service( self, value: Option<impl Into<Output<Option<String>>>>, ) -> VpcIpamPoolArgsBuilder<SetAwsService<S>>
where S::AwsService: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Limits which AWS service the pool can be used in. Only useable on public scopes. Valid Values: ec2.

source

pub fn cascade( self, value: impl Into<Output<Option<bool>>>, ) -> VpcIpamPoolArgsBuilder<SetCascade<S>>
where S::Cascade: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Enables you to quickly delete an IPAM pool and all resources within that pool, including provisioned CIDRs, allocations, and other pools.

source

pub fn maybe_cascade( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> VpcIpamPoolArgsBuilder<SetCascade<S>>
where S::Cascade: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Enables you to quickly delete an IPAM pool and all resources within that pool, including provisioned CIDRs, allocations, and other pools.

source

pub fn description( self, value: impl Into<Output<Option<String>>>, ) -> VpcIpamPoolArgsBuilder<SetDescription<S>>
where S::Description: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

A description for the IPAM pool.

source

pub fn maybe_description( self, value: Option<impl Into<Output<Option<String>>>>, ) -> VpcIpamPoolArgsBuilder<SetDescription<S>>
where S::Description: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

A description for the IPAM pool.

source

pub fn ipam_scope_id( self, value: impl Into<Output<String>>, ) -> VpcIpamPoolArgsBuilder<SetIpamScopeId<S>>
where S::IpamScopeId: IsUnset,

Required.

The ID of the scope in which you would like to create the IPAM pool.

source

pub fn locale( self, value: impl Into<Output<Option<String>>>, ) -> VpcIpamPoolArgsBuilder<SetLocale<S>>
where S::Locale: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The locale in which you would like to create the IPAM pool. Locale is the Region where you want to make an IPAM pool available for allocations. You can only create pools with locales that match the operating Regions of the IPAM. You can only create VPCs from a pool whose locale matches the VPC’s Region. Possible values: Any AWS region, such as us-east-1.

source

pub fn maybe_locale( self, value: Option<impl Into<Output<Option<String>>>>, ) -> VpcIpamPoolArgsBuilder<SetLocale<S>>
where S::Locale: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The locale in which you would like to create the IPAM pool. Locale is the Region where you want to make an IPAM pool available for allocations. You can only create pools with locales that match the operating Regions of the IPAM. You can only create VPCs from a pool whose locale matches the VPC’s Region. Possible values: Any AWS region, such as us-east-1.

source

pub fn public_ip_source( self, value: impl Into<Output<Option<String>>>, ) -> VpcIpamPoolArgsBuilder<SetPublicIpSource<S>>
where S::PublicIpSource: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The IP address source for pools in the public scope. Only used for provisioning IP address CIDRs to pools in the public scope. Valid values are byoip or amazon. Default is byoip.

source

pub fn maybe_public_ip_source( self, value: Option<impl Into<Output<Option<String>>>>, ) -> VpcIpamPoolArgsBuilder<SetPublicIpSource<S>>
where S::PublicIpSource: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The IP address source for pools in the public scope. Only used for provisioning IP address CIDRs to pools in the public scope. Valid values are byoip or amazon. Default is byoip.

source

pub fn publicly_advertisable( self, value: impl Into<Output<Option<bool>>>, ) -> VpcIpamPoolArgsBuilder<SetPubliclyAdvertisable<S>>
where S::PubliclyAdvertisable: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Defines whether or not IPv6 pool space is publicly advertisable over the internet. This argument is required if address_family = "ipv6" and public_ip_source = "byoip", default is false. This option is not available for IPv4 pool space or if public_ip_source = "amazon". Setting this argument to true when it is not available may result in erroneous differences being reported.

source

pub fn maybe_publicly_advertisable( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> VpcIpamPoolArgsBuilder<SetPubliclyAdvertisable<S>>
where S::PubliclyAdvertisable: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Defines whether or not IPv6 pool space is publicly advertisable over the internet. This argument is required if address_family = "ipv6" and public_ip_source = "byoip", default is false. This option is not available for IPv4 pool space or if public_ip_source = "amazon". Setting this argument to true when it is not available may result in erroneous differences being reported.

source

pub fn source_ipam_pool_id( self, value: impl Into<Output<Option<String>>>, ) -> VpcIpamPoolArgsBuilder<SetSourceIpamPoolId<S>>
where S::SourceIpamPoolId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The ID of the source IPAM pool. Use this argument to create a child pool within an existing pool.

source

pub fn maybe_source_ipam_pool_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> VpcIpamPoolArgsBuilder<SetSourceIpamPoolId<S>>
where S::SourceIpamPoolId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The ID of the source IPAM pool. Use this argument to create a child pool within an existing pool.

source

pub fn tags( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> VpcIpamPoolArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

source

pub fn maybe_tags( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> VpcIpamPoolArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.