Provides information on whether the supplied account IDs are associated with a membership.
AWS account ID's may appear less than 12 characters and need to be zero-prepended. An example would be 123123123 which is nine digits, and with zero-prepend would be 000123123123. Not zero-prepending to 12 digits could result in errors.
Parameters:
-
membership_id
(MembershipId)
–
Required element used in combination with BatchGetMemberAccountDetails to identify the membership ID to query.
-
account_ids
(AWSAccountIds)
–
Optional element to query the membership relationship status to a provided list of account IDs.
AWS account ID's may appear less than 12 characters and need to be zero-prepended. An example would be 123123123 which is nine digits, and with zero-prepend would be 000123123123. Not zero-prepending to 12 digits could result in errors.
Raises:
Examples:
Invoke BatchGetMemberAccountDetails
>>> client.batch_get_member_account_details(membership_id='m-abcd1234efgh', account_ids=['123412341234'])
Source code in docs_src/capo_security_ir/_services/security_ir.py
| def batch_get_member_account_details(
self,
membership_id: "capo_security_ir.types.membership_id.MembershipId",
account_ids: "capo_security_ir.types.aws_account_ids.AWSAccountIds",
*,
config_overrides: Optional[SecurityIRClientConfig] = None,
) -> "capo_security_ir.types.batch_get_member_account_details_response.BatchGetMemberAccountDetailsResponse":
"""<p>Provides information on whether the supplied account IDs are associated with a membership.</p> <note> <p> AWS account ID's may appear less than 12 characters and need to be zero-prepended. An example would be <code>123123123</code> which is nine digits, and with zero-prepend would be <code>000123123123</code>. Not zero-prepending to 12 digits could result in errors. </p> </note>
Args:
membership_id: <p>Required element used in combination with BatchGetMemberAccountDetails to identify the membership ID to query. </p>
account_ids: <p>Optional element to query the membership relationship status to a provided list of account IDs.</p> <note> <p> AWS account ID's may appear less than 12 characters and need to be zero-prepended. An example would be <code>123123123</code> which is nine digits, and with zero-prepend would be <code>000123123123</code>. Not zero-prepending to 12 digits could result in errors. </p> </note>
Raises:
capo_security_ir.errors.access_denied_exception.AccessDeniedException: <p/>
capo_security_ir.errors.conflict_exception.ConflictException: <p/>
capo_security_ir.errors.internal_server_exception.InternalServerException: <p/>
capo_security_ir.errors.invalid_token_exception.InvalidTokenException: <p/>
capo_security_ir.errors.resource_not_found_exception.ResourceNotFoundException: <p/>
capo_security_ir.errors.security_incident_response_not_active_exception.SecurityIncidentResponseNotActiveException: <p/>
capo_security_ir.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p/>
capo_security_ir.errors.throttling_exception.ThrottlingException: <p/>
capo_security_ir.errors.validation_exception.ValidationException: <p/>
capo_security_ir.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
Invoke BatchGetMemberAccountDetails
>>> client.batch_get_member_account_details(membership_id='m-abcd1234efgh', account_ids=['123412341234'])
"""
def _handler(
req: "OperationRequest[capo_security_ir.types.batch_get_member_account_details_request.BatchGetMemberAccountDetailsRequest]",
) -> OperationResponse[
"capo_security_ir.types.batch_get_member_account_details_response.BatchGetMemberAccountDetailsResponse"
]:
import capo_security_ir._operations.security_incident_response.batch_get_member_account_details
output, http_response = (
capo_security_ir._operations.security_incident_response.batch_get_member_account_details.batch_get_member_account_details(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("BatchGetMemberAccountDetails")
)
input_: capo_security_ir.types.batch_get_member_account_details_request.BatchGetMemberAccountDetailsRequest = {
"membership_id": membership_id,
"account_ids": account_ids,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|