pulumi_wasm_providers_aws_mini::ec2::eip

Struct EipArgsBuilder

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

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

Implementations§

source§

impl<S: State> EipArgsBuilder<S>

source

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

Finish building and return the requested object

source

pub fn address( self, value: impl Into<Output<Option<String>>>, ) -> EipArgsBuilder<SetAddress<S>>
where S::Address: IsUnset,

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

IP address from an EC2 BYOIP pool. This option is only available for VPC EIPs.

source

pub fn maybe_address( self, value: Option<impl Into<Output<Option<String>>>>, ) -> EipArgsBuilder<SetAddress<S>>
where S::Address: IsUnset,

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

IP address from an EC2 BYOIP pool. This option is only available for VPC EIPs.

source

pub fn associate_with_private_ip( self, value: impl Into<Output<Option<String>>>, ) -> EipArgsBuilder<SetAssociateWithPrivateIp<S>>
where S::AssociateWithPrivateIp: IsUnset,

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

User-specified primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.

source

pub fn maybe_associate_with_private_ip( self, value: Option<impl Into<Output<Option<String>>>>, ) -> EipArgsBuilder<SetAssociateWithPrivateIp<S>>
where S::AssociateWithPrivateIp: IsUnset,

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

User-specified primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.

source

pub fn customer_owned_ipv4_pool( self, value: impl Into<Output<Option<String>>>, ) -> EipArgsBuilder<SetCustomerOwnedIpv4Pool<S>>
where S::CustomerOwnedIpv4Pool: IsUnset,

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

ID of a customer-owned address pool. For more on customer owned IP addressed check out Customer-owned IP addresses guide.

source

pub fn maybe_customer_owned_ipv4_pool( self, value: Option<impl Into<Output<Option<String>>>>, ) -> EipArgsBuilder<SetCustomerOwnedIpv4Pool<S>>
where S::CustomerOwnedIpv4Pool: IsUnset,

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

ID of a customer-owned address pool. For more on customer owned IP addressed check out Customer-owned IP addresses guide.

source

pub fn domain( self, value: impl Into<Output<Option<String>>>, ) -> EipArgsBuilder<SetDomain<S>>
where S::Domain: IsUnset,

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

Indicates if this EIP is for use in VPC (vpc).

source

pub fn maybe_domain( self, value: Option<impl Into<Output<Option<String>>>>, ) -> EipArgsBuilder<SetDomain<S>>
where S::Domain: IsUnset,

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

Indicates if this EIP is for use in VPC (vpc).

source

pub fn instance( self, value: impl Into<Output<Option<String>>>, ) -> EipArgsBuilder<SetInstance<S>>
where S::Instance: IsUnset,

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

EC2 instance ID.

source

pub fn maybe_instance( self, value: Option<impl Into<Output<Option<String>>>>, ) -> EipArgsBuilder<SetInstance<S>>
where S::Instance: IsUnset,

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

EC2 instance ID.

source

pub fn ipam_pool_id( self, value: impl Into<Output<Option<String>>>, ) -> EipArgsBuilder<SetIpamPoolId<S>>
where S::IpamPoolId: IsUnset,

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

The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it.

source

pub fn maybe_ipam_pool_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> EipArgsBuilder<SetIpamPoolId<S>>
where S::IpamPoolId: IsUnset,

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

The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it.

source

pub fn network_border_group( self, value: impl Into<Output<Option<String>>>, ) -> EipArgsBuilder<SetNetworkBorderGroup<S>>
where S::NetworkBorderGroup: IsUnset,

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

Location from which the IP address is advertised. Use this parameter to limit the address to this location.

source

pub fn maybe_network_border_group( self, value: Option<impl Into<Output<Option<String>>>>, ) -> EipArgsBuilder<SetNetworkBorderGroup<S>>
where S::NetworkBorderGroup: IsUnset,

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

Location from which the IP address is advertised. Use this parameter to limit the address to this location.

source

pub fn network_interface( self, value: impl Into<Output<Option<String>>>, ) -> EipArgsBuilder<SetNetworkInterface<S>>
where S::NetworkInterface: IsUnset,

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

Network interface ID to associate with.

source

pub fn maybe_network_interface( self, value: Option<impl Into<Output<Option<String>>>>, ) -> EipArgsBuilder<SetNetworkInterface<S>>
where S::NetworkInterface: IsUnset,

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

Network interface ID to associate with.

source

pub fn public_ipv4_pool( self, value: impl Into<Output<Option<String>>>, ) -> EipArgsBuilder<SetPublicIpv4Pool<S>>
where S::PublicIpv4Pool: IsUnset,

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

EC2 IPv4 address pool identifier or amazon. This option is only available for VPC EIPs.

source

pub fn maybe_public_ipv4_pool( self, value: Option<impl Into<Output<Option<String>>>>, ) -> EipArgsBuilder<SetPublicIpv4Pool<S>>
where S::PublicIpv4Pool: IsUnset,

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

EC2 IPv4 address pool identifier or amazon. This option is only available for VPC EIPs.

source

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

Optional (Some / Option setters). Default:

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

Map of tags to assign to the resource. Tags can only be applied to EIPs in a VPC. 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>>>>>, ) -> EipArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

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

Map of tags to assign to the resource. Tags can only be applied to EIPs in a VPC. 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 vpc( self, value: impl Into<Output<Option<bool>>>, ) -> EipArgsBuilder<SetVpc<S>>
where S::Vpc: IsUnset,

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

Boolean if the EIP is in a VPC or not. Use domain instead. Defaults to true unless the region supports EC2-Classic.

NOTE: You can specify either the instance ID or the network_interface ID, but not both. Including both will not return an error from the AWS API, but will have undefined behavior. See the relevant [AssociateAddress API Call][1] for more information.

NOTE: Specifying both public_ipv4_pool and address won’t cause an error but address will be used in the case both options are defined as the api only requires one or the other.

source

pub fn maybe_vpc( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> EipArgsBuilder<SetVpc<S>>
where S::Vpc: IsUnset,

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

Boolean if the EIP is in a VPC or not. Use domain instead. Defaults to true unless the region supports EC2-Classic.

NOTE: You can specify either the instance ID or the network_interface ID, but not both. Including both will not return an error from the AWS API, but will have undefined behavior. See the relevant [AssociateAddress API Call][1] for more information.

NOTE: Specifying both public_ipv4_pool and address won’t cause an error but address will be used in the case both options are defined as the api only requires one or the other.

Auto Trait Implementations§

§

impl<S> Freeze for EipArgsBuilder<S>

§

impl<S> RefUnwindSafe for EipArgsBuilder<S>

§

impl<S> Send for EipArgsBuilder<S>

§

impl<S> Sync for EipArgsBuilder<S>

§

impl<S> Unpin for EipArgsBuilder<S>

§

impl<S> UnwindSafe for EipArgsBuilder<S>

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.