update_membership
async
¶
update_membership(
membership_id: MembershipId,
*,
config_overrides: Optional[AsyncSecurityIRClientConfig] = None,
membership_name: Optional[MembershipName] = None,
incident_response_team: Optional[IncidentResponseTeam] = None,
opt_in_features: Optional[OptInFeatures] = None,
membership_accounts_configurations_update: Optional[
MembershipAccountsConfigurationsUpdate
] = None,
undo_membership_cancellation: Optional[bool] = None,
) -> UpdateMembershipResponse
Updates membership configuration.
Parameters:
-
membership_id(MembershipId) –Required element for UpdateMembership to identify the membership to update.
-
membership_name(Optional[MembershipName], default:None) –Optional element for UpdateMembership to update the membership name.
-
incident_response_team(Optional[IncidentResponseTeam], default:None) –Optional element for UpdateMembership to update the membership name.
-
opt_in_features(Optional[OptInFeatures], default:None) –Optional element for UpdateMembership to enable or disable opt-in features for the service.
-
membership_accounts_configurations_update(Optional[MembershipAccountsConfigurationsUpdate], default:None) –The
membershipAccountsConfigurationsUpdatefield in theUpdateMembershipRequeststructure allows you to update the configuration settings for accounts within a membership.This field is optional and contains a structure of type
MembershipAccountsConfigurationsUpdatethat specifies the updated account configurations for the membership. -
undo_membership_cancellation(Optional[bool], default:None) –The
undoMembershipCancellationparameter is a boolean flag that indicates whether to reverse a previously requested membership cancellation. When set to true, this will revoke the cancellation request and maintain the membership status.This parameter is optional and can be used in scenarios where you need to restore a membership that was marked for cancellation but hasn't been fully terminated yet.
-
If set to
true, the cancellation request will be revoked -
If set to
falsethe service will throw a ValidationException.
-
Raises:
-
AccessDeniedException– -
ConflictException– -
InternalServerException– -
InvalidTokenException– -
ResourceNotFoundException– -
SecurityIncidentResponseNotActiveException– -
ServiceQuotaExceededException– -
ThrottlingException– -
ValidationException– -
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Invoke UpdateMembership
>>> await client.update_membership(membership_id='m-abcd1234efgh', membership_name='New 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
1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 | |