create_membership
async
¶
create_membership(
membership_name: MembershipName,
incident_response_team: IncidentResponseTeam,
*,
config_overrides: Optional[AsyncSecurityIRClientConfig] = None,
client_token: Optional[str] = None,
opt_in_features: Optional[OptInFeatures] = None,
tags: Optional[TagMap] = None,
cover_entire_organization: Optional[bool] = None,
) -> CreateMembershipResponse
Creates a new membership.
Parameters:
-
client_token(Optional[str], default:None) –The
clientTokenfield is an idempotency key used to ensure that repeated attempts for a single action will be ignored by the server during retries. A caller supplied unique ID (typically a UUID) should be provided. -
membership_name(MembershipName) –Required element used in combination with CreateMembership to create a name for the membership.
-
incident_response_team(IncidentResponseTeam) –Required element used in combination with CreateMembership to add customer incident response team members and trusted partners to the membership.
-
opt_in_features(Optional[OptInFeatures], default:None) –Optional element to enable the monitoring and investigation opt-in features for the service.
-
tags(Optional[TagMap], default:None) –Optional element for customer configured tags.
-
cover_entire_organization(Optional[bool], default:None) –The
coverEntireOrganizationparameter is a boolean flag that determines whether the membership should be applied to the entire Amazon Web Services Organization. When set to true, the membership will be created for all accounts within the organization. When set to false, the membership will only be created for specified accounts.This parameter is optional. If not specified, the default value is false.
-
If set to true: The membership will automatically include all existing and future accounts in the Amazon Web Services Organization.
-
If set to false: The membership will only apply to explicitly specified accounts.
-
Raises:
-
AccessDeniedException– -
ConflictException– -
InternalServerException– -
InvalidTokenException– -
ResourceNotFoundException– -
SecurityIncidentResponseNotActiveException– -
ServiceQuotaExceededException– -
ThrottlingException– -
ValidationException– -
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Invoke CreateMembership
>>> await client.create_membership(membership_name='Example Membership Name.', incident_response_team=[{'name': 'Bob Jones', 'jobTitle': 'Security Responder', 'email': '[email protected]'}, {'email': '[email protected]', 'name': 'Alice', 'jobTitle': 'CEO'}], opt_in_features=[{'featureName': 'Triage', 'isEnabled': True}])
Source code in docs_src/capo_security_ir/_services/async_security_ir.py
1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 | |