pub struct ImageArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> ImageArgsBuilder<S>
impl<S: State> ImageArgsBuilder<S>
sourcepub fn build_struct(self) -> ImageArgswhere
S: IsComplete,
pub fn build_struct(self) -> ImageArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> ImageArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> ImageArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ImageArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ImageArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn disk_size_gb(
self,
value: impl Into<Output<Option<i32>>>,
) -> ImageArgsBuilder<SetDiskSizeGb<S>>where
S::DiskSizeGb: IsUnset,
pub fn disk_size_gb(
self,
value: impl Into<Output<Option<i32>>>,
) -> ImageArgsBuilder<SetDiskSizeGb<S>>where
S::DiskSizeGb: IsUnset,
sourcepub fn maybe_disk_size_gb(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> ImageArgsBuilder<SetDiskSizeGb<S>>where
S::DiskSizeGb: IsUnset,
pub fn maybe_disk_size_gb(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> ImageArgsBuilder<SetDiskSizeGb<S>>where
S::DiskSizeGb: IsUnset,
sourcepub fn family(
self,
value: impl Into<Output<Option<String>>>,
) -> ImageArgsBuilder<SetFamily<S>>where
S::Family: IsUnset,
pub fn family(
self,
value: impl Into<Output<Option<String>>>,
) -> ImageArgsBuilder<SetFamily<S>>where
S::Family: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The name of the image family to which this image belongs. You can create disks by specifying an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035.
sourcepub fn maybe_family(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ImageArgsBuilder<SetFamily<S>>where
S::Family: IsUnset,
pub fn maybe_family(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ImageArgsBuilder<SetFamily<S>>where
S::Family: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The name of the image family to which this image belongs. You can create disks by specifying an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035.
sourcepub fn guest_os_features(
self,
value: impl Into<Output<Option<Vec<ImageGuestOsFeature>>>>,
) -> ImageArgsBuilder<SetGuestOsFeatures<S>>where
S::GuestOsFeatures: IsUnset,
pub fn guest_os_features(
self,
value: impl Into<Output<Option<Vec<ImageGuestOsFeature>>>>,
) -> ImageArgsBuilder<SetGuestOsFeatures<S>>where
S::GuestOsFeatures: IsUnset,
sourcepub fn maybe_guest_os_features(
self,
value: Option<impl Into<Output<Option<Vec<ImageGuestOsFeature>>>>>,
) -> ImageArgsBuilder<SetGuestOsFeatures<S>>where
S::GuestOsFeatures: IsUnset,
pub fn maybe_guest_os_features(
self,
value: Option<impl Into<Output<Option<Vec<ImageGuestOsFeature>>>>>,
) -> ImageArgsBuilder<SetGuestOsFeatures<S>>where
S::GuestOsFeatures: IsUnset,
sourcepub fn image_encryption_key(
self,
value: impl Into<Output<Option<ImageImageEncryptionKey>>>,
) -> ImageArgsBuilder<SetImageEncryptionKey<S>>where
S::ImageEncryptionKey: IsUnset,
pub fn image_encryption_key(
self,
value: impl Into<Output<Option<ImageImageEncryptionKey>>>,
) -> ImageArgsBuilder<SetImageEncryptionKey<S>>where
S::ImageEncryptionKey: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::compute::ImageImageEncryptionKey>,
> as Default>::default()
Encrypts the image using a customer-supplied encryption key. After you encrypt an image with a customer-supplied key, you must provide the same key if you use the image later (e.g. to create a disk from the image) Structure is documented below.
sourcepub fn maybe_image_encryption_key(
self,
value: Option<impl Into<Output<Option<ImageImageEncryptionKey>>>>,
) -> ImageArgsBuilder<SetImageEncryptionKey<S>>where
S::ImageEncryptionKey: IsUnset,
pub fn maybe_image_encryption_key(
self,
value: Option<impl Into<Output<Option<ImageImageEncryptionKey>>>>,
) -> ImageArgsBuilder<SetImageEncryptionKey<S>>where
S::ImageEncryptionKey: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::compute::ImageImageEncryptionKey>,
> as Default>::default()
Encrypts the image using a customer-supplied encryption key. After you encrypt an image with a customer-supplied key, you must provide the same key if you use the image later (e.g. to create a disk from the image) Structure is documented below.
sourcepub fn labels(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> ImageArgsBuilder<SetLabels<S>>where
S::Labels: IsUnset,
pub fn labels(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> ImageArgsBuilder<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 to apply to this Image.
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.
sourcepub fn maybe_labels(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> ImageArgsBuilder<SetLabels<S>>where
S::Labels: IsUnset,
pub fn maybe_labels(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> ImageArgsBuilder<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 to apply to this Image.
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.
sourcepub fn licenses(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> ImageArgsBuilder<SetLicenses<S>>where
S::Licenses: IsUnset,
pub fn licenses(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> ImageArgsBuilder<SetLicenses<S>>where
S::Licenses: IsUnset,
sourcepub fn maybe_licenses(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> ImageArgsBuilder<SetLicenses<S>>where
S::Licenses: IsUnset,
pub fn maybe_licenses(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> ImageArgsBuilder<SetLicenses<S>>where
S::Licenses: IsUnset,
sourcepub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> ImageArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> ImageArgsBuilder<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.
sourcepub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ImageArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ImageArgsBuilder<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.
sourcepub fn project(
self,
value: impl Into<Output<Option<String>>>,
) -> ImageArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
pub fn project(
self,
value: impl Into<Output<Option<String>>>,
) -> ImageArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
sourcepub fn maybe_project(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ImageArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
pub fn maybe_project(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ImageArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
sourcepub fn raw_disk(
self,
value: impl Into<Output<Option<ImageRawDisk>>>,
) -> ImageArgsBuilder<SetRawDisk<S>>where
S::RawDisk: IsUnset,
pub fn raw_disk(
self,
value: impl Into<Output<Option<ImageRawDisk>>>,
) -> ImageArgsBuilder<SetRawDisk<S>>where
S::RawDisk: IsUnset,
sourcepub fn maybe_raw_disk(
self,
value: Option<impl Into<Output<Option<ImageRawDisk>>>>,
) -> ImageArgsBuilder<SetRawDisk<S>>where
S::RawDisk: IsUnset,
pub fn maybe_raw_disk(
self,
value: Option<impl Into<Output<Option<ImageRawDisk>>>>,
) -> ImageArgsBuilder<SetRawDisk<S>>where
S::RawDisk: IsUnset,
sourcepub fn source_disk(
self,
value: impl Into<Output<Option<String>>>,
) -> ImageArgsBuilder<SetSourceDisk<S>>where
S::SourceDisk: IsUnset,
pub fn source_disk(
self,
value: impl Into<Output<Option<String>>>,
) -> ImageArgsBuilder<SetSourceDisk<S>>where
S::SourceDisk: IsUnset,
sourcepub fn maybe_source_disk(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ImageArgsBuilder<SetSourceDisk<S>>where
S::SourceDisk: IsUnset,
pub fn maybe_source_disk(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ImageArgsBuilder<SetSourceDisk<S>>where
S::SourceDisk: IsUnset,
sourcepub fn source_image(
self,
value: impl Into<Output<Option<String>>>,
) -> ImageArgsBuilder<SetSourceImage<S>>where
S::SourceImage: IsUnset,
pub fn source_image(
self,
value: impl Into<Output<Option<String>>>,
) -> ImageArgsBuilder<SetSourceImage<S>>where
S::SourceImage: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
URL of the source image used to create this image. In order to create an image, you must provide the full or partial URL of one of the following:
- The selfLink URL
- This property
- The rawDisk.source URL
- The sourceDisk URL
sourcepub fn maybe_source_image(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ImageArgsBuilder<SetSourceImage<S>>where
S::SourceImage: IsUnset,
pub fn maybe_source_image(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ImageArgsBuilder<SetSourceImage<S>>where
S::SourceImage: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
URL of the source image used to create this image. In order to create an image, you must provide the full or partial URL of one of the following:
- The selfLink URL
- This property
- The rawDisk.source URL
- The sourceDisk URL
sourcepub fn source_snapshot(
self,
value: impl Into<Output<Option<String>>>,
) -> ImageArgsBuilder<SetSourceSnapshot<S>>where
S::SourceSnapshot: IsUnset,
pub fn source_snapshot(
self,
value: impl Into<Output<Option<String>>>,
) -> ImageArgsBuilder<SetSourceSnapshot<S>>where
S::SourceSnapshot: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
URL of the source snapshot used to create this image. In order to create an image, you must provide the full or partial URL of one of the following:
- The selfLink URL
- This property
- The sourceImage URL
- The rawDisk.source URL
- The sourceDisk URL
sourcepub fn maybe_source_snapshot(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ImageArgsBuilder<SetSourceSnapshot<S>>where
S::SourceSnapshot: IsUnset,
pub fn maybe_source_snapshot(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ImageArgsBuilder<SetSourceSnapshot<S>>where
S::SourceSnapshot: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
URL of the source snapshot used to create this image. In order to create an image, you must provide the full or partial URL of one of the following:
- The selfLink URL
- This property
- The sourceImage URL
- The rawDisk.source URL
- The sourceDisk URL