pulumi_wasm_providers_gcp_mini::compute::node_group

Struct NodeGroupArgsBuilder

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

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

Implementations§

source§

impl<S: State> NodeGroupArgsBuilder<S>

source

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

Finish building and return the requested object

source

pub fn autoscaling_policy( self, value: impl Into<Output<Option<NodeGroupAutoscalingPolicy>>>, ) -> NodeGroupArgsBuilder<SetAutoscalingPolicy<S>>
where S::AutoscalingPolicy: IsUnset,

Optional (Some / Option setters). Default:

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

If you use sole-tenant nodes for your workloads, you can use the node group autoscaler to automatically manage the sizes of your node groups. One of initial_size or autoscaling_policy must be configured on resource creation. Structure is documented below.

source

pub fn maybe_autoscaling_policy( self, value: Option<impl Into<Output<Option<NodeGroupAutoscalingPolicy>>>>, ) -> NodeGroupArgsBuilder<SetAutoscalingPolicy<S>>
where S::AutoscalingPolicy: IsUnset,

Optional (Some / Option setters). Default:

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

If you use sole-tenant nodes for your workloads, you can use the node group autoscaler to automatically manage the sizes of your node groups. One of initial_size or autoscaling_policy must be configured on resource creation. Structure is documented below.

source

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

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

An optional textual description of the resource.

source

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

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

An optional textual description of the resource.

source

pub fn initial_size( self, value: impl Into<Output<Option<i32>>>, ) -> NodeGroupArgsBuilder<SetInitialSize<S>>
where S::InitialSize: IsUnset,

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

The initial number of nodes in the node group. One of initial_size or autoscaling_policy must be configured on resource creation.

source

pub fn maybe_initial_size( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> NodeGroupArgsBuilder<SetInitialSize<S>>
where S::InitialSize: IsUnset,

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

The initial number of nodes in the node group. One of initial_size or autoscaling_policy must be configured on resource creation.

source

pub fn maintenance_interval( self, value: impl Into<Output<Option<String>>>, ) -> NodeGroupArgsBuilder<SetMaintenanceInterval<S>>
where S::MaintenanceInterval: IsUnset,

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

Specifies the frequency of planned maintenance events. Set to one of the following:

  • AS_NEEDED: Hosts are eligible to receive infrastructure and hypervisor updates as they become available.
  • RECURRENT: Hosts receive planned infrastructure and hypervisor updates on a periodic basis, but not more frequently than every 28 days. This minimizes the number of planned maintenance operations on individual hosts and reduces the frequency of disruptions, both live migrations and terminations, on individual VMs. Possible values are: AS_NEEDED, RECURRENT.
source

pub fn maybe_maintenance_interval( self, value: Option<impl Into<Output<Option<String>>>>, ) -> NodeGroupArgsBuilder<SetMaintenanceInterval<S>>
where S::MaintenanceInterval: IsUnset,

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

Specifies the frequency of planned maintenance events. Set to one of the following:

  • AS_NEEDED: Hosts are eligible to receive infrastructure and hypervisor updates as they become available.
  • RECURRENT: Hosts receive planned infrastructure and hypervisor updates on a periodic basis, but not more frequently than every 28 days. This minimizes the number of planned maintenance operations on individual hosts and reduces the frequency of disruptions, both live migrations and terminations, on individual VMs. Possible values are: AS_NEEDED, RECURRENT.
source

pub fn maintenance_policy( self, value: impl Into<Output<Option<String>>>, ) -> NodeGroupArgsBuilder<SetMaintenancePolicy<S>>
where S::MaintenancePolicy: IsUnset,

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

Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT.

source

pub fn maybe_maintenance_policy( self, value: Option<impl Into<Output<Option<String>>>>, ) -> NodeGroupArgsBuilder<SetMaintenancePolicy<S>>
where S::MaintenancePolicy: IsUnset,

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

Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT.

source

pub fn maintenance_window( self, value: impl Into<Output<Option<NodeGroupMaintenanceWindow>>>, ) -> NodeGroupArgsBuilder<SetMaintenanceWindow<S>>
where S::MaintenanceWindow: IsUnset,

Optional (Some / Option setters). Default:

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

contains properties for the timeframe of maintenance Structure is documented below.

source

pub fn maybe_maintenance_window( self, value: Option<impl Into<Output<Option<NodeGroupMaintenanceWindow>>>>, ) -> NodeGroupArgsBuilder<SetMaintenanceWindow<S>>
where S::MaintenanceWindow: IsUnset,

Optional (Some / Option setters). Default:

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

contains properties for the timeframe of maintenance Structure is documented below.

source

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

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

Name of the resource.

source

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

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

Name of the resource.

source

pub fn node_template( self, value: impl Into<Output<String>>, ) -> NodeGroupArgsBuilder<SetNodeTemplate<S>>
where S::NodeTemplate: IsUnset,

Required.

The URL of the node template to which this node group belongs.


source

pub fn project( self, value: impl Into<Output<Option<String>>>, ) -> NodeGroupArgsBuilder<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>>>>, ) -> NodeGroupArgsBuilder<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 share_settings( self, value: impl Into<Output<Option<NodeGroupShareSettings>>>, ) -> NodeGroupArgsBuilder<SetShareSettings<S>>
where S::ShareSettings: IsUnset,

Optional (Some / Option setters). Default:

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

Share settings for the node group. Structure is documented below.

source

pub fn maybe_share_settings( self, value: Option<impl Into<Output<Option<NodeGroupShareSettings>>>>, ) -> NodeGroupArgsBuilder<SetShareSettings<S>>
where S::ShareSettings: IsUnset,

Optional (Some / Option setters). Default:

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

Share settings for the node group. Structure is documented below.

source

pub fn zone( self, value: impl Into<Output<Option<String>>>, ) -> NodeGroupArgsBuilder<SetZone<S>>
where S::Zone: IsUnset,

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

Zone where this node group is located

source

pub fn maybe_zone( self, value: Option<impl Into<Output<Option<String>>>>, ) -> NodeGroupArgsBuilder<SetZone<S>>
where S::Zone: IsUnset,

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

Zone where this node group is located

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.