create_delegate_mac_volume_ownership_task
async
¶
create_delegate_mac_volume_ownership_task(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
client_token: Optional[String] = None,
dry_run: Optional[Boolean] = None,
instance_id: Optional[InstanceId] = None,
mac_credentials: Optional[SensitiveMacCredentials] = None,
tag_specifications: Optional[TagSpecificationList] = None,
) -> CreateDelegateMacVolumeOwnershipTaskResult
Delegates ownership of the Amazon EBS root volume for an Apple silicon Mac instance to an administrative user.
Parameters:
-
client_token(Optional[String], default:None) –Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
-
dry_run(Optional[Boolean], default:None) –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 isUnauthorizedOperation. -
instance_id(Optional[InstanceId], default:None) –The ID of the Amazon EC2 Mac instance.
-
mac_credentials(Optional[SensitiveMacCredentials], default:None) –Specifies the following credentials:
-
Internal disk administrative user
-
Username - Only the default administrative user (
aws-managed-user) is supported and it is used by default. You can't specify a different administrative user. -
Password - If you did not change the default password for
aws-managed-user, specify the default password, which is blank. Otherwise, specify your password.
-
-
Amazon EBS root volume administrative user
-
Username - If you did not change the default administrative user, specify
ec2-user. Otherwise, specify the username for your administrative user. -
Password - Specify the password for the administrative user.
-
The credentials must be specified in the following JSON format:
{ "internalDiskPassword":"internal-disk-admin_password", "rootVolumeUsername":"root-volume-admin_username", "rootVolumepassword":"root-volume-admin_password" } -
-
tag_specifications(Optional[TagSpecificationList], default:None) –The tags to assign to the volume ownership delegation task.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 | |