pub struct InstanceArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> InstanceArgsBuilder<S>
impl<S: State> InstanceArgsBuilder<S>
sourcepub fn build_struct(self) -> InstanceArgswhere
S: IsComplete,
pub fn build_struct(self) -> InstanceArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn ami(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetAmi<S>>where
S::Ami: IsUnset,
pub fn ami(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetAmi<S>>where
S::Ami: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
AMI to use for the instance. Required unless launch_template
is specified and the Launch Template specifes an AMI. If an AMI is specified in the Launch Template, setting ami
will override the AMI specified in the Launch Template.
sourcepub fn maybe_ami(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetAmi<S>>where
S::Ami: IsUnset,
pub fn maybe_ami(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetAmi<S>>where
S::Ami: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
AMI to use for the instance. Required unless launch_template
is specified and the Launch Template specifes an AMI. If an AMI is specified in the Launch Template, setting ami
will override the AMI specified in the Launch Template.
sourcepub fn associate_public_ip_address(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetAssociatePublicIpAddress<S>>where
S::AssociatePublicIpAddress: IsUnset,
pub fn associate_public_ip_address(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetAssociatePublicIpAddress<S>>where
S::AssociatePublicIpAddress: IsUnset,
sourcepub fn maybe_associate_public_ip_address(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetAssociatePublicIpAddress<S>>where
S::AssociatePublicIpAddress: IsUnset,
pub fn maybe_associate_public_ip_address(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetAssociatePublicIpAddress<S>>where
S::AssociatePublicIpAddress: IsUnset,
sourcepub fn availability_zone(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetAvailabilityZone<S>>where
S::AvailabilityZone: IsUnset,
pub fn availability_zone(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetAvailabilityZone<S>>where
S::AvailabilityZone: IsUnset,
sourcepub fn maybe_availability_zone(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetAvailabilityZone<S>>where
S::AvailabilityZone: IsUnset,
pub fn maybe_availability_zone(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetAvailabilityZone<S>>where
S::AvailabilityZone: IsUnset,
sourcepub fn capacity_reservation_specification(
self,
value: impl Into<Output<Option<InstanceCapacityReservationSpecification>>>,
) -> InstanceArgsBuilder<SetCapacityReservationSpecification<S>>where
S::CapacityReservationSpecification: IsUnset,
pub fn capacity_reservation_specification(
self,
value: impl Into<Output<Option<InstanceCapacityReservationSpecification>>>,
) -> InstanceArgsBuilder<SetCapacityReservationSpecification<S>>where
S::CapacityReservationSpecification: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::ec2::InstanceCapacityReservationSpecification>,
> as Default>::default()
Describes an instance’s Capacity Reservation targeting option. See Capacity Reservation Specification below for more details.
NOTE: Changing
cpu_core_count
and/orcpu_threads_per_core
will cause the resource to be destroyed and re-created.
sourcepub fn maybe_capacity_reservation_specification(
self,
value: Option<impl Into<Output<Option<InstanceCapacityReservationSpecification>>>>,
) -> InstanceArgsBuilder<SetCapacityReservationSpecification<S>>where
S::CapacityReservationSpecification: IsUnset,
pub fn maybe_capacity_reservation_specification(
self,
value: Option<impl Into<Output<Option<InstanceCapacityReservationSpecification>>>>,
) -> InstanceArgsBuilder<SetCapacityReservationSpecification<S>>where
S::CapacityReservationSpecification: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::ec2::InstanceCapacityReservationSpecification>,
> as Default>::default()
Describes an instance’s Capacity Reservation targeting option. See Capacity Reservation Specification below for more details.
NOTE: Changing
cpu_core_count
and/orcpu_threads_per_core
will cause the resource to be destroyed and re-created.
sourcepub fn cpu_core_count(
self,
value: impl Into<Output<Option<i32>>>,
) -> InstanceArgsBuilder<SetCpuCoreCount<S>>where
S::CpuCoreCount: IsUnset,
pub fn cpu_core_count(
self,
value: impl Into<Output<Option<i32>>>,
) -> InstanceArgsBuilder<SetCpuCoreCount<S>>where
S::CpuCoreCount: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default()
.
Sets the number of CPU cores for an instance. This option is only supported on creation of instance type that support CPU Options CPU Cores and Threads Per CPU Core Per Instance Type - specifying this option for unsupported instance types will return an error from the EC2 API.
sourcepub fn maybe_cpu_core_count(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> InstanceArgsBuilder<SetCpuCoreCount<S>>where
S::CpuCoreCount: IsUnset,
pub fn maybe_cpu_core_count(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> InstanceArgsBuilder<SetCpuCoreCount<S>>where
S::CpuCoreCount: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default()
.
Sets the number of CPU cores for an instance. This option is only supported on creation of instance type that support CPU Options CPU Cores and Threads Per CPU Core Per Instance Type - specifying this option for unsupported instance types will return an error from the EC2 API.
sourcepub fn cpu_options(
self,
value: impl Into<Output<Option<InstanceCpuOptions>>>,
) -> InstanceArgsBuilder<SetCpuOptions<S>>where
S::CpuOptions: IsUnset,
pub fn cpu_options(
self,
value: impl Into<Output<Option<InstanceCpuOptions>>>,
) -> InstanceArgsBuilder<SetCpuOptions<S>>where
S::CpuOptions: IsUnset,
sourcepub fn maybe_cpu_options(
self,
value: Option<impl Into<Output<Option<InstanceCpuOptions>>>>,
) -> InstanceArgsBuilder<SetCpuOptions<S>>where
S::CpuOptions: IsUnset,
pub fn maybe_cpu_options(
self,
value: Option<impl Into<Output<Option<InstanceCpuOptions>>>>,
) -> InstanceArgsBuilder<SetCpuOptions<S>>where
S::CpuOptions: IsUnset,
sourcepub fn cpu_threads_per_core(
self,
value: impl Into<Output<Option<i32>>>,
) -> InstanceArgsBuilder<SetCpuThreadsPerCore<S>>where
S::CpuThreadsPerCore: IsUnset,
pub fn cpu_threads_per_core(
self,
value: impl Into<Output<Option<i32>>>,
) -> InstanceArgsBuilder<SetCpuThreadsPerCore<S>>where
S::CpuThreadsPerCore: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default()
.
If set to 1, hyperthreading is disabled on the launched instance. Defaults to 2 if not set. See Optimizing CPU Options for more information.
sourcepub fn maybe_cpu_threads_per_core(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> InstanceArgsBuilder<SetCpuThreadsPerCore<S>>where
S::CpuThreadsPerCore: IsUnset,
pub fn maybe_cpu_threads_per_core(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> InstanceArgsBuilder<SetCpuThreadsPerCore<S>>where
S::CpuThreadsPerCore: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default()
.
If set to 1, hyperthreading is disabled on the launched instance. Defaults to 2 if not set. See Optimizing CPU Options for more information.
sourcepub fn credit_specification(
self,
value: impl Into<Output<Option<InstanceCreditSpecification>>>,
) -> InstanceArgsBuilder<SetCreditSpecification<S>>where
S::CreditSpecification: IsUnset,
pub fn credit_specification(
self,
value: impl Into<Output<Option<InstanceCreditSpecification>>>,
) -> InstanceArgsBuilder<SetCreditSpecification<S>>where
S::CreditSpecification: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::ec2::InstanceCreditSpecification>,
> as Default>::default()
Configuration block for customizing the credit specification of the instance. See Credit Specification below for more details. This provider will only perform drift detection of its value when present in a configuration. Removing this configuration on existing instances will only stop managing it. It will not change the configuration back to the default for the instance type.
sourcepub fn maybe_credit_specification(
self,
value: Option<impl Into<Output<Option<InstanceCreditSpecification>>>>,
) -> InstanceArgsBuilder<SetCreditSpecification<S>>where
S::CreditSpecification: IsUnset,
pub fn maybe_credit_specification(
self,
value: Option<impl Into<Output<Option<InstanceCreditSpecification>>>>,
) -> InstanceArgsBuilder<SetCreditSpecification<S>>where
S::CreditSpecification: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::ec2::InstanceCreditSpecification>,
> as Default>::default()
Configuration block for customizing the credit specification of the instance. See Credit Specification below for more details. This provider will only perform drift detection of its value when present in a configuration. Removing this configuration on existing instances will only stop managing it. It will not change the configuration back to the default for the instance type.
sourcepub fn disable_api_stop(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetDisableApiStop<S>>where
S::DisableApiStop: IsUnset,
pub fn disable_api_stop(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetDisableApiStop<S>>where
S::DisableApiStop: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
If true, enables EC2 Instance Stop Protection.
sourcepub fn maybe_disable_api_stop(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetDisableApiStop<S>>where
S::DisableApiStop: IsUnset,
pub fn maybe_disable_api_stop(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetDisableApiStop<S>>where
S::DisableApiStop: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
If true, enables EC2 Instance Stop Protection.
sourcepub fn disable_api_termination(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetDisableApiTermination<S>>where
S::DisableApiTermination: IsUnset,
pub fn disable_api_termination(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetDisableApiTermination<S>>where
S::DisableApiTermination: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
If true, enables EC2 Instance Termination Protection.
sourcepub fn maybe_disable_api_termination(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetDisableApiTermination<S>>where
S::DisableApiTermination: IsUnset,
pub fn maybe_disable_api_termination(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetDisableApiTermination<S>>where
S::DisableApiTermination: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
If true, enables EC2 Instance Termination Protection.
sourcepub fn ebs_block_devices(
self,
value: impl Into<Output<Option<Vec<InstanceEbsBlockDevice>>>>,
) -> InstanceArgsBuilder<SetEbsBlockDevices<S>>where
S::EbsBlockDevices: IsUnset,
pub fn ebs_block_devices(
self,
value: impl Into<Output<Option<Vec<InstanceEbsBlockDevice>>>>,
) -> InstanceArgsBuilder<SetEbsBlockDevices<S>>where
S::EbsBlockDevices: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<Vec<super::super::types::ec2::InstanceEbsBlockDevice>>,
> as Default>::default()
One or more configuration blocks with additional EBS block devices to attach to the instance. Block device configurations only apply on resource creation. See Block Devices below for details on attributes and drift detection. When accessing this as an attribute reference, it is a set of objects.
sourcepub fn maybe_ebs_block_devices(
self,
value: Option<impl Into<Output<Option<Vec<InstanceEbsBlockDevice>>>>>,
) -> InstanceArgsBuilder<SetEbsBlockDevices<S>>where
S::EbsBlockDevices: IsUnset,
pub fn maybe_ebs_block_devices(
self,
value: Option<impl Into<Output<Option<Vec<InstanceEbsBlockDevice>>>>>,
) -> InstanceArgsBuilder<SetEbsBlockDevices<S>>where
S::EbsBlockDevices: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<Vec<super::super::types::ec2::InstanceEbsBlockDevice>>,
> as Default>::default()
One or more configuration blocks with additional EBS block devices to attach to the instance. Block device configurations only apply on resource creation. See Block Devices below for details on attributes and drift detection. When accessing this as an attribute reference, it is a set of objects.
sourcepub fn ebs_optimized(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetEbsOptimized<S>>where
S::EbsOptimized: IsUnset,
pub fn ebs_optimized(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<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. Note that if this is not set on an instance type that is optimized by default then this will show as disabled but if the instance type is optimized by default then there is no need to set this and there is no effect to disabling it. See the EBS Optimized section of the AWS User Guide for more information.
sourcepub fn maybe_ebs_optimized(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetEbsOptimized<S>>where
S::EbsOptimized: IsUnset,
pub fn maybe_ebs_optimized(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<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. Note that if this is not set on an instance type that is optimized by default then this will show as disabled but if the instance type is optimized by default then there is no need to set this and there is no effect to disabling it. See the EBS Optimized section of the AWS User Guide for more information.
sourcepub fn enable_primary_ipv6(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetEnablePrimaryIpv6<S>>where
S::EnablePrimaryIpv6: IsUnset,
pub fn enable_primary_ipv6(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetEnablePrimaryIpv6<S>>where
S::EnablePrimaryIpv6: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Whether to assign a primary IPv6 Global Unicast Address (GUA) to the instance when launched in a dual-stack or IPv6-only subnet. A primary IPv6 address ensures a consistent IPv6 address for the instance and is automatically assigned by AWS to the ENI. Once enabled, the first IPv6 GUA becomes the primary IPv6 address and cannot be disabled. The primary IPv6 address remains until the instance is terminated or the ENI is detached. Disabling enable_primary_ipv6
after it has been enabled forces recreation of the instance.
sourcepub fn maybe_enable_primary_ipv6(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetEnablePrimaryIpv6<S>>where
S::EnablePrimaryIpv6: IsUnset,
pub fn maybe_enable_primary_ipv6(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetEnablePrimaryIpv6<S>>where
S::EnablePrimaryIpv6: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Whether to assign a primary IPv6 Global Unicast Address (GUA) to the instance when launched in a dual-stack or IPv6-only subnet. A primary IPv6 address ensures a consistent IPv6 address for the instance and is automatically assigned by AWS to the ENI. Once enabled, the first IPv6 GUA becomes the primary IPv6 address and cannot be disabled. The primary IPv6 address remains until the instance is terminated or the ENI is detached. Disabling enable_primary_ipv6
after it has been enabled forces recreation of the instance.
sourcepub fn enclave_options(
self,
value: impl Into<Output<Option<InstanceEnclaveOptions>>>,
) -> InstanceArgsBuilder<SetEnclaveOptions<S>>where
S::EnclaveOptions: IsUnset,
pub fn enclave_options(
self,
value: impl Into<Output<Option<InstanceEnclaveOptions>>>,
) -> InstanceArgsBuilder<SetEnclaveOptions<S>>where
S::EnclaveOptions: IsUnset,
sourcepub fn maybe_enclave_options(
self,
value: Option<impl Into<Output<Option<InstanceEnclaveOptions>>>>,
) -> InstanceArgsBuilder<SetEnclaveOptions<S>>where
S::EnclaveOptions: IsUnset,
pub fn maybe_enclave_options(
self,
value: Option<impl Into<Output<Option<InstanceEnclaveOptions>>>>,
) -> InstanceArgsBuilder<SetEnclaveOptions<S>>where
S::EnclaveOptions: IsUnset,
sourcepub fn ephemeral_block_devices(
self,
value: impl Into<Output<Option<Vec<InstanceEphemeralBlockDevice>>>>,
) -> InstanceArgsBuilder<SetEphemeralBlockDevices<S>>where
S::EphemeralBlockDevices: IsUnset,
pub fn ephemeral_block_devices(
self,
value: impl Into<Output<Option<Vec<InstanceEphemeralBlockDevice>>>>,
) -> InstanceArgsBuilder<SetEphemeralBlockDevices<S>>where
S::EphemeralBlockDevices: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<Vec<super::super::types::ec2::InstanceEphemeralBlockDevice>>,
> as Default>::default()
One or more configuration blocks to customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details. When accessing this as an attribute reference, it is a set of objects.
sourcepub fn maybe_ephemeral_block_devices(
self,
value: Option<impl Into<Output<Option<Vec<InstanceEphemeralBlockDevice>>>>>,
) -> InstanceArgsBuilder<SetEphemeralBlockDevices<S>>where
S::EphemeralBlockDevices: IsUnset,
pub fn maybe_ephemeral_block_devices(
self,
value: Option<impl Into<Output<Option<Vec<InstanceEphemeralBlockDevice>>>>>,
) -> InstanceArgsBuilder<SetEphemeralBlockDevices<S>>where
S::EphemeralBlockDevices: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<Vec<super::super::types::ec2::InstanceEphemeralBlockDevice>>,
> as Default>::default()
One or more configuration blocks to customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details. When accessing this as an attribute reference, it is a set of objects.
sourcepub fn get_password_data(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetGetPasswordData<S>>where
S::GetPasswordData: IsUnset,
pub fn get_password_data(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetGetPasswordData<S>>where
S::GetPasswordData: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
If true, wait for password data to become available and retrieve it. Useful for getting the administrator password for instances running Microsoft Windows. The password data is exported to the password_data
attribute. See GetPasswordData for more information.
sourcepub fn maybe_get_password_data(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetGetPasswordData<S>>where
S::GetPasswordData: IsUnset,
pub fn maybe_get_password_data(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetGetPasswordData<S>>where
S::GetPasswordData: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
If true, wait for password data to become available and retrieve it. Useful for getting the administrator password for instances running Microsoft Windows. The password data is exported to the password_data
attribute. See GetPasswordData for more information.
sourcepub fn hibernation(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetHibernation<S>>where
S::Hibernation: IsUnset,
pub fn hibernation(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetHibernation<S>>where
S::Hibernation: IsUnset,
sourcepub fn maybe_hibernation(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetHibernation<S>>where
S::Hibernation: IsUnset,
pub fn maybe_hibernation(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetHibernation<S>>where
S::Hibernation: IsUnset,
sourcepub fn host_id(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetHostId<S>>where
S::HostId: IsUnset,
pub fn host_id(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetHostId<S>>where
S::HostId: IsUnset,
sourcepub fn maybe_host_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetHostId<S>>where
S::HostId: IsUnset,
pub fn maybe_host_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetHostId<S>>where
S::HostId: IsUnset,
sourcepub fn host_resource_group_arn(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetHostResourceGroupArn<S>>where
S::HostResourceGroupArn: IsUnset,
pub fn host_resource_group_arn(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetHostResourceGroupArn<S>>where
S::HostResourceGroupArn: IsUnset,
sourcepub fn maybe_host_resource_group_arn(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetHostResourceGroupArn<S>>where
S::HostResourceGroupArn: IsUnset,
pub fn maybe_host_resource_group_arn(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetHostResourceGroupArn<S>>where
S::HostResourceGroupArn: IsUnset,
sourcepub fn iam_instance_profile(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetIamInstanceProfile<S>>where
S::IamInstanceProfile: IsUnset,
pub fn iam_instance_profile(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetIamInstanceProfile<S>>where
S::IamInstanceProfile: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
IAM Instance Profile to launch the instance with. Specified as the name of the Instance Profile. Ensure your credentials have the correct permission to assign the instance profile according to the EC2 documentation, notably iam:PassRole
.
sourcepub fn maybe_iam_instance_profile(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetIamInstanceProfile<S>>where
S::IamInstanceProfile: IsUnset,
pub fn maybe_iam_instance_profile(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetIamInstanceProfile<S>>where
S::IamInstanceProfile: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
IAM Instance Profile to launch the instance with. Specified as the name of the Instance Profile. Ensure your credentials have the correct permission to assign the instance profile according to the EC2 documentation, notably iam:PassRole
.
sourcepub fn instance_initiated_shutdown_behavior(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetInstanceInitiatedShutdownBehavior<S>>where
S::InstanceInitiatedShutdownBehavior: IsUnset,
pub fn instance_initiated_shutdown_behavior(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetInstanceInitiatedShutdownBehavior<S>>where
S::InstanceInitiatedShutdownBehavior: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Shutdown behavior for the instance. Amazon defaults this to stop
for EBS-backed instances and terminate
for instance-store instances. Cannot be set on instance-store instances. See Shutdown Behavior for more information.
sourcepub fn maybe_instance_initiated_shutdown_behavior(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetInstanceInitiatedShutdownBehavior<S>>where
S::InstanceInitiatedShutdownBehavior: IsUnset,
pub fn maybe_instance_initiated_shutdown_behavior(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetInstanceInitiatedShutdownBehavior<S>>where
S::InstanceInitiatedShutdownBehavior: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Shutdown behavior for the instance. Amazon defaults this to stop
for EBS-backed instances and terminate
for instance-store instances. Cannot be set on instance-store instances. See Shutdown Behavior for more information.
sourcepub fn instance_market_options(
self,
value: impl Into<Output<Option<InstanceInstanceMarketOptions>>>,
) -> InstanceArgsBuilder<SetInstanceMarketOptions<S>>where
S::InstanceMarketOptions: IsUnset,
pub fn instance_market_options(
self,
value: impl Into<Output<Option<InstanceInstanceMarketOptions>>>,
) -> InstanceArgsBuilder<SetInstanceMarketOptions<S>>where
S::InstanceMarketOptions: IsUnset,
sourcepub fn maybe_instance_market_options(
self,
value: Option<impl Into<Output<Option<InstanceInstanceMarketOptions>>>>,
) -> InstanceArgsBuilder<SetInstanceMarketOptions<S>>where
S::InstanceMarketOptions: IsUnset,
pub fn maybe_instance_market_options(
self,
value: Option<impl Into<Output<Option<InstanceInstanceMarketOptions>>>>,
) -> InstanceArgsBuilder<SetInstanceMarketOptions<S>>where
S::InstanceMarketOptions: IsUnset,
sourcepub fn instance_type(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetInstanceType<S>>where
S::InstanceType: IsUnset,
pub fn instance_type(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetInstanceType<S>>where
S::InstanceType: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Instance type to use for the instance. Required unless launch_template
is specified and the Launch Template specifies an instance type. If an instance type is specified in the Launch Template, setting instance_type
will override the instance type specified in the Launch Template. Updates to this field will trigger a stop/start of the EC2 instance.
sourcepub fn maybe_instance_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetInstanceType<S>>where
S::InstanceType: IsUnset,
pub fn maybe_instance_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetInstanceType<S>>where
S::InstanceType: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Instance type to use for the instance. Required unless launch_template
is specified and the Launch Template specifies an instance type. If an instance type is specified in the Launch Template, setting instance_type
will override the instance type specified in the Launch Template. Updates to this field will trigger a stop/start of the EC2 instance.
sourcepub fn ipv6_address_count(
self,
value: impl Into<Output<Option<i32>>>,
) -> InstanceArgsBuilder<SetIpv6AddressCount<S>>where
S::Ipv6AddressCount: IsUnset,
pub fn ipv6_address_count(
self,
value: impl Into<Output<Option<i32>>>,
) -> InstanceArgsBuilder<SetIpv6AddressCount<S>>where
S::Ipv6AddressCount: IsUnset,
sourcepub fn maybe_ipv6_address_count(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> InstanceArgsBuilder<SetIpv6AddressCount<S>>where
S::Ipv6AddressCount: IsUnset,
pub fn maybe_ipv6_address_count(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> InstanceArgsBuilder<SetIpv6AddressCount<S>>where
S::Ipv6AddressCount: IsUnset,
sourcepub fn ipv6_addresses(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> InstanceArgsBuilder<SetIpv6Addresses<S>>where
S::Ipv6Addresses: IsUnset,
pub fn ipv6_addresses(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> InstanceArgsBuilder<SetIpv6Addresses<S>>where
S::Ipv6Addresses: IsUnset,
sourcepub fn maybe_ipv6_addresses(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> InstanceArgsBuilder<SetIpv6Addresses<S>>where
S::Ipv6Addresses: IsUnset,
pub fn maybe_ipv6_addresses(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> InstanceArgsBuilder<SetIpv6Addresses<S>>where
S::Ipv6Addresses: IsUnset,
sourcepub fn key_name(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetKeyName<S>>where
S::KeyName: IsUnset,
pub fn key_name(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetKeyName<S>>where
S::KeyName: IsUnset,
sourcepub fn maybe_key_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetKeyName<S>>where
S::KeyName: IsUnset,
pub fn maybe_key_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetKeyName<S>>where
S::KeyName: IsUnset,
sourcepub fn launch_template(
self,
value: impl Into<Output<Option<InstanceLaunchTemplate>>>,
) -> InstanceArgsBuilder<SetLaunchTemplate<S>>where
S::LaunchTemplate: IsUnset,
pub fn launch_template(
self,
value: impl Into<Output<Option<InstanceLaunchTemplate>>>,
) -> InstanceArgsBuilder<SetLaunchTemplate<S>>where
S::LaunchTemplate: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::ec2::InstanceLaunchTemplate>,
> as Default>::default()
Specifies a Launch Template to configure the instance. Parameters configured on this resource will override the corresponding parameters in the Launch Template. See Launch Template Specification below for more details.
sourcepub fn maybe_launch_template(
self,
value: Option<impl Into<Output<Option<InstanceLaunchTemplate>>>>,
) -> InstanceArgsBuilder<SetLaunchTemplate<S>>where
S::LaunchTemplate: IsUnset,
pub fn maybe_launch_template(
self,
value: Option<impl Into<Output<Option<InstanceLaunchTemplate>>>>,
) -> InstanceArgsBuilder<SetLaunchTemplate<S>>where
S::LaunchTemplate: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::ec2::InstanceLaunchTemplate>,
> as Default>::default()
Specifies a Launch Template to configure the instance. Parameters configured on this resource will override the corresponding parameters in the Launch Template. See Launch Template Specification below for more details.
sourcepub fn maintenance_options(
self,
value: impl Into<Output<Option<InstanceMaintenanceOptions>>>,
) -> InstanceArgsBuilder<SetMaintenanceOptions<S>>where
S::MaintenanceOptions: IsUnset,
pub fn maintenance_options(
self,
value: impl Into<Output<Option<InstanceMaintenanceOptions>>>,
) -> InstanceArgsBuilder<SetMaintenanceOptions<S>>where
S::MaintenanceOptions: IsUnset,
sourcepub fn maybe_maintenance_options(
self,
value: Option<impl Into<Output<Option<InstanceMaintenanceOptions>>>>,
) -> InstanceArgsBuilder<SetMaintenanceOptions<S>>where
S::MaintenanceOptions: IsUnset,
pub fn maybe_maintenance_options(
self,
value: Option<impl Into<Output<Option<InstanceMaintenanceOptions>>>>,
) -> InstanceArgsBuilder<SetMaintenanceOptions<S>>where
S::MaintenanceOptions: IsUnset,
sourcepub fn metadata_options(
self,
value: impl Into<Output<Option<InstanceMetadataOptions>>>,
) -> InstanceArgsBuilder<SetMetadataOptions<S>>where
S::MetadataOptions: IsUnset,
pub fn metadata_options(
self,
value: impl Into<Output<Option<InstanceMetadataOptions>>>,
) -> InstanceArgsBuilder<SetMetadataOptions<S>>where
S::MetadataOptions: IsUnset,
sourcepub fn maybe_metadata_options(
self,
value: Option<impl Into<Output<Option<InstanceMetadataOptions>>>>,
) -> InstanceArgsBuilder<SetMetadataOptions<S>>where
S::MetadataOptions: IsUnset,
pub fn maybe_metadata_options(
self,
value: Option<impl Into<Output<Option<InstanceMetadataOptions>>>>,
) -> InstanceArgsBuilder<SetMetadataOptions<S>>where
S::MetadataOptions: IsUnset,
sourcepub fn monitoring(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetMonitoring<S>>where
S::Monitoring: IsUnset,
pub fn monitoring(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetMonitoring<S>>where
S::Monitoring: IsUnset,
sourcepub fn maybe_monitoring(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetMonitoring<S>>where
S::Monitoring: IsUnset,
pub fn maybe_monitoring(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetMonitoring<S>>where
S::Monitoring: IsUnset,
sourcepub fn network_interfaces(
self,
value: impl Into<Output<Option<Vec<InstanceNetworkInterface>>>>,
) -> InstanceArgsBuilder<SetNetworkInterfaces<S>>where
S::NetworkInterfaces: IsUnset,
pub fn network_interfaces(
self,
value: impl Into<Output<Option<Vec<InstanceNetworkInterface>>>>,
) -> InstanceArgsBuilder<SetNetworkInterfaces<S>>where
S::NetworkInterfaces: IsUnset,
sourcepub fn maybe_network_interfaces(
self,
value: Option<impl Into<Output<Option<Vec<InstanceNetworkInterface>>>>>,
) -> InstanceArgsBuilder<SetNetworkInterfaces<S>>where
S::NetworkInterfaces: IsUnset,
pub fn maybe_network_interfaces(
self,
value: Option<impl Into<Output<Option<Vec<InstanceNetworkInterface>>>>>,
) -> InstanceArgsBuilder<SetNetworkInterfaces<S>>where
S::NetworkInterfaces: IsUnset,
sourcepub fn placement_group(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetPlacementGroup<S>>where
S::PlacementGroup: IsUnset,
pub fn placement_group(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetPlacementGroup<S>>where
S::PlacementGroup: IsUnset,
sourcepub fn maybe_placement_group(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetPlacementGroup<S>>where
S::PlacementGroup: IsUnset,
pub fn maybe_placement_group(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetPlacementGroup<S>>where
S::PlacementGroup: IsUnset,
sourcepub fn placement_partition_number(
self,
value: impl Into<Output<Option<i32>>>,
) -> InstanceArgsBuilder<SetPlacementPartitionNumber<S>>where
S::PlacementPartitionNumber: IsUnset,
pub fn placement_partition_number(
self,
value: impl Into<Output<Option<i32>>>,
) -> InstanceArgsBuilder<SetPlacementPartitionNumber<S>>where
S::PlacementPartitionNumber: IsUnset,
sourcepub fn maybe_placement_partition_number(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> InstanceArgsBuilder<SetPlacementPartitionNumber<S>>where
S::PlacementPartitionNumber: IsUnset,
pub fn maybe_placement_partition_number(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> InstanceArgsBuilder<SetPlacementPartitionNumber<S>>where
S::PlacementPartitionNumber: IsUnset,
sourcepub fn private_dns_name_options(
self,
value: impl Into<Output<Option<InstancePrivateDnsNameOptions>>>,
) -> InstanceArgsBuilder<SetPrivateDnsNameOptions<S>>where
S::PrivateDnsNameOptions: IsUnset,
pub fn private_dns_name_options(
self,
value: impl Into<Output<Option<InstancePrivateDnsNameOptions>>>,
) -> InstanceArgsBuilder<SetPrivateDnsNameOptions<S>>where
S::PrivateDnsNameOptions: IsUnset,
sourcepub fn maybe_private_dns_name_options(
self,
value: Option<impl Into<Output<Option<InstancePrivateDnsNameOptions>>>>,
) -> InstanceArgsBuilder<SetPrivateDnsNameOptions<S>>where
S::PrivateDnsNameOptions: IsUnset,
pub fn maybe_private_dns_name_options(
self,
value: Option<impl Into<Output<Option<InstancePrivateDnsNameOptions>>>>,
) -> InstanceArgsBuilder<SetPrivateDnsNameOptions<S>>where
S::PrivateDnsNameOptions: IsUnset,
sourcepub fn private_ip(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetPrivateIp<S>>where
S::PrivateIp: IsUnset,
pub fn private_ip(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetPrivateIp<S>>where
S::PrivateIp: IsUnset,
sourcepub fn maybe_private_ip(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetPrivateIp<S>>where
S::PrivateIp: IsUnset,
pub fn maybe_private_ip(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetPrivateIp<S>>where
S::PrivateIp: IsUnset,
sourcepub fn root_block_device(
self,
value: impl Into<Output<Option<InstanceRootBlockDevice>>>,
) -> InstanceArgsBuilder<SetRootBlockDevice<S>>where
S::RootBlockDevice: IsUnset,
pub fn root_block_device(
self,
value: impl Into<Output<Option<InstanceRootBlockDevice>>>,
) -> InstanceArgsBuilder<SetRootBlockDevice<S>>where
S::RootBlockDevice: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::ec2::InstanceRootBlockDevice>,
> as Default>::default()
Configuration block to customize details about the root block device of the instance. See Block Devices below for details. When accessing this as an attribute reference, it is a list containing one object.
sourcepub fn maybe_root_block_device(
self,
value: Option<impl Into<Output<Option<InstanceRootBlockDevice>>>>,
) -> InstanceArgsBuilder<SetRootBlockDevice<S>>where
S::RootBlockDevice: IsUnset,
pub fn maybe_root_block_device(
self,
value: Option<impl Into<Output<Option<InstanceRootBlockDevice>>>>,
) -> InstanceArgsBuilder<SetRootBlockDevice<S>>where
S::RootBlockDevice: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::ec2::InstanceRootBlockDevice>,
> as Default>::default()
Configuration block to customize details about the root block device of the instance. See Block Devices below for details. When accessing this as an attribute reference, it is a list containing one object.
sourcepub fn secondary_private_ips(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> InstanceArgsBuilder<SetSecondaryPrivateIps<S>>where
S::SecondaryPrivateIps: IsUnset,
pub fn secondary_private_ips(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> InstanceArgsBuilder<SetSecondaryPrivateIps<S>>where
S::SecondaryPrivateIps: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default()
.
List of secondary private IPv4 addresses to assign to the instance’s primary network interface (eth0) in a VPC. Can only be assigned to the primary network interface (eth0) attached at instance creation, not a pre-existing network interface i.e., referenced in a network_interface
block. Refer to the Elastic network interfaces documentation to see the maximum number of private IP addresses allowed per instance type.
sourcepub fn maybe_secondary_private_ips(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> InstanceArgsBuilder<SetSecondaryPrivateIps<S>>where
S::SecondaryPrivateIps: IsUnset,
pub fn maybe_secondary_private_ips(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> InstanceArgsBuilder<SetSecondaryPrivateIps<S>>where
S::SecondaryPrivateIps: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default()
.
List of secondary private IPv4 addresses to assign to the instance’s primary network interface (eth0) in a VPC. Can only be assigned to the primary network interface (eth0) attached at instance creation, not a pre-existing network interface i.e., referenced in a network_interface
block. Refer to the Elastic network interfaces documentation to see the maximum number of private IP addresses allowed per instance type.
sourcepub fn security_groups(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> InstanceArgsBuilder<SetSecurityGroups<S>>where
S::SecurityGroups: IsUnset,
pub fn security_groups(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> InstanceArgsBuilder<SetSecurityGroups<S>>where
S::SecurityGroups: IsUnset,
sourcepub fn maybe_security_groups(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> InstanceArgsBuilder<SetSecurityGroups<S>>where
S::SecurityGroups: IsUnset,
pub fn maybe_security_groups(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> InstanceArgsBuilder<SetSecurityGroups<S>>where
S::SecurityGroups: IsUnset,
sourcepub fn source_dest_check(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetSourceDestCheck<S>>where
S::SourceDestCheck: IsUnset,
pub fn source_dest_check(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetSourceDestCheck<S>>where
S::SourceDestCheck: IsUnset,
sourcepub fn maybe_source_dest_check(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetSourceDestCheck<S>>where
S::SourceDestCheck: IsUnset,
pub fn maybe_source_dest_check(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetSourceDestCheck<S>>where
S::SourceDestCheck: IsUnset,
sourcepub fn subnet_id(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetSubnetId<S>>where
S::SubnetId: IsUnset,
pub fn subnet_id(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetSubnetId<S>>where
S::SubnetId: IsUnset,
sourcepub fn maybe_subnet_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetSubnetId<S>>where
S::SubnetId: IsUnset,
pub fn maybe_subnet_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetSubnetId<S>>where
S::SubnetId: 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. Note that these tags apply to the instance and not block storage devices. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
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. Note that these tags apply to the instance and not block storage devices. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
sourcepub fn tenancy(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetTenancy<S>>where
S::Tenancy: IsUnset,
pub fn tenancy(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetTenancy<S>>where
S::Tenancy: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated
runs on single-tenant hardware. The host
tenancy is not supported for the import-instance command. Valid values are default
, dedicated
, and host
.
sourcepub fn maybe_tenancy(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetTenancy<S>>where
S::Tenancy: IsUnset,
pub fn maybe_tenancy(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetTenancy<S>>where
S::Tenancy: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated
runs on single-tenant hardware. The host
tenancy is not supported for the import-instance command. Valid values are default
, dedicated
, and host
.
sourcepub fn user_data(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetUserData<S>>where
S::UserData: IsUnset,
pub fn user_data(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetUserData<S>>where
S::UserData: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
User data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64
instead. Updates to this field will trigger a stop/start of the EC2 instance by default. If the user_data_replace_on_change
is set then updates to this field will trigger a destroy and recreate of the EC2 instance.
sourcepub fn maybe_user_data(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetUserData<S>>where
S::UserData: IsUnset,
pub fn maybe_user_data(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetUserData<S>>where
S::UserData: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
User data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64
instead. Updates to this field will trigger a stop/start of the EC2 instance by default. If the user_data_replace_on_change
is set then updates to this field will trigger a destroy and recreate of the EC2 instance.
sourcepub fn user_data_base64(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<SetUserDataBase64<S>>where
S::UserDataBase64: IsUnset,
pub fn user_data_base64(
self,
value: impl Into<Output<Option<String>>>,
) -> InstanceArgsBuilder<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. Updates to this field will trigger a stop/start of the EC2 instance by default. If the user_data_replace_on_change
is set then updates to this field will trigger a destroy and recreate of the EC2 instance.
sourcepub fn maybe_user_data_base64(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<SetUserDataBase64<S>>where
S::UserDataBase64: IsUnset,
pub fn maybe_user_data_base64(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> InstanceArgsBuilder<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. Updates to this field will trigger a stop/start of the EC2 instance by default. If the user_data_replace_on_change
is set then updates to this field will trigger a destroy and recreate of the EC2 instance.
sourcepub fn user_data_replace_on_change(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetUserDataReplaceOnChange<S>>where
S::UserDataReplaceOnChange: IsUnset,
pub fn user_data_replace_on_change(
self,
value: impl Into<Output<Option<bool>>>,
) -> InstanceArgsBuilder<SetUserDataReplaceOnChange<S>>where
S::UserDataReplaceOnChange: IsUnset,
sourcepub fn maybe_user_data_replace_on_change(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetUserDataReplaceOnChange<S>>where
S::UserDataReplaceOnChange: IsUnset,
pub fn maybe_user_data_replace_on_change(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> InstanceArgsBuilder<SetUserDataReplaceOnChange<S>>where
S::UserDataReplaceOnChange: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<std::collections::HashMap<String, String>>,
> as Default>::default()
Map of tags to assign, at instance-creation time, to root and EBS volumes.
NOTE: Do not use
volume_tags
if you plan to manage block device tags outside theaws.ec2.Instance
configuration, such as usingtags
in anaws.ebs.Volume
resource attached viaaws.ec2.VolumeAttachment
. Doing so will result in resource cycling and inconsistent behavior.
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<std::collections::HashMap<String, String>>,
> as Default>::default()
Map of tags to assign, at instance-creation time, to root and EBS volumes.
NOTE: Do not use
volume_tags
if you plan to manage block device tags outside theaws.ec2.Instance
configuration, such as usingtags
in anaws.ebs.Volume
resource attached viaaws.ec2.VolumeAttachment
. Doing so will result in resource cycling and inconsistent behavior.