Class: Aws::SecurityIR::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::SecurityIR::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-securityir/client.rb
Overview
An API client for SecurityIR. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::SecurityIR::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#batch_get_member_account_details(params = {}) ⇒ Types::BatchGetMemberAccountDetailsResponse
Provides information on whether the supplied account IDs are associated with a membership.
-
#cancel_membership(params = {}) ⇒ Types::CancelMembershipResponse
Cancels an existing membership.
-
#close_case(params = {}) ⇒ Types::CloseCaseResponse
Closes an existing case.
-
#create_case(params = {}) ⇒ Types::CreateCaseResponse
Creates a new case.
-
#create_case_comment(params = {}) ⇒ Types::CreateCaseCommentResponse
Adds a comment to an existing case.
-
#create_membership(params = {}) ⇒ Types::CreateMembershipResponse
Creates a new membership.
-
#get_case(params = {}) ⇒ Types::GetCaseResponse
Returns the attributes of a case.
-
#get_case_attachment_download_url(params = {}) ⇒ Types::GetCaseAttachmentDownloadUrlResponse
Returns a Pre-Signed URL for uploading attachments into a case.
-
#get_case_attachment_upload_url(params = {}) ⇒ Types::GetCaseAttachmentUploadUrlResponse
Uploads an attachment to a case.
-
#get_membership(params = {}) ⇒ Types::GetMembershipResponse
Returns the attributes of a membership.
-
#list_case_edits(params = {}) ⇒ Types::ListCaseEditsResponse
Views the case history for edits made to a designated case.
-
#list_cases(params = {}) ⇒ Types::ListCasesResponse
Lists all cases the requester has access to.
-
#list_comments(params = {}) ⇒ Types::ListCommentsResponse
Returns comments for a designated case.
-
#list_investigations(params = {}) ⇒ Types::ListInvestigationsResponse
Investigation performed by an agent for a security incident…
-
#list_memberships(params = {}) ⇒ Types::ListMembershipsResponse
Returns the memberships that the calling principal can access.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceOutput
Returns currently configured tags on a resource.
-
#send_feedback(params = {}) ⇒ Struct
Send feedback based on response investigation action.
-
#tag_resource(params = {}) ⇒ Struct
Adds a tag(s) to a designated resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes a tag(s) from a designate resource.
-
#update_case(params = {}) ⇒ Struct
Updates an existing case.
-
#update_case_comment(params = {}) ⇒ Types::UpdateCaseCommentResponse
Updates an existing case comment.
-
#update_case_status(params = {}) ⇒ Types::UpdateCaseStatusResponse
Updates the state transitions for a designated cases.
-
#update_membership(params = {}) ⇒ Struct
Updates membership configuration.
-
#update_resolver_type(params = {}) ⇒ Types::UpdateResolverTypeResponse
Updates the resolver type for a case.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
473 474 475 |
# File 'lib/aws-sdk-securityir/client.rb', line 473 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2403 2404 2405 |
# File 'lib/aws-sdk-securityir/client.rb', line 2403 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2406 2407 2408 |
# File 'lib/aws-sdk-securityir/client.rb', line 2406 def errors_module Errors end |
Instance Method Details
#batch_get_member_account_details(params = {}) ⇒ Types::BatchGetMemberAccountDetailsResponse
Provides information on whether the supplied account IDs are associated with a membership.
<note markdown=“1”> 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.
</note>
552 553 554 555 |
# File 'lib/aws-sdk-securityir/client.rb', line 552 def batch_get_member_account_details(params = {}, = {}) req = build_request(:batch_get_member_account_details, params) req.send_request() end |
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 |
# File 'lib/aws-sdk-securityir/client.rb', line 2376 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::SecurityIR') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-securityir' context[:gem_version] = '1.17.0' Seahorse::Client::Request.new(handlers, context) end |
#cancel_membership(params = {}) ⇒ Types::CancelMembershipResponse
Cancels an existing membership.
593 594 595 596 |
# File 'lib/aws-sdk-securityir/client.rb', line 593 def cancel_membership(params = {}, = {}) req = build_request(:cancel_membership, params) req.send_request() end |
#close_case(params = {}) ⇒ Types::CloseCaseResponse
Closes an existing case.
637 638 639 640 |
# File 'lib/aws-sdk-securityir/client.rb', line 637 def close_case(params = {}, = {}) req = build_request(:close_case, params) req.send_request() end |
#create_case(params = {}) ⇒ Types::CreateCaseResponse
Creates a new case.
798 799 800 801 |
# File 'lib/aws-sdk-securityir/client.rb', line 798 def create_case(params = {}, = {}) req = build_request(:create_case, params) req.send_request() end |
#create_case_comment(params = {}) ⇒ Types::CreateCaseCommentResponse
Adds a comment to an existing case.
858 859 860 861 |
# File 'lib/aws-sdk-securityir/client.rb', line 858 def create_case_comment(params = {}, = {}) req = build_request(:create_case_comment, params) req.send_request() end |
#create_membership(params = {}) ⇒ Types::CreateMembershipResponse
Creates a new membership.
977 978 979 980 |
# File 'lib/aws-sdk-securityir/client.rb', line 977 def create_membership(params = {}, = {}) req = build_request(:create_membership, params) req.send_request() end |
#get_case(params = {}) ⇒ Types::GetCaseResponse
Returns the attributes of a case.
1111 1112 1113 1114 |
# File 'lib/aws-sdk-securityir/client.rb', line 1111 def get_case(params = {}, = {}) req = build_request(:get_case, params) req.send_request() end |
#get_case_attachment_download_url(params = {}) ⇒ Types::GetCaseAttachmentDownloadUrlResponse
Returns a Pre-Signed URL for uploading attachments into a case.
1158 1159 1160 1161 |
# File 'lib/aws-sdk-securityir/client.rb', line 1158 def (params = {}, = {}) req = build_request(:get_case_attachment_download_url, params) req.send_request() end |
#get_case_attachment_upload_url(params = {}) ⇒ Types::GetCaseAttachmentUploadUrlResponse
Uploads an attachment to a case.
1224 1225 1226 1227 |
# File 'lib/aws-sdk-securityir/client.rb', line 1224 def (params = {}, = {}) req = build_request(:get_case_attachment_upload_url, params) req.send_request() end |
#get_membership(params = {}) ⇒ Types::GetMembershipResponse
Returns the attributes of a membership.
1325 1326 1327 1328 |
# File 'lib/aws-sdk-securityir/client.rb', line 1325 def get_membership(params = {}, = {}) req = build_request(:get_membership, params) req.send_request() end |
#list_case_edits(params = {}) ⇒ Types::ListCaseEditsResponse
Views the case history for edits made to a designated case.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1395 1396 1397 1398 |
# File 'lib/aws-sdk-securityir/client.rb', line 1395 def list_case_edits(params = {}, = {}) req = build_request(:list_case_edits, params) req.send_request() end |
#list_cases(params = {}) ⇒ Types::ListCasesResponse
Lists all cases the requester has access to.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1470 1471 1472 1473 |
# File 'lib/aws-sdk-securityir/client.rb', line 1470 def list_cases(params = {}, = {}) req = build_request(:list_cases, params) req.send_request() end |
#list_comments(params = {}) ⇒ Types::ListCommentsResponse
Returns comments for a designated case.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1538 1539 1540 1541 |
# File 'lib/aws-sdk-securityir/client.rb', line 1538 def list_comments(params = {}, = {}) req = build_request(:list_comments, params) req.send_request() end |
#list_investigations(params = {}) ⇒ Types::ListInvestigationsResponse
Investigation performed by an agent for a security incident…
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1616 1617 1618 1619 |
# File 'lib/aws-sdk-securityir/client.rb', line 1616 def list_investigations(params = {}, = {}) req = build_request(:list_investigations, params) req.send_request() end |
#list_memberships(params = {}) ⇒ Types::ListMembershipsResponse
Returns the memberships that the calling principal can access.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1679 1680 1681 1682 |
# File 'lib/aws-sdk-securityir/client.rb', line 1679 def list_memberships(params = {}, = {}) req = build_request(:list_memberships, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceOutput
Returns currently configured tags on a resource.
1724 1725 1726 1727 |
# File 'lib/aws-sdk-securityir/client.rb', line 1724 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#send_feedback(params = {}) ⇒ Struct
Send feedback based on response investigation action
1785 1786 1787 1788 |
# File 'lib/aws-sdk-securityir/client.rb', line 1785 def send_feedback(params = {}, = {}) req = build_request(:send_feedback, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds a tag(s) to a designated resource.
1830 1831 1832 1833 |
# File 'lib/aws-sdk-securityir/client.rb', line 1830 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes a tag(s) from a designate resource.
1867 1868 1869 1870 |
# File 'lib/aws-sdk-securityir/client.rb', line 1867 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_case(params = {}) ⇒ Struct
Updates an existing case.
2082 2083 2084 2085 |
# File 'lib/aws-sdk-securityir/client.rb', line 2082 def update_case(params = {}, = {}) req = build_request(:update_case, params) req.send_request() end |
#update_case_comment(params = {}) ⇒ Types::UpdateCaseCommentResponse
Updates an existing case comment.
2138 2139 2140 2141 |
# File 'lib/aws-sdk-securityir/client.rb', line 2138 def update_case_comment(params = {}, = {}) req = build_request(:update_case_comment, params) req.send_request() end |
#update_case_status(params = {}) ⇒ Types::UpdateCaseStatusResponse
Updates the state transitions for a designated cases.
Self-managed: the following states are available for self-managed cases.
-
Submitted → Detection and Analysis
-
Detection and Analysis → Containment, Eradication, and Recovery
-
Detection and Analysis → Post-incident Activities
-
Containment, Eradication, and Recovery → Detection and Analysis
-
Containment, Eradication, and Recovery → Post-incident Activities
-
Post-incident Activities → Containment, Eradication, and Recovery
-
Post-incident Activities → Detection and Analysis
-
Any → Closed
**AWS supported**: You must use the ‘CloseCase` API to close.
2206 2207 2208 2209 |
# File 'lib/aws-sdk-securityir/client.rb', line 2206 def update_case_status(params = {}, = {}) req = build_request(:update_case_status, params) req.send_request() end |
#update_membership(params = {}) ⇒ Struct
Updates membership configuration.
2313 2314 2315 2316 |
# File 'lib/aws-sdk-securityir/client.rb', line 2313 def update_membership(params = {}, = {}) req = build_request(:update_membership, params) req.send_request() end |
#update_resolver_type(params = {}) ⇒ Types::UpdateResolverTypeResponse
Updates the resolver type for a case.
This is a one-way action and cannot be reversed.
2367 2368 2369 2370 |
# File 'lib/aws-sdk-securityir/client.rb', line 2367 def update_resolver_type(params = {}, = {}) req = build_request(:update_resolver_type, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2396 2397 2398 |
# File 'lib/aws-sdk-securityir/client.rb', line 2396 def waiter_names [] end |