Struct aws_sdk_ec2::input::enable_image_deprecation_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for EnableImageDeprecationInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_image_id(self, input: Option<String>) -> Self
pub fn set_image_id(self, input: Option<String>) -> Self
The ID of the AMI.
sourcepub fn deprecate_at(self, input: DateTime) -> Self
pub fn deprecate_at(self, input: DateTime) -> Self
The date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. If you specify a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.
You can’t specify a date in the past. The upper limit for DeprecateAt
is 10 years from now, except for public AMIs, where the upper limit is 2 years from the creation date.
sourcepub fn set_deprecate_at(self, input: Option<DateTime>) -> Self
pub fn set_deprecate_at(self, input: Option<DateTime>) -> Self
The date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. If you specify a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.
You can’t specify a date in the past. The upper limit for DeprecateAt
is 10 years from now, except for public AMIs, where the upper limit is 2 years from the creation date.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn build(self) -> Result<EnableImageDeprecationInput, BuildError>
pub fn build(self) -> Result<EnableImageDeprecationInput, BuildError>
Consumes the builder and constructs a EnableImageDeprecationInput
.