Skip to content

SecurityIncidentResponseClient#

Index > SecurityIncidentResponse > SecurityIncidentResponseClient

Auto-generated documentation for SecurityIncidentResponse type annotations stubs module types-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 types_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 types_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:
    ...

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)
    ...
  1. See BatchGetMemberAccountDetailsResponseTypeDef
# batch_get_member_account_details method usage example with argument unpacking

kwargs: BatchGetMemberAccountDetailsRequestRequestTypeDef = {  # (1)
    "membershipId": ...,
    "accountIds": ...,
}

parent.batch_get_member_account_details(**kwargs)
  1. See BatchGetMemberAccountDetailsRequestRequestTypeDef

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)
    ...
  1. See CancelMembershipResponseTypeDef
# cancel_membership method usage example with argument unpacking

kwargs: CancelMembershipRequestRequestTypeDef = {  # (1)
    "membershipId": ...,
}

parent.cancel_membership(**kwargs)
  1. See CancelMembershipRequestRequestTypeDef

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)
    ...
  1. See CloseCaseResponseTypeDef
# close_case method usage example with argument unpacking

kwargs: CloseCaseRequestRequestTypeDef = {  # (1)
    "caseId": ...,
}

parent.close_case(**kwargs)
  1. See CloseCaseRequestRequestTypeDef

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)
    ...
  1. See ResolverTypeType
  2. See EngagementTypeType
  3. See WatcherTypeDef
  4. See ThreatActorIpTypeDef
  5. See ImpactedAwsRegionTypeDef
  6. See CreateCaseResponseTypeDef
# create_case method usage example with argument unpacking

kwargs: CreateCaseRequestRequestTypeDef = {  # (1)
    "resolverType": ...,
    "title": ...,
    "description": ...,
    "engagementType": ...,
    "reportedIncidentStartDate": ...,
    "impactedAccounts": ...,
    "watchers": ...,
}

parent.create_case(**kwargs)
  1. See CreateCaseRequestRequestTypeDef

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)
    ...
  1. See CreateCaseCommentResponseTypeDef
# create_case_comment method usage example with argument unpacking

kwargs: CreateCaseCommentRequestRequestTypeDef = {  # (1)
    "caseId": ...,
    "body": ...,
}

parent.create_case_comment(**kwargs)
  1. See CreateCaseCommentRequestRequestTypeDef

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)
    ...
  1. See IncidentResponderTypeDef
  2. See OptInFeatureTypeDef
  3. See CreateMembershipResponseTypeDef
# create_membership method usage example with argument unpacking

kwargs: CreateMembershipRequestRequestTypeDef = {  # (1)
    "membershipName": ...,
    "incidentResponseTeam": ...,
}

parent.create_membership(**kwargs)
  1. See CreateMembershipRequestRequestTypeDef

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)
    ...
  1. See GetCaseResponseTypeDef
# get_case method usage example with argument unpacking

kwargs: GetCaseRequestRequestTypeDef = {  # (1)
    "caseId": ...,
}

parent.get_case(**kwargs)
  1. See GetCaseRequestRequestTypeDef

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)
    ...
  1. See GetCaseAttachmentDownloadUrlResponseTypeDef
# get_case_attachment_download_url method usage example with argument unpacking

kwargs: GetCaseAttachmentDownloadUrlRequestRequestTypeDef = {  # (1)
    "caseId": ...,
    "attachmentId": ...,
}

parent.get_case_attachment_download_url(**kwargs)
  1. See GetCaseAttachmentDownloadUrlRequestRequestTypeDef

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)
    ...
  1. See GetCaseAttachmentUploadUrlResponseTypeDef
# get_case_attachment_upload_url method usage example with argument unpacking

kwargs: GetCaseAttachmentUploadUrlRequestRequestTypeDef = {  # (1)
    "caseId": ...,
    "fileName": ...,
    "contentLength": ...,
}

parent.get_case_attachment_upload_url(**kwargs)
  1. See GetCaseAttachmentUploadUrlRequestRequestTypeDef

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)
    ...
  1. See GetMembershipResponseTypeDef
# get_membership method usage example with argument unpacking

kwargs: GetMembershipRequestRequestTypeDef = {  # (1)
    "membershipId": ...,
}

parent.get_membership(**kwargs)
  1. See GetMembershipRequestRequestTypeDef

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)
    ...
  1. See ListCaseEditsResponseTypeDef
# list_case_edits method usage example with argument unpacking

kwargs: ListCaseEditsRequestRequestTypeDef = {  # (1)
    "caseId": ...,
}

parent.list_case_edits(**kwargs)
  1. See ListCaseEditsRequestRequestTypeDef

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)
    ...
  1. See ListCasesResponseTypeDef
# list_cases method usage example with argument unpacking

kwargs: ListCasesRequestRequestTypeDef = {  # (1)
    "nextToken": ...,
}

parent.list_cases(**kwargs)
  1. See ListCasesRequestRequestTypeDef

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)
    ...
  1. See ListCommentsResponseTypeDef
# list_comments method usage example with argument unpacking

kwargs: ListCommentsRequestRequestTypeDef = {  # (1)
    "caseId": ...,
}

parent.list_comments(**kwargs)
  1. See ListCommentsRequestRequestTypeDef

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)
    ...
  1. See ListMembershipsResponseTypeDef
# list_memberships method usage example with argument unpacking

kwargs: ListMembershipsRequestRequestTypeDef = {  # (1)
    "nextToken": ...,
}

parent.list_memberships(**kwargs)
  1. See ListMembershipsRequestRequestTypeDef

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)
    ...
  1. See ListTagsForResourceOutputTypeDef
# list_tags_for_resource method usage example with argument unpacking

kwargs: ListTagsForResourceInputRequestTypeDef = {  # (1)
    "resourceArn": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceInputRequestTypeDef

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)
  1. See TagResourceInputRequestTypeDef

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)
  1. See UntagResourceInputRequestTypeDef

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]:
    ...
  1. See EngagementTypeType
  2. See WatcherTypeDef
  3. See WatcherTypeDef
  4. See ThreatActorIpTypeDef
  5. See ThreatActorIpTypeDef
  6. See ImpactedAwsRegionTypeDef
  7. See ImpactedAwsRegionTypeDef
# update_case method usage example with argument unpacking

kwargs: UpdateCaseRequestRequestTypeDef = {  # (1)
    "caseId": ...,
}

parent.update_case(**kwargs)
  1. See UpdateCaseRequestRequestTypeDef

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)
    ...
  1. See UpdateCaseCommentResponseTypeDef
# update_case_comment method usage example with argument unpacking

kwargs: UpdateCaseCommentRequestRequestTypeDef = {  # (1)
    "caseId": ...,
    "commentId": ...,
    "body": ...,
}

parent.update_case_comment(**kwargs)
  1. See UpdateCaseCommentRequestRequestTypeDef

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)
    ...
  1. See SelfManagedCaseStatusType
  2. See UpdateCaseStatusResponseTypeDef
# update_case_status method usage example with argument unpacking

kwargs: UpdateCaseStatusRequestRequestTypeDef = {  # (1)
    "caseId": ...,
    "caseStatus": ...,
}

parent.update_case_status(**kwargs)
  1. See UpdateCaseStatusRequestRequestTypeDef

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]:
    ...
  1. See IncidentResponderTypeDef
  2. See OptInFeatureTypeDef
# update_membership method usage example with argument unpacking

kwargs: UpdateMembershipRequestRequestTypeDef = {  # (1)
    "membershipId": ...,
}

parent.update_membership(**kwargs)
  1. See UpdateMembershipRequestRequestTypeDef

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)
    ...
  1. See ResolverTypeType
  2. See UpdateResolverTypeResponseTypeDef
# update_resolver_type method usage example with argument unpacking

kwargs: UpdateResolverTypeRequestRequestTypeDef = {  # (1)
    "caseId": ...,
    "resolverType": ...,
}

parent.update_resolver_type(**kwargs)
  1. See UpdateResolverTypeRequestRequestTypeDef

get_paginator#

Type annotations and code completion for boto3.client("security-ir").get_paginator method with overloads.