pulumi_wasm_providers_aws_mini::ec2::launch_configuration

Struct LaunchConfigurationArgsBuilder

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

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

Implementations§

source§

impl<S: State> LaunchConfigurationArgsBuilder<S>

source

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

Finish building and return the requested object

source

pub fn associate_public_ip_address( self, value: impl Into<Output<Option<bool>>>, ) -> LaunchConfigurationArgsBuilder<SetAssociatePublicIpAddress<S>>
where S::AssociatePublicIpAddress: IsUnset,

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

Associate a public ip address with an instance in a VPC.

source

pub fn maybe_associate_public_ip_address( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> LaunchConfigurationArgsBuilder<SetAssociatePublicIpAddress<S>>
where S::AssociatePublicIpAddress: IsUnset,

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

Associate a public ip address with an instance in a VPC.

source

pub fn ebs_block_devices( self, value: impl Into<Output<Option<Vec<LaunchConfigurationEbsBlockDevice>>>>, ) -> LaunchConfigurationArgsBuilder<SetEbsBlockDevices<S>>
where S::EbsBlockDevices: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::LaunchConfigurationEbsBlockDevice>>,
> as Default>::default()

Additional EBS block devices to attach to the instance. See Block Devices below for details.

source

pub fn maybe_ebs_block_devices( self, value: Option<impl Into<Output<Option<Vec<LaunchConfigurationEbsBlockDevice>>>>>, ) -> LaunchConfigurationArgsBuilder<SetEbsBlockDevices<S>>
where S::EbsBlockDevices: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::LaunchConfigurationEbsBlockDevice>>,
> as Default>::default()

Additional EBS block devices to attach to the instance. See Block Devices below for details.

source

pub fn ebs_optimized( self, value: impl Into<Output<Option<bool>>>, ) -> LaunchConfigurationArgsBuilder<SetEbsOptimized<S>>
where S::EbsOptimized: IsUnset,

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

If true, the launched EC2 instance will be EBS-optimized.

source

pub fn maybe_ebs_optimized( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> LaunchConfigurationArgsBuilder<SetEbsOptimized<S>>
where S::EbsOptimized: IsUnset,

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

If true, the launched EC2 instance will be EBS-optimized.

source

pub fn enable_monitoring( self, value: impl Into<Output<Option<bool>>>, ) -> LaunchConfigurationArgsBuilder<SetEnableMonitoring<S>>
where S::EnableMonitoring: IsUnset,

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

Enables/disables detailed monitoring. This is enabled by default.

source

pub fn maybe_enable_monitoring( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> LaunchConfigurationArgsBuilder<SetEnableMonitoring<S>>
where S::EnableMonitoring: IsUnset,

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

Enables/disables detailed monitoring. This is enabled by default.

source

pub fn ephemeral_block_devices( self, value: impl Into<Output<Option<Vec<LaunchConfigurationEphemeralBlockDevice>>>>, ) -> LaunchConfigurationArgsBuilder<SetEphemeralBlockDevices<S>>
where S::EphemeralBlockDevices: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::LaunchConfigurationEphemeralBlockDevice>>,
> as Default>::default()

Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.

source

pub fn maybe_ephemeral_block_devices( self, value: Option<impl Into<Output<Option<Vec<LaunchConfigurationEphemeralBlockDevice>>>>>, ) -> LaunchConfigurationArgsBuilder<SetEphemeralBlockDevices<S>>
where S::EphemeralBlockDevices: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::LaunchConfigurationEphemeralBlockDevice>>,
> as Default>::default()

Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.

source

pub fn iam_instance_profile( self, value: impl Into<Output<Option<String>>>, ) -> LaunchConfigurationArgsBuilder<SetIamInstanceProfile<S>>
where S::IamInstanceProfile: IsUnset,

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

The name attribute of the IAM instance profile to associate with launched instances.

source

pub fn maybe_iam_instance_profile( self, value: Option<impl Into<Output<Option<String>>>>, ) -> LaunchConfigurationArgsBuilder<SetIamInstanceProfile<S>>
where S::IamInstanceProfile: IsUnset,

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

The name attribute of the IAM instance profile to associate with launched instances.

source

pub fn image_id( self, value: impl Into<Output<String>>, ) -> LaunchConfigurationArgsBuilder<SetImageId<S>>
where S::ImageId: IsUnset,

Required.

The EC2 image ID to launch.

source

pub fn instance_type( self, value: impl Into<Output<String>>, ) -> LaunchConfigurationArgsBuilder<SetInstanceType<S>>
where S::InstanceType: IsUnset,

Required.

The size of instance to launch.

The following arguments are optional:

source

pub fn key_name( self, value: impl Into<Output<Option<String>>>, ) -> LaunchConfigurationArgsBuilder<SetKeyName<S>>
where S::KeyName: IsUnset,

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

The key name that should be used for the instance.

source

pub fn maybe_key_name( self, value: Option<impl Into<Output<Option<String>>>>, ) -> LaunchConfigurationArgsBuilder<SetKeyName<S>>
where S::KeyName: IsUnset,

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

The key name that should be used for the instance.

source

pub fn metadata_options( self, value: impl Into<Output<Option<LaunchConfigurationMetadataOptions>>>, ) -> LaunchConfigurationArgsBuilder<SetMetadataOptions<S>>
where S::MetadataOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchConfigurationMetadataOptions>,
> as Default>::default()

The metadata options for the instance.

source

pub fn maybe_metadata_options( self, value: Option<impl Into<Output<Option<LaunchConfigurationMetadataOptions>>>>, ) -> LaunchConfigurationArgsBuilder<SetMetadataOptions<S>>
where S::MetadataOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchConfigurationMetadataOptions>,
> as Default>::default()

The metadata options for the instance.

source

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

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

The name of the launch configuration. If you leave this blank, this provider will auto-generate a unique name. Conflicts with name_prefix.

source

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

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

The name of the launch configuration. If you leave this blank, this provider will auto-generate a unique name. Conflicts with name_prefix.

source

pub fn name_prefix( self, value: impl Into<Output<Option<String>>>, ) -> LaunchConfigurationArgsBuilder<SetNamePrefix<S>>
where S::NamePrefix: IsUnset,

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

Creates a unique name beginning with the specified prefix. Conflicts with name.

source

pub fn maybe_name_prefix( self, value: Option<impl Into<Output<Option<String>>>>, ) -> LaunchConfigurationArgsBuilder<SetNamePrefix<S>>
where S::NamePrefix: IsUnset,

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

Creates a unique name beginning with the specified prefix. Conflicts with name.

source

pub fn placement_tenancy( self, value: impl Into<Output<Option<String>>>, ) -> LaunchConfigurationArgsBuilder<SetPlacementTenancy<S>>
where S::PlacementTenancy: IsUnset,

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

The tenancy of the instance. Valid values are default or dedicated, see AWS’s Create Launch Configuration for more details.

source

pub fn maybe_placement_tenancy( self, value: Option<impl Into<Output<Option<String>>>>, ) -> LaunchConfigurationArgsBuilder<SetPlacementTenancy<S>>
where S::PlacementTenancy: IsUnset,

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

The tenancy of the instance. Valid values are default or dedicated, see AWS’s Create Launch Configuration for more details.

source

pub fn root_block_device( self, value: impl Into<Output<Option<LaunchConfigurationRootBlockDevice>>>, ) -> LaunchConfigurationArgsBuilder<SetRootBlockDevice<S>>
where S::RootBlockDevice: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchConfigurationRootBlockDevice>,
> as Default>::default()

Customize details about the root block device of the instance. See Block Devices below for details.

source

pub fn maybe_root_block_device( self, value: Option<impl Into<Output<Option<LaunchConfigurationRootBlockDevice>>>>, ) -> LaunchConfigurationArgsBuilder<SetRootBlockDevice<S>>
where S::RootBlockDevice: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::LaunchConfigurationRootBlockDevice>,
> as Default>::default()

Customize details about the root block device of the instance. See Block Devices below for details.

source

pub fn security_groups( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> LaunchConfigurationArgsBuilder<SetSecurityGroups<S>>
where S::SecurityGroups: IsUnset,

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

A list of associated security group IDS.

source

pub fn maybe_security_groups( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> LaunchConfigurationArgsBuilder<SetSecurityGroups<S>>
where S::SecurityGroups: IsUnset,

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

A list of associated security group IDS.

source

pub fn spot_price( self, value: impl Into<Output<Option<String>>>, ) -> LaunchConfigurationArgsBuilder<SetSpotPrice<S>>
where S::SpotPrice: IsUnset,

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

The maximum price to use for reserving spot instances.

source

pub fn maybe_spot_price( self, value: Option<impl Into<Output<Option<String>>>>, ) -> LaunchConfigurationArgsBuilder<SetSpotPrice<S>>
where S::SpotPrice: IsUnset,

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

The maximum price to use for reserving spot instances.

source

pub fn user_data( self, value: impl Into<Output<Option<String>>>, ) -> LaunchConfigurationArgsBuilder<SetUserData<S>>
where S::UserData: IsUnset,

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

The user data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead.

source

pub fn maybe_user_data( self, value: Option<impl Into<Output<Option<String>>>>, ) -> LaunchConfigurationArgsBuilder<SetUserData<S>>
where S::UserData: IsUnset,

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

The user data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead.

source

pub fn user_data_base64( self, value: impl Into<Output<Option<String>>>, ) -> LaunchConfigurationArgsBuilder<SetUserDataBase64<S>>
where S::UserDataBase64: IsUnset,

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

Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption.

source

pub fn maybe_user_data_base64( self, value: Option<impl Into<Output<Option<String>>>>, ) -> LaunchConfigurationArgsBuilder<SetUserDataBase64<S>>
where S::UserDataBase64: IsUnset,

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

Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption.

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.