create_mac_system_integrity_protection_modification_task
¶
create_mac_system_integrity_protection_modification_task(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 | |