SecurityIncidentResponseClient#
Index > SecurityIncidentResponse > SecurityIncidentResponseClient
Auto-generated documentation for SecurityIncidentResponse type annotations stubs module mypy-boto3-security-ir.
SecurityIncidentResponseClient#
Type annotations and code completion for boto3.client("security-ir")
.
boto3 documentation
# SecurityIncidentResponseClient usage example
from boto3.session import Session
from mypy_boto3_security_ir.client import SecurityIncidentResponseClient
def get_security-ir_client() -> SecurityIncidentResponseClient:
return Session().client("security-ir")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("security-ir").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("security-ir")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.InvalidTokenException,
client.exceptions.ResourceNotFoundException,
client.exceptions.SecurityIncidentResponseNotActiveException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ThrottlingException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_security_ir.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
can_paginate#
Type annotations and code completion for boto3.client("security-ir").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
generate_presigned_url#
Type annotations and code completion for boto3.client("security-ir").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
close#
Type annotations and code completion for boto3.client("security-ir").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
batch_get_member_account_details#
Grants permission to view an existing membership.
Type annotations and code completion for boto3.client("security-ir").batch_get_member_account_details
method.
boto3 documentation
# batch_get_member_account_details method definition
def batch_get_member_account_details(
self,
*,
membershipId: str,
accountIds: Sequence[str],
) -> BatchGetMemberAccountDetailsResponseTypeDef: # (1)
...
# batch_get_member_account_details method usage example with argument unpacking
kwargs: BatchGetMemberAccountDetailsRequestRequestTypeDef = { # (1)
"membershipId": ...,
"accountIds": ...,
}
parent.batch_get_member_account_details(**kwargs)
cancel_membership#
Grants permissions to cancel an existing membership.
Type annotations and code completion for boto3.client("security-ir").cancel_membership
method.
boto3 documentation
# cancel_membership method definition
def cancel_membership(
self,
*,
membershipId: str,
) -> CancelMembershipResponseTypeDef: # (1)
...
# cancel_membership method usage example with argument unpacking
kwargs: CancelMembershipRequestRequestTypeDef = { # (1)
"membershipId": ...,
}
parent.cancel_membership(**kwargs)
close_case#
Grants permission to close an existing case.
Type annotations and code completion for boto3.client("security-ir").close_case
method.
boto3 documentation
# close_case method definition
def close_case(
self,
*,
caseId: str,
) -> CloseCaseResponseTypeDef: # (1)
...
# close_case method usage example with argument unpacking
kwargs: CloseCaseRequestRequestTypeDef = { # (1)
"caseId": ...,
}
parent.close_case(**kwargs)
create_case#
Grants permission to create a new case.
Type annotations and code completion for boto3.client("security-ir").create_case
method.
boto3 documentation
# create_case method definition
def create_case(
self,
*,
resolverType: ResolverTypeType, # (1)
title: str,
description: str,
engagementType: EngagementTypeType, # (2)
reportedIncidentStartDate: TimestampTypeDef,
impactedAccounts: Sequence[str],
watchers: Sequence[WatcherTypeDef], # (3)
clientToken: str = ...,
threatActorIpAddresses: Sequence[ThreatActorIpTypeDef] = ..., # (4)
impactedServices: Sequence[str] = ...,
impactedAwsRegions: Sequence[ImpactedAwsRegionTypeDef] = ..., # (5)
tags: Mapping[str, str] = ...,
) -> CreateCaseResponseTypeDef: # (6)
...
- See ResolverTypeType
- See EngagementTypeType
- See WatcherTypeDef
- See ThreatActorIpTypeDef
- See ImpactedAwsRegionTypeDef
- See CreateCaseResponseTypeDef
# create_case method usage example with argument unpacking
kwargs: CreateCaseRequestRequestTypeDef = { # (1)
"resolverType": ...,
"title": ...,
"description": ...,
"engagementType": ...,
"reportedIncidentStartDate": ...,
"impactedAccounts": ...,
"watchers": ...,
}
parent.create_case(**kwargs)
create_case_comment#
Grants permission to add a comment to an existing case.
Type annotations and code completion for boto3.client("security-ir").create_case_comment
method.
boto3 documentation
# create_case_comment method definition
def create_case_comment(
self,
*,
caseId: str,
body: str,
clientToken: str = ...,
) -> CreateCaseCommentResponseTypeDef: # (1)
...
# create_case_comment method usage example with argument unpacking
kwargs: CreateCaseCommentRequestRequestTypeDef = { # (1)
"caseId": ...,
"body": ...,
}
parent.create_case_comment(**kwargs)
create_membership#
Grants permissions to create a new membership.
Type annotations and code completion for boto3.client("security-ir").create_membership
method.
boto3 documentation
# create_membership method definition
def create_membership(
self,
*,
membershipName: str,
incidentResponseTeam: Sequence[IncidentResponderTypeDef], # (1)
clientToken: str = ...,
optInFeatures: Sequence[OptInFeatureTypeDef] = ..., # (2)
tags: Mapping[str, str] = ...,
) -> CreateMembershipResponseTypeDef: # (3)
...
# create_membership method usage example with argument unpacking
kwargs: CreateMembershipRequestRequestTypeDef = { # (1)
"membershipName": ...,
"incidentResponseTeam": ...,
}
parent.create_membership(**kwargs)
get_case#
Grant permission to view a designated case.
Type annotations and code completion for boto3.client("security-ir").get_case
method.
boto3 documentation
# get_case method definition
def get_case(
self,
*,
caseId: str,
) -> GetCaseResponseTypeDef: # (1)
...
# get_case method usage example with argument unpacking
kwargs: GetCaseRequestRequestTypeDef = { # (1)
"caseId": ...,
}
parent.get_case(**kwargs)
get_case_attachment_download_url#
Grants permission to obtain an Amazon S3 presigned URL to download an attachment.
Type annotations and code completion for boto3.client("security-ir").get_case_attachment_download_url
method.
boto3 documentation
# get_case_attachment_download_url method definition
def get_case_attachment_download_url(
self,
*,
caseId: str,
attachmentId: str,
) -> GetCaseAttachmentDownloadUrlResponseTypeDef: # (1)
...
# get_case_attachment_download_url method usage example with argument unpacking
kwargs: GetCaseAttachmentDownloadUrlRequestRequestTypeDef = { # (1)
"caseId": ...,
"attachmentId": ...,
}
parent.get_case_attachment_download_url(**kwargs)
get_case_attachment_upload_url#
Grants permission to upload an attachment to a case.
Type annotations and code completion for boto3.client("security-ir").get_case_attachment_upload_url
method.
boto3 documentation
# get_case_attachment_upload_url method definition
def get_case_attachment_upload_url(
self,
*,
caseId: str,
fileName: str,
contentLength: int,
clientToken: str = ...,
) -> GetCaseAttachmentUploadUrlResponseTypeDef: # (1)
...
# get_case_attachment_upload_url method usage example with argument unpacking
kwargs: GetCaseAttachmentUploadUrlRequestRequestTypeDef = { # (1)
"caseId": ...,
"fileName": ...,
"contentLength": ...,
}
parent.get_case_attachment_upload_url(**kwargs)
get_membership#
Grants permission to get details of a designated service membership.
Type annotations and code completion for boto3.client("security-ir").get_membership
method.
boto3 documentation
# get_membership method definition
def get_membership(
self,
*,
membershipId: str,
) -> GetMembershipResponseTypeDef: # (1)
...
# get_membership method usage example with argument unpacking
kwargs: GetMembershipRequestRequestTypeDef = { # (1)
"membershipId": ...,
}
parent.get_membership(**kwargs)
list_case_edits#
Grants permissions to view the aidt log for edits made to a designated case.
Type annotations and code completion for boto3.client("security-ir").list_case_edits
method.
boto3 documentation
# list_case_edits method definition
def list_case_edits(
self,
*,
caseId: str,
nextToken: str = ...,
maxResults: int = ...,
) -> ListCaseEditsResponseTypeDef: # (1)
...
# list_case_edits method usage example with argument unpacking
kwargs: ListCaseEditsRequestRequestTypeDef = { # (1)
"caseId": ...,
}
parent.list_case_edits(**kwargs)
list_cases#
Grants permission to list all cases the requester has access to.
Type annotations and code completion for boto3.client("security-ir").list_cases
method.
boto3 documentation
# list_cases method definition
def list_cases(
self,
*,
nextToken: str = ...,
maxResults: int = ...,
) -> ListCasesResponseTypeDef: # (1)
...
# list_cases method usage example with argument unpacking
kwargs: ListCasesRequestRequestTypeDef = { # (1)
"nextToken": ...,
}
parent.list_cases(**kwargs)
list_comments#
Grants permissions to list and view comments for a designated case.
Type annotations and code completion for boto3.client("security-ir").list_comments
method.
boto3 documentation
# list_comments method definition
def list_comments(
self,
*,
caseId: str,
nextToken: str = ...,
maxResults: int = ...,
) -> ListCommentsResponseTypeDef: # (1)
...
# list_comments method usage example with argument unpacking
kwargs: ListCommentsRequestRequestTypeDef = { # (1)
"caseId": ...,
}
parent.list_comments(**kwargs)
list_memberships#
Grants permission to query the memberships a principal has access to.
Type annotations and code completion for boto3.client("security-ir").list_memberships
method.
boto3 documentation
# list_memberships method definition
def list_memberships(
self,
*,
nextToken: str = ...,
maxResults: int = ...,
) -> ListMembershipsResponseTypeDef: # (1)
...
# list_memberships method usage example with argument unpacking
kwargs: ListMembershipsRequestRequestTypeDef = { # (1)
"nextToken": ...,
}
parent.list_memberships(**kwargs)
list_tags_for_resource#
Grants permission to view currently configured tags on a resource.
Type annotations and code completion for boto3.client("security-ir").list_tags_for_resource
method.
boto3 documentation
# list_tags_for_resource method definition
def list_tags_for_resource(
self,
*,
resourceArn: str,
) -> ListTagsForResourceOutputTypeDef: # (1)
...
# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceInputRequestTypeDef = { # (1)
"resourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
tag_resource#
Grants permission to add a tag(s) to a designated resource.
Type annotations and code completion for boto3.client("security-ir").tag_resource
method.
boto3 documentation
# tag_resource method definition
def tag_resource(
self,
*,
resourceArn: str,
tags: Mapping[str, str],
) -> Dict[str, Any]:
...
# tag_resource method usage example with argument unpacking
kwargs: TagResourceInputRequestTypeDef = { # (1)
"resourceArn": ...,
"tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource#
Grants permission to remove a tag(s) from a designate resource.
Type annotations and code completion for boto3.client("security-ir").untag_resource
method.
boto3 documentation
# untag_resource method definition
def untag_resource(
self,
*,
resourceArn: str,
tagKeys: Sequence[str],
) -> Dict[str, Any]:
...
# untag_resource method usage example with argument unpacking
kwargs: UntagResourceInputRequestTypeDef = { # (1)
"resourceArn": ...,
"tagKeys": ...,
}
parent.untag_resource(**kwargs)
update_case#
Grants permission to update an existing case.
Type annotations and code completion for boto3.client("security-ir").update_case
method.
boto3 documentation
# update_case method definition
def update_case(
self,
*,
caseId: str,
title: str = ...,
description: str = ...,
reportedIncidentStartDate: TimestampTypeDef = ...,
actualIncidentStartDate: TimestampTypeDef = ...,
engagementType: EngagementTypeType = ..., # (1)
watchersToAdd: Sequence[WatcherTypeDef] = ..., # (2)
watchersToDelete: Sequence[WatcherTypeDef] = ..., # (2)
threatActorIpAddressesToAdd: Sequence[ThreatActorIpTypeDef] = ..., # (4)
threatActorIpAddressesToDelete: Sequence[ThreatActorIpTypeDef] = ..., # (4)
impactedServicesToAdd: Sequence[str] = ...,
impactedServicesToDelete: Sequence[str] = ...,
impactedAwsRegionsToAdd: Sequence[ImpactedAwsRegionTypeDef] = ..., # (6)
impactedAwsRegionsToDelete: Sequence[ImpactedAwsRegionTypeDef] = ..., # (6)
impactedAccountsToAdd: Sequence[str] = ...,
impactedAccountsToDelete: Sequence[str] = ...,
) -> Dict[str, Any]:
...
- See EngagementTypeType
- See WatcherTypeDef
- See WatcherTypeDef
- See ThreatActorIpTypeDef
- See ThreatActorIpTypeDef
- See ImpactedAwsRegionTypeDef
- See ImpactedAwsRegionTypeDef
# update_case method usage example with argument unpacking
kwargs: UpdateCaseRequestRequestTypeDef = { # (1)
"caseId": ...,
}
parent.update_case(**kwargs)
update_case_comment#
Grants permission to update an existing case comment.
Type annotations and code completion for boto3.client("security-ir").update_case_comment
method.
boto3 documentation
# update_case_comment method definition
def update_case_comment(
self,
*,
caseId: str,
commentId: str,
body: str,
) -> UpdateCaseCommentResponseTypeDef: # (1)
...
# update_case_comment method usage example with argument unpacking
kwargs: UpdateCaseCommentRequestRequestTypeDef = { # (1)
"caseId": ...,
"commentId": ...,
"body": ...,
}
parent.update_case_comment(**kwargs)
update_case_status#
Grants permission to update the status for a designated cases.
Type annotations and code completion for boto3.client("security-ir").update_case_status
method.
boto3 documentation
# update_case_status method definition
def update_case_status(
self,
*,
caseId: str,
caseStatus: SelfManagedCaseStatusType, # (1)
) -> UpdateCaseStatusResponseTypeDef: # (2)
...
# update_case_status method usage example with argument unpacking
kwargs: UpdateCaseStatusRequestRequestTypeDef = { # (1)
"caseId": ...,
"caseStatus": ...,
}
parent.update_case_status(**kwargs)
update_membership#
Grants access to UpdateMembership to change membership configuration.
Type annotations and code completion for boto3.client("security-ir").update_membership
method.
boto3 documentation
# update_membership method definition
def update_membership(
self,
*,
membershipId: str,
membershipName: str = ...,
incidentResponseTeam: Sequence[IncidentResponderTypeDef] = ..., # (1)
optInFeatures: Sequence[OptInFeatureTypeDef] = ..., # (2)
) -> Dict[str, Any]:
...
# update_membership method usage example with argument unpacking
kwargs: UpdateMembershipRequestRequestTypeDef = { # (1)
"membershipId": ...,
}
parent.update_membership(**kwargs)
update_resolver_type#
Grants permission to update the resolver type for a case.
Type annotations and code completion for boto3.client("security-ir").update_resolver_type
method.
boto3 documentation
# update_resolver_type method definition
def update_resolver_type(
self,
*,
caseId: str,
resolverType: ResolverTypeType, # (1)
) -> UpdateResolverTypeResponseTypeDef: # (2)
...
# update_resolver_type method usage example with argument unpacking
kwargs: UpdateResolverTypeRequestRequestTypeDef = { # (1)
"caseId": ...,
"resolverType": ...,
}
parent.update_resolver_type(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("security-ir").get_paginator
method with overloads.
client.get_paginator("list_case_edits")
-> ListCaseEditsPaginatorclient.get_paginator("list_cases")
-> ListCasesPaginatorclient.get_paginator("list_comments")
-> ListCommentsPaginatorclient.get_paginator("list_memberships")
-> ListMembershipsPaginator