aws_sdk_ec2/client/
create_delegate_mac_volume_ownership_task.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CreateDelegateMacVolumeOwnershipTask`](crate::operation::create_delegate_mac_volume_ownership_task::builders::CreateDelegateMacVolumeOwnershipTaskFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`client_token(impl Into<String>)`](crate::operation::create_delegate_mac_volume_ownership_task::builders::CreateDelegateMacVolumeOwnershipTaskFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_delegate_mac_volume_ownership_task::builders::CreateDelegateMacVolumeOwnershipTaskFluentBuilder::set_client_token):<br>required: **false**<br><p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring Idempotency</a>.</p><br>
7    ///   - [`dry_run(bool)`](crate::operation::create_delegate_mac_volume_ownership_task::builders::CreateDelegateMacVolumeOwnershipTaskFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::create_delegate_mac_volume_ownership_task::builders::CreateDelegateMacVolumeOwnershipTaskFluentBuilder::set_dry_run):<br>required: **false**<br><p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
8    ///   - [`instance_id(impl Into<String>)`](crate::operation::create_delegate_mac_volume_ownership_task::builders::CreateDelegateMacVolumeOwnershipTaskFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::create_delegate_mac_volume_ownership_task::builders::CreateDelegateMacVolumeOwnershipTaskFluentBuilder::set_instance_id):<br>required: **true**<br><p>The ID of the Amazon EC2 Mac instance.</p><br>
9    ///   - [`mac_credentials(impl Into<String>)`](crate::operation::create_delegate_mac_volume_ownership_task::builders::CreateDelegateMacVolumeOwnershipTaskFluentBuilder::mac_credentials) / [`set_mac_credentials(Option<String>)`](crate::operation::create_delegate_mac_volume_ownership_task::builders::CreateDelegateMacVolumeOwnershipTaskFluentBuilder::set_mac_credentials):<br>required: **true**<br><p>Specifies the following credentials:</p> <ul>  <li>   <p><b>Internal disk administrative user</b></p>   <ul>    <li>     <p><b>Username</b> - Only the default administrative user (<code>aws-managed-user</code>) is supported and it is used by default. You can't specify a different administrative user.</p></li>    <li>     <p><b>Password</b> - If you did not change the default password for <code>aws-managed-user</code>, specify the default password, which is <i>blank</i>. Otherwise, specify your password.</p></li>   </ul></li>  <li>   <p><b>Amazon EBS root volume administrative user</b></p>   <ul>    <li>     <p><b>Username</b> - If you did not change the default administrative user, specify <code>ec2-user</code>. Otherwise, specify the username for your administrative user.</p></li>    <li>     <p><b>Password</b> - Specify the password for the administrative user.</p></li>   </ul></li> </ul> <p>The credentials must be specified in the following JSON format:</p> <p><code>{ "internalDiskPassword":"<i>internal-disk-admin_password</i>", "rootVolumeUsername":"<i>root-volume-admin_username</i>", "rootVolumepassword":"<i>root-volume-admin_password</i>" }</code></p><br>
10    ///   - [`tag_specifications(TagSpecification)`](crate::operation::create_delegate_mac_volume_ownership_task::builders::CreateDelegateMacVolumeOwnershipTaskFluentBuilder::tag_specifications) / [`set_tag_specifications(Option<Vec::<TagSpecification>>)`](crate::operation::create_delegate_mac_volume_ownership_task::builders::CreateDelegateMacVolumeOwnershipTaskFluentBuilder::set_tag_specifications):<br>required: **false**<br><p>The tags to assign to the volume ownership delegation task.</p><br>
11    /// - On success, responds with [`CreateDelegateMacVolumeOwnershipTaskOutput`](crate::operation::create_delegate_mac_volume_ownership_task::CreateDelegateMacVolumeOwnershipTaskOutput) with field(s):
12    ///   - [`mac_modification_task(Option<MacModificationTask>)`](crate::operation::create_delegate_mac_volume_ownership_task::CreateDelegateMacVolumeOwnershipTaskOutput::mac_modification_task): <p>Information about the volume ownership delegation task.</p>
13    /// - On failure, responds with [`SdkError<CreateDelegateMacVolumeOwnershipTaskError>`](crate::operation::create_delegate_mac_volume_ownership_task::CreateDelegateMacVolumeOwnershipTaskError)
14    pub fn create_delegate_mac_volume_ownership_task(
15        &self,
16    ) -> crate::operation::create_delegate_mac_volume_ownership_task::builders::CreateDelegateMacVolumeOwnershipTaskFluentBuilder {
17        crate::operation::create_delegate_mac_volume_ownership_task::builders::CreateDelegateMacVolumeOwnershipTaskFluentBuilder::new(
18            self.handle.clone(),
19        )
20    }
21}