pulumi_wasm_providers_gcp_mini::compute::interconnect

Struct InterconnectArgsBuilder

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

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

Implementations§

source§

impl<S: State> InterconnectArgsBuilder<S>

source

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

Finish building and return the requested object

source

pub fn admin_enabled( self, value: impl Into<Output<Option<bool>>>, ) -> InterconnectArgsBuilder<SetAdminEnabled<S>>
where S::AdminEnabled: IsUnset,

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

Administrative status of the interconnect. When this is set to true, the Interconnect is functional and can carry traffic. When set to false, no packets can be carried over the interconnect and no BGP routes are exchanged over it. By default, the status is set to true.

source

pub fn maybe_admin_enabled( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> InterconnectArgsBuilder<SetAdminEnabled<S>>
where S::AdminEnabled: IsUnset,

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

Administrative status of the interconnect. When this is set to true, the Interconnect is functional and can carry traffic. When set to false, no packets can be carried over the interconnect and no BGP routes are exchanged over it. By default, the status is set to true.

source

pub fn customer_name( self, value: impl Into<Output<Option<String>>>, ) -> InterconnectArgsBuilder<SetCustomerName<S>>
where S::CustomerName: IsUnset,

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

Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. This field is required for Dedicated and Partner Interconnect, should not be specified for cross-cloud interconnect.

source

pub fn maybe_customer_name( self, value: Option<impl Into<Output<Option<String>>>>, ) -> InterconnectArgsBuilder<SetCustomerName<S>>
where S::CustomerName: IsUnset,

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

Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. This field is required for Dedicated and Partner Interconnect, should not be specified for cross-cloud interconnect.

source

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

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

An optional description of this resource. Provide this property when you create the resource.

source

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

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

An optional description of this resource. Provide this property when you create the resource.

source

pub fn interconnect_type( self, value: impl Into<Output<String>>, ) -> InterconnectArgsBuilder<SetInterconnectType<S>>
where S::InterconnectType: IsUnset,

Required.

Type of interconnect. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. Can take one of the following values:

  • PARTNER: A partner-managed interconnection shared between customers though a partner.
  • DEDICATED: A dedicated physical interconnection with the customer. Possible values are: DEDICATED, PARTNER, IT_PRIVATE.

source

pub fn labels( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> InterconnectArgsBuilder<SetLabels<S>>
where S::Labels: IsUnset,

Optional (Some / Option setters). Default:

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

Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

source

pub fn maybe_labels( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> InterconnectArgsBuilder<SetLabels<S>>
where S::Labels: IsUnset,

Optional (Some / Option setters). Default:

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

Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

Required.

Type of link requested. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle. Can take one of the following values:

  • LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics.
  • LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. Possible values are: LINK_TYPE_ETHERNET_10G_LR, LINK_TYPE_ETHERNET_100G_LR.
source

pub fn location( self, value: impl Into<Output<Option<String>>>, ) -> InterconnectArgsBuilder<SetLocation<S>>
where S::Location: IsUnset,

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

URL of the InterconnectLocation object that represents where this connection is to be provisioned. Specifies the location inside Google’s Networks, should not be passed in case of cross-cloud interconnect.

source

pub fn maybe_location( self, value: Option<impl Into<Output<Option<String>>>>, ) -> InterconnectArgsBuilder<SetLocation<S>>
where S::Location: IsUnset,

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

URL of the InterconnectLocation object that represents where this connection is to be provisioned. Specifies the location inside Google’s Networks, should not be passed in case of cross-cloud interconnect.

source

pub fn macsec( self, value: impl Into<Output<Option<InterconnectMacsec>>>, ) -> InterconnectArgsBuilder<SetMacsec<S>>
where S::Macsec: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::InterconnectMacsec>,
> as Default>::default()

Configuration that enables Media Access Control security (MACsec) on the Cloud Interconnect connection between Google and your on-premises router. Structure is documented below.

source

pub fn maybe_macsec( self, value: Option<impl Into<Output<Option<InterconnectMacsec>>>>, ) -> InterconnectArgsBuilder<SetMacsec<S>>
where S::Macsec: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::InterconnectMacsec>,
> as Default>::default()

Configuration that enables Media Access Control security (MACsec) on the Cloud Interconnect connection between Google and your on-premises router. Structure is documented below.

source

pub fn macsec_enabled( self, value: impl Into<Output<Option<bool>>>, ) -> InterconnectArgsBuilder<SetMacsecEnabled<S>>
where S::MacsecEnabled: IsUnset,

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

Enable or disable MACsec on this Interconnect connection. MACsec enablement fails if the MACsec object is not specified.

source

pub fn maybe_macsec_enabled( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> InterconnectArgsBuilder<SetMacsecEnabled<S>>
where S::MacsecEnabled: IsUnset,

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

Enable or disable MACsec on this Interconnect connection. MACsec enablement fails if the MACsec object is not specified.

source

pub fn name( self, value: impl Into<Output<Option<String>>>, ) -> InterconnectArgsBuilder<SetName<S>>
where S::Name: IsUnset,

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

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

source

pub fn maybe_name( self, value: Option<impl Into<Output<Option<String>>>>, ) -> InterconnectArgsBuilder<SetName<S>>
where S::Name: IsUnset,

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

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

source

pub fn noc_contact_email( self, value: impl Into<Output<Option<String>>>, ) -> InterconnectArgsBuilder<SetNocContactEmail<S>>
where S::NocContactEmail: IsUnset,

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

Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This field is required for users who sign up for Cloud Interconnect using workforce identity federation.

source

pub fn maybe_noc_contact_email( self, value: Option<impl Into<Output<Option<String>>>>, ) -> InterconnectArgsBuilder<SetNocContactEmail<S>>
where S::NocContactEmail: IsUnset,

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

Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This field is required for users who sign up for Cloud Interconnect using workforce identity federation.

source

pub fn project( self, value: impl Into<Output<Option<String>>>, ) -> InterconnectArgsBuilder<SetProject<S>>
where S::Project: IsUnset,

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

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

source

pub fn maybe_project( self, value: Option<impl Into<Output<Option<String>>>>, ) -> InterconnectArgsBuilder<SetProject<S>>
where S::Project: IsUnset,

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

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

source

pub fn remote_location( self, value: impl Into<Output<Option<String>>>, ) -> InterconnectArgsBuilder<SetRemoteLocation<S>>
where S::RemoteLocation: IsUnset,

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

Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of Google’s network that the interconnect is connected to.

source

pub fn maybe_remote_location( self, value: Option<impl Into<Output<Option<String>>>>, ) -> InterconnectArgsBuilder<SetRemoteLocation<S>>
where S::RemoteLocation: IsUnset,

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

Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of Google’s network that the interconnect is connected to.

source

pub fn requested_features( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> InterconnectArgsBuilder<SetRequestedFeatures<S>>
where S::RequestedFeatures: IsUnset,

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

interconnects.list of features requested for this Interconnect connection. Options: IF_MACSEC ( If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available). Note that MACSEC is still technically allowed for compatibility reasons, but it does not work with the API, and will be removed in an upcoming major version. Each value may be one of: MACSEC, IF_MACSEC.

source

pub fn maybe_requested_features( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> InterconnectArgsBuilder<SetRequestedFeatures<S>>
where S::RequestedFeatures: IsUnset,

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

interconnects.list of features requested for this Interconnect connection. Options: IF_MACSEC ( If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available). Note that MACSEC is still technically allowed for compatibility reasons, but it does not work with the API, and will be removed in an upcoming major version. Each value may be one of: MACSEC, IF_MACSEC.

Required.

Target number of physical links in the link bundle, as requested by the customer.

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.