create_mac_system_integrity_protection_modification_task
async
¶
create_mac_system_integrity_protection_modification_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,
mac_system_integrity_protection_configuration: Optional[
MacSystemIntegrityProtectionConfigurationRequest
] = None,
mac_system_integrity_protection_status: Optional[
MacSystemIntegrityProtectionSettingStatus
] = None,
tag_specifications: Optional[TagSpecificationList] = None,
) -> CreateMacSystemIntegrityProtectionModificationTaskResult
Creates a System Integrity Protection (SIP) modification task to configure the SIP settings for an x86 Mac instance or Apple silicon Mac instance. For more information, see Configure SIP for Amazon EC2 instances in the Amazon EC2 User Guide.
When you configure the SIP settings for your instance, you can either enable or disable all SIP settings, or you can specify a custom SIP configuration that selectively enables or disables specific SIP settings.
If you implement a custom configuration, connect to the instance and verify the settings to ensure that your requirements are properly implemented and functioning as intended.
SIP configurations might change with macOS updates. We recommend that you review custom SIP settings after any macOS version upgrade to ensure continued compatibility and proper functionality of your security configurations.
To enable or disable all SIP settings, use the MacSystemIntegrityProtectionStatus parameter only. For example, to enable all SIP settings, specify the following:
-
MacSystemIntegrityProtectionStatus=enabled
To specify a custom configuration that selectively enables or disables specific SIP settings, use the MacSystemIntegrityProtectionStatus parameter to enable or disable all SIP settings, and then use the MacSystemIntegrityProtectionConfiguration parameter to specify exceptions. In this case, the exceptions you specify for MacSystemIntegrityProtectionConfiguration override the value you specify for MacSystemIntegrityProtectionStatus. For example, to enable all SIP settings, except NvramProtections, specify the following:
-
MacSystemIntegrityProtectionStatus=enabled -
MacSystemIntegrityProtectionConfigurationRequest "NvramProtections=disabled"
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) –[Apple silicon Mac instances only] 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" } -
-
mac_system_integrity_protection_configuration(Optional[MacSystemIntegrityProtectionConfigurationRequest], default:None) –Specifies the overrides to selectively enable or disable individual SIP settings. The individual settings you specify here override the overall SIP status you specify for MacSystemIntegrityProtectionStatus.
-
mac_system_integrity_protection_status(Optional[MacSystemIntegrityProtectionSettingStatus], default:None) –Specifies the overall SIP status for the instance. To enable all SIP settings, specify
enabled. To disable all SIP settings, specifydisabled. -
tag_specifications(Optional[TagSpecificationList], default:None) –Specifies tags to apply to the SIP modification 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
10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 | |