Class: Aws::Inspector2::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Inspector2::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb
Overview
An API client for Inspector2. To construct a client, you need to configure a :region and :credentials.
client = Aws::Inspector2::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#associate_member(params = {}) ⇒ Types::AssociateMemberResponse
Associates an Amazon Web Services account with an Amazon Inspector delegated administrator.
-
#batch_associate_code_security_scan_configuration(params = {}) ⇒ Types::BatchAssociateCodeSecurityScanConfigurationResponse
Associates multiple code repositories with an Amazon Inspector code security scan configuration.
-
#batch_disassociate_code_security_scan_configuration(params = {}) ⇒ Types::BatchDisassociateCodeSecurityScanConfigurationResponse
Disassociates multiple code repositories from an Amazon Inspector code security scan configuration.
-
#batch_get_account_status(params = {}) ⇒ Types::BatchGetAccountStatusResponse
Retrieves the Amazon Inspector status of multiple Amazon Web Services accounts within your environment.
-
#batch_get_code_snippet(params = {}) ⇒ Types::BatchGetCodeSnippetResponse
Retrieves code snippets from findings that Amazon Inspector detected code vulnerabilities in.
-
#batch_get_finding_details(params = {}) ⇒ Types::BatchGetFindingDetailsResponse
Gets vulnerability details for findings.
-
#batch_get_free_trial_info(params = {}) ⇒ Types::BatchGetFreeTrialInfoResponse
Gets free trial status for multiple Amazon Web Services accounts.
-
#batch_get_member_ec2_deep_inspection_status(params = {}) ⇒ Types::BatchGetMemberEc2DeepInspectionStatusResponse
Retrieves Amazon Inspector deep inspection activation status of multiple member accounts within your organization.
-
#batch_update_member_ec2_deep_inspection_status(params = {}) ⇒ Types::BatchUpdateMemberEc2DeepInspectionStatusResponse
Activates or deactivates Amazon Inspector deep inspection for the provided member accounts in your organization.
-
#cancel_findings_report(params = {}) ⇒ Types::CancelFindingsReportResponse
Cancels the given findings report.
-
#cancel_sbom_export(params = {}) ⇒ Types::CancelSbomExportResponse
Cancels a software bill of materials (SBOM) report.
-
#create_cis_scan_configuration(params = {}) ⇒ Types::CreateCisScanConfigurationResponse
Creates a CIS scan configuration.
-
#create_code_security_integration(params = {}) ⇒ Types::CreateCodeSecurityIntegrationResponse
Creates a code security integration with a source code repository provider.
-
#create_code_security_scan_configuration(params = {}) ⇒ Types::CreateCodeSecurityScanConfigurationResponse
Creates a scan configuration for code security scanning.
-
#create_connector(params = {}) ⇒ Types::CreateConnectorResponse
Creates a connector that links an external cloud provider to Amazon Inspector for vulnerability scanning.
-
#create_filter(params = {}) ⇒ Types::CreateFilterResponse
Creates a filter resource using specified filter criteria.
-
#create_findings_report(params = {}) ⇒ Types::CreateFindingsReportResponse
Creates a finding report.
-
#create_sbom_export(params = {}) ⇒ Types::CreateSbomExportResponse
Creates a software bill of materials (SBOM) report.
-
#delete_cis_scan_configuration(params = {}) ⇒ Types::DeleteCisScanConfigurationResponse
Deletes a CIS scan configuration.
-
#delete_code_security_integration(params = {}) ⇒ Types::DeleteCodeSecurityIntegrationResponse
Deletes a code security integration.
-
#delete_code_security_scan_configuration(params = {}) ⇒ Types::DeleteCodeSecurityScanConfigurationResponse
Deletes a code security scan configuration.
-
#delete_connector(params = {}) ⇒ Struct
Deletes a connector from your account.
-
#delete_filter(params = {}) ⇒ Types::DeleteFilterResponse
Deletes a filter resource.
-
#describe_organization_configuration(params = {}) ⇒ Types::DescribeOrganizationConfigurationResponse
Describe Amazon Inspector configuration settings for an Amazon Web Services organization.
-
#disable(params = {}) ⇒ Types::DisableResponse
Disables Amazon Inspector scans for one or more Amazon Web Services accounts.
-
#disable_delegated_admin_account(params = {}) ⇒ Types::DisableDelegatedAdminAccountResponse
Disables the Amazon Inspector delegated administrator for your organization.
-
#disassociate_member(params = {}) ⇒ Types::DisassociateMemberResponse
Disassociates a member account from an Amazon Inspector delegated administrator.
-
#enable(params = {}) ⇒ Types::EnableResponse
Enables Amazon Inspector scans for one or more Amazon Web Services accounts.
-
#enable_delegated_admin_account(params = {}) ⇒ Types::EnableDelegatedAdminAccountResponse
Enables the Amazon Inspector delegated administrator for your Organizations organization.
-
#get_cis_scan_report(params = {}) ⇒ Types::GetCisScanReportResponse
Retrieves a CIS scan report.
-
#get_cis_scan_result_details(params = {}) ⇒ Types::GetCisScanResultDetailsResponse
Retrieves CIS scan result details.
-
#get_clusters_for_image(params = {}) ⇒ Types::GetClustersForImageResponse
Returns a list of clusters and metadata associated with an image.
-
#get_code_security_integration(params = {}) ⇒ Types::GetCodeSecurityIntegrationResponse
Retrieves information about a code security integration.
-
#get_code_security_scan(params = {}) ⇒ Types::GetCodeSecurityScanResponse
Retrieves information about a specific code security scan.
-
#get_code_security_scan_configuration(params = {}) ⇒ Types::GetCodeSecurityScanConfigurationResponse
Retrieves information about a code security scan configuration.
-
#get_configuration(params = {}) ⇒ Types::GetConfigurationResponse
Retrieves setting configurations for Amazon Inspector scans.
-
#get_delegated_admin_account(params = {}) ⇒ Types::GetDelegatedAdminAccountResponse
Retrieves information about the Amazon Inspector delegated administrator for your organization.
-
#get_ec2_deep_inspection_configuration(params = {}) ⇒ Types::GetEc2DeepInspectionConfigurationResponse
Retrieves the activation status of Amazon Inspector deep inspection and custom paths associated with your account.
-
#get_encryption_key(params = {}) ⇒ Types::GetEncryptionKeyResponse
Gets an encryption key.
-
#get_findings_report_status(params = {}) ⇒ Types::GetFindingsReportStatusResponse
Gets the status of a findings report.
-
#get_member(params = {}) ⇒ Types::GetMemberResponse
Gets member information for your organization.
-
#get_sbom_export(params = {}) ⇒ Types::GetSbomExportResponse
Gets details of a software bill of materials (SBOM) report.
-
#list_account_permissions(params = {}) ⇒ Types::ListAccountPermissionsResponse
Lists the permissions an account has to configure Amazon Inspector.
-
#list_cis_scan_configurations(params = {}) ⇒ Types::ListCisScanConfigurationsResponse
Lists CIS scan configurations.
-
#list_cis_scan_results_aggregated_by_checks(params = {}) ⇒ Types::ListCisScanResultsAggregatedByChecksResponse
Lists scan results aggregated by checks.
-
#list_cis_scan_results_aggregated_by_target_resource(params = {}) ⇒ Types::ListCisScanResultsAggregatedByTargetResourceResponse
Lists scan results aggregated by a target resource.
-
#list_cis_scans(params = {}) ⇒ Types::ListCisScansResponse
Returns a CIS scan list.
-
#list_code_security_integrations(params = {}) ⇒ Types::ListCodeSecurityIntegrationsResponse
Lists all code security integrations in your account.
-
#list_code_security_scan_configuration_associations(params = {}) ⇒ Types::ListCodeSecurityScanConfigurationAssociationsResponse
Lists the associations between code repositories and Amazon Inspector code security scan configurations.
-
#list_code_security_scan_configurations(params = {}) ⇒ Types::ListCodeSecurityScanConfigurationsResponse
Lists all code security scan configurations in your account.
-
#list_connector_scan_configurations(params = {}) ⇒ Types::ListConnectorScanConfigurationsResponse
Lists scan configurations for Amazon Web Services Config connectors.
-
#list_connectors(params = {}) ⇒ Types::ListConnectorsResponse
Lists connectors in your account.
-
#list_coverage(params = {}) ⇒ Types::ListCoverageResponse
Lists coverage details for your environment.
-
#list_coverage_statistics(params = {}) ⇒ Types::ListCoverageStatisticsResponse
Lists Amazon Inspector coverage statistics for your environment.
-
#list_delegated_admin_accounts(params = {}) ⇒ Types::ListDelegatedAdminAccountsResponse
Lists information about the Amazon Inspector delegated administrator of your organization.
-
#list_filters(params = {}) ⇒ Types::ListFiltersResponse
Lists the filters associated with your account.
-
#list_finding_aggregations(params = {}) ⇒ Types::ListFindingAggregationsResponse
Lists aggregated finding data for your environment based on specific criteria.
-
#list_findings(params = {}) ⇒ Types::ListFindingsResponse
Lists findings for your environment.
-
#list_members(params = {}) ⇒ Types::ListMembersResponse
List members associated with the Amazon Inspector delegated administrator for your organization.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists all tags attached to a given resource.
-
#list_usage_totals(params = {}) ⇒ Types::ListUsageTotalsResponse
Lists the Amazon Inspector usage totals over the last 30 days.
-
#reset_encryption_key(params = {}) ⇒ Struct
Resets an encryption key.
-
#search_vulnerabilities(params = {}) ⇒ Types::SearchVulnerabilitiesResponse
Lists Amazon Inspector coverage details for a specific vulnerability.
-
#send_cis_session_health(params = {}) ⇒ Struct
Sends a CIS session health.
-
#send_cis_session_telemetry(params = {}) ⇒ Struct
Sends a CIS session telemetry.
-
#start_cis_session(params = {}) ⇒ Struct
Starts a CIS session.
-
#start_code_security_scan(params = {}) ⇒ Types::StartCodeSecurityScanResponse
Initiates a code security scan on a specified repository.
-
#stop_cis_session(params = {}) ⇒ Struct
Stops a CIS session.
-
#tag_resource(params = {}) ⇒ Struct
Adds tags to a resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes tags from a resource.
-
#update_cis_scan_configuration(params = {}) ⇒ Types::UpdateCisScanConfigurationResponse
Updates a CIS scan configuration.
-
#update_code_security_integration(params = {}) ⇒ Types::UpdateCodeSecurityIntegrationResponse
Updates an existing code security integration.
-
#update_code_security_scan_configuration(params = {}) ⇒ Types::UpdateCodeSecurityScanConfigurationResponse
Updates an existing code security scan configuration.
-
#update_configuration(params = {}) ⇒ Struct
Updates the scan configuration for your Amazon Inspector account.
-
#update_connector(params = {}) ⇒ Types::UpdateConnectorResponse
Updates the description or provider-specific configuration details of an existing connector.
-
#update_connector_scan_configuration(params = {}) ⇒ Struct
Updates scan configuration settings for resources associated with an Amazon Web Services Config connector.
-
#update_ec2_deep_inspection_configuration(params = {}) ⇒ Types::UpdateEc2DeepInspectionConfigurationResponse
Activates, deactivates Amazon Inspector deep inspection, or updates custom paths for your account.
-
#update_encryption_key(params = {}) ⇒ Struct
Updates an encryption key.
-
#update_filter(params = {}) ⇒ Types::UpdateFilterResponse
Specifies the action that is to be applied to the findings that match the filter.
-
#update_org_ec2_deep_inspection_configuration(params = {}) ⇒ Struct
Updates the Amazon Inspector deep inspection custom paths for your organization.
-
#update_organization_configuration(params = {}) ⇒ Types::UpdateOrganizationConfigurationResponse
Updates the configurations for your Amazon Inspector organization.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
-
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
471 472 473 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 471 def initialize(*args) super end |
Instance Method Details
#associate_member(params = {}) ⇒ Types::AssociateMemberResponse
Associates an Amazon Web Services account with an Amazon Inspector delegated administrator. An HTTP 200 response indicates the association was successfully started, but doesn’t indicate whether it was completed. You can check if the association completed by using ListMembers for multiple accounts or GetMembers for a single account.
511 512 513 514 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 511 def associate_member(params = {}, = {}) req = build_request(:associate_member, params) req.send_request() end |
#batch_associate_code_security_scan_configuration(params = {}) ⇒ Types::BatchAssociateCodeSecurityScanConfigurationResponse
Associates multiple code repositories with an Amazon Inspector code security scan configuration.
556 557 558 559 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 556 def batch_associate_code_security_scan_configuration(params = {}, = {}) req = build_request(:batch_associate_code_security_scan_configuration, params) req.send_request() end |
#batch_disassociate_code_security_scan_configuration(params = {}) ⇒ Types::BatchDisassociateCodeSecurityScanConfigurationResponse
Disassociates multiple code repositories from an Amazon Inspector code security scan configuration.
601 602 603 604 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 601 def batch_disassociate_code_security_scan_configuration(params = {}, = {}) req = build_request(:batch_disassociate_code_security_scan_configuration, params) req.send_request() end |
#batch_get_account_status(params = {}) ⇒ Types::BatchGetAccountStatusResponse
Retrieves the Amazon Inspector status of multiple Amazon Web Services accounts within your environment.
661 662 663 664 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 661 def batch_get_account_status(params = {}, = {}) req = build_request(:batch_get_account_status, params) req.send_request() end |
#batch_get_code_snippet(params = {}) ⇒ Types::BatchGetCodeSnippetResponse
Retrieves code snippets from findings that Amazon Inspector detected code vulnerabilities in.
705 706 707 708 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 705 def batch_get_code_snippet(params = {}, = {}) req = build_request(:batch_get_code_snippet, params) req.send_request() end |
#batch_get_finding_details(params = {}) ⇒ Types::BatchGetFindingDetailsResponse
Gets vulnerability details for findings.
815 816 817 818 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 815 def batch_get_finding_details(params = {}, = {}) req = build_request(:batch_get_finding_details, params) req.send_request() end |
#batch_get_free_trial_info(params = {}) ⇒ Types::BatchGetFreeTrialInfoResponse
Gets free trial status for multiple Amazon Web Services accounts.
855 856 857 858 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 855 def batch_get_free_trial_info(params = {}, = {}) req = build_request(:batch_get_free_trial_info, params) req.send_request() end |
#batch_get_member_ec2_deep_inspection_status(params = {}) ⇒ Types::BatchGetMemberEc2DeepInspectionStatusResponse
Retrieves Amazon Inspector deep inspection activation status of multiple member accounts within your organization. You must be the delegated administrator of an organization in Amazon Inspector to use this API.
895 896 897 898 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 895 def batch_get_member_ec2_deep_inspection_status(params = {}, = {}) req = build_request(:batch_get_member_ec2_deep_inspection_status, params) req.send_request() end |
#batch_update_member_ec2_deep_inspection_status(params = {}) ⇒ Types::BatchUpdateMemberEc2DeepInspectionStatusResponse
Activates or deactivates Amazon Inspector deep inspection for the provided member accounts in your organization. You must be the delegated administrator of an organization in Amazon Inspector to use this API.
940 941 942 943 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 940 def batch_update_member_ec2_deep_inspection_status(params = {}, = {}) req = build_request(:batch_update_member_ec2_deep_inspection_status, params) req.send_request() end |
#cancel_findings_report(params = {}) ⇒ Types::CancelFindingsReportResponse
Cancels the given findings report.
968 969 970 971 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 968 def cancel_findings_report(params = {}, = {}) req = build_request(:cancel_findings_report, params) req.send_request() end |
#cancel_sbom_export(params = {}) ⇒ Types::CancelSbomExportResponse
Cancels a software bill of materials (SBOM) report.
996 997 998 999 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 996 def cancel_sbom_export(params = {}, = {}) req = build_request(:cancel_sbom_export, params) req.send_request() end |
#create_cis_scan_configuration(params = {}) ⇒ Types::CreateCisScanConfigurationResponse
Creates a CIS scan configuration.
1102 1103 1104 1105 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 1102 def create_cis_scan_configuration(params = {}, = {}) req = build_request(:create_cis_scan_configuration, params) req.send_request() end |
#create_code_security_integration(params = {}) ⇒ Types::CreateCodeSecurityIntegrationResponse
Creates a code security integration with a source code repository provider.
After calling the CreateCodeSecurityIntegration operation, you
complete authentication and authorization with your provider. Next you
call the UpdateCodeSecurityIntegration operation to provide the
details to complete the integration setup
1159 1160 1161 1162 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 1159 def create_code_security_integration(params = {}, = {}) req = build_request(:create_code_security_integration, params) req.send_request() end |
#create_code_security_scan_configuration(params = {}) ⇒ Types::CreateCodeSecurityScanConfigurationResponse
Creates a scan configuration for code security scanning.
1223 1224 1225 1226 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 1223 def create_code_security_scan_configuration(params = {}, = {}) req = build_request(:create_code_security_scan_configuration, params) req.send_request() end |
#create_connector(params = {}) ⇒ Types::CreateConnectorResponse
Creates a connector that links an external cloud provider to Amazon Inspector for vulnerability scanning.
1335 1336 1337 1338 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 1335 def create_connector(params = {}, = {}) req = build_request(:create_connector, params) req.send_request() end |
#create_filter(params = {}) ⇒ Types::CreateFilterResponse
Creates a filter resource using specified filter criteria. When the
filter action is set to SUPPRESS this action creates a suppression
rule.
1812 1813 1814 1815 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 1812 def create_filter(params = {}, = {}) req = build_request(:create_filter, params) req.send_request() end |
#create_findings_report(params = {}) ⇒ Types::CreateFindingsReportResponse
Creates a finding report. By default only ACTIVE findings are
returned in the report. To see SUPRESSED or CLOSED findings you
must specify a value for the findingStatus filter criteria.
2276 2277 2278 2279 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 2276 def create_findings_report(params = {}, = {}) req = build_request(:create_findings_report, params) req.send_request() end |
#create_sbom_export(params = {}) ⇒ Types::CreateSbomExportResponse
Creates a software bill of materials (SBOM) report.
2369 2370 2371 2372 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 2369 def create_sbom_export(params = {}, = {}) req = build_request(:create_sbom_export, params) req.send_request() end |
#delete_cis_scan_configuration(params = {}) ⇒ Types::DeleteCisScanConfigurationResponse
Deletes a CIS scan configuration.
2409 2410 2411 2412 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 2409 def delete_cis_scan_configuration(params = {}, = {}) req = build_request(:delete_cis_scan_configuration, params) req.send_request() end |
#delete_code_security_integration(params = {}) ⇒ Types::DeleteCodeSecurityIntegrationResponse
Deletes a code security integration.
2438 2439 2440 2441 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 2438 def delete_code_security_integration(params = {}, = {}) req = build_request(:delete_code_security_integration, params) req.send_request() end |
#delete_code_security_scan_configuration(params = {}) ⇒ Types::DeleteCodeSecurityScanConfigurationResponse
Deletes a code security scan configuration.
2466 2467 2468 2469 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 2466 def delete_code_security_scan_configuration(params = {}, = {}) req = build_request(:delete_code_security_scan_configuration, params) req.send_request() end |
#delete_connector(params = {}) ⇒ Struct
Deletes a connector from your account.
2499 2500 2501 2502 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 2499 def delete_connector(params = {}, = {}) req = build_request(:delete_connector, params) req.send_request() end |
#delete_filter(params = {}) ⇒ Types::DeleteFilterResponse
Deletes a filter resource.
2527 2528 2529 2530 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 2527 def delete_filter(params = {}, = {}) req = build_request(:delete_filter, params) req.send_request() end |
#describe_organization_configuration(params = {}) ⇒ Types::DescribeOrganizationConfigurationResponse
Describe Amazon Inspector configuration settings for an Amazon Web Services organization.
2553 2554 2555 2556 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 2553 def describe_organization_configuration(params = {}, = {}) req = build_request(:describe_organization_configuration, params) req.send_request() end |
#disable(params = {}) ⇒ Types::DisableResponse
Disables Amazon Inspector scans for one or more Amazon Web Services accounts. Disabling all scan types in an account disables the Amazon Inspector service.
2606 2607 2608 2609 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 2606 def disable(params = {}, = {}) req = build_request(:disable, params) req.send_request() end |
#disable_delegated_admin_account(params = {}) ⇒ Types::DisableDelegatedAdminAccountResponse
Disables the Amazon Inspector delegated administrator for your organization.
2636 2637 2638 2639 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 2636 def disable_delegated_admin_account(params = {}, = {}) req = build_request(:disable_delegated_admin_account, params) req.send_request() end |
#disassociate_member(params = {}) ⇒ Types::DisassociateMemberResponse
Disassociates a member account from an Amazon Inspector delegated administrator.
2666 2667 2668 2669 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 2666 def disassociate_member(params = {}, = {}) req = build_request(:disassociate_member, params) req.send_request() end |
#enable(params = {}) ⇒ Types::EnableResponse
Enables Amazon Inspector scans for one or more Amazon Web Services accounts.
2724 2725 2726 2727 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 2724 def enable(params = {}, = {}) req = build_request(:enable, params) req.send_request() end |
#enable_delegated_admin_account(params = {}) ⇒ Types::EnableDelegatedAdminAccountResponse
Enables the Amazon Inspector delegated administrator for your Organizations organization.
2761 2762 2763 2764 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 2761 def enable_delegated_admin_account(params = {}, = {}) req = build_request(:enable_delegated_admin_account, params) req.send_request() end |
#get_cis_scan_report(params = {}) ⇒ Types::GetCisScanReportResponse
Retrieves a CIS scan report.
2814 2815 2816 2817 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 2814 def get_cis_scan_report(params = {}, = {}) req = build_request(:get_cis_scan_report, params) req.send_request() end |
#get_cis_scan_result_details(params = {}) ⇒ Types::GetCisScanResultDetailsResponse
Retrieves CIS scan result details.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2946 2947 2948 2949 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 2946 def get_cis_scan_result_details(params = {}, = {}) req = build_request(:get_cis_scan_result_details, params) req.send_request() end |
#get_clusters_for_image(params = {}) ⇒ Types::GetClustersForImageResponse
Returns a list of clusters and metadata associated with an image.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3001 3002 3003 3004 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 3001 def get_clusters_for_image(params = {}, = {}) req = build_request(:get_clusters_for_image, params) req.send_request() end |
#get_code_security_integration(params = {}) ⇒ Types::GetCodeSecurityIntegrationResponse
Retrieves information about a code security integration.
3053 3054 3055 3056 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 3053 def get_code_security_integration(params = {}, = {}) req = build_request(:get_code_security_integration, params) req.send_request() end |
#get_code_security_scan(params = {}) ⇒ Types::GetCodeSecurityScanResponse
Retrieves information about a specific code security scan.
3101 3102 3103 3104 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 3101 def get_code_security_scan(params = {}, = {}) req = build_request(:get_code_security_scan, params) req.send_request() end |
#get_code_security_scan_configuration(params = {}) ⇒ Types::GetCodeSecurityScanConfigurationResponse
Retrieves information about a code security scan configuration.
3149 3150 3151 3152 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 3149 def get_code_security_scan_configuration(params = {}, = {}) req = build_request(:get_code_security_scan_configuration, params) req.send_request() end |
#get_configuration(params = {}) ⇒ Types::GetConfigurationResponse
Retrieves setting configurations for Amazon Inspector scans. If you
specify an accountId, this operation returns the scan configuration
for that member account. You must be the delegated administrator for
the specified member account. If you do not specify an accountId,
this operation returns your own scan configuration.
3194 3195 3196 3197 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 3194 def get_configuration(params = {}, = {}) req = build_request(:get_configuration, params) req.send_request() end |
#get_delegated_admin_account(params = {}) ⇒ Types::GetDelegatedAdminAccountResponse
Retrieves information about the Amazon Inspector delegated administrator for your organization.
3215 3216 3217 3218 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 3215 def get_delegated_admin_account(params = {}, = {}) req = build_request(:get_delegated_admin_account, params) req.send_request() end |
#get_ec2_deep_inspection_configuration(params = {}) ⇒ Types::GetEc2DeepInspectionConfigurationResponse
Retrieves the activation status of Amazon Inspector deep inspection and custom paths associated with your account.
3243 3244 3245 3246 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 3243 def get_ec2_deep_inspection_configuration(params = {}, = {}) req = build_request(:get_ec2_deep_inspection_configuration, params) req.send_request() end |
#get_encryption_key(params = {}) ⇒ Types::GetEncryptionKeyResponse
Gets an encryption key.
3275 3276 3277 3278 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 3275 def get_encryption_key(params = {}, = {}) req = build_request(:get_encryption_key, params) req.send_request() end |
#get_findings_report_status(params = {}) ⇒ Types::GetFindingsReportStatusResponse
Gets the status of a findings report.
3524 3525 3526 3527 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 3524 def get_findings_report_status(params = {}, = {}) req = build_request(:get_findings_report_status, params) req.send_request() end |
#get_member(params = {}) ⇒ Types::GetMemberResponse
Gets member information for your organization.
3556 3557 3558 3559 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 3556 def get_member(params = {}, = {}) req = build_request(:get_member, params) req.send_request() end |
#get_sbom_export(params = {}) ⇒ Types::GetSbomExportResponse
Gets details of a software bill of materials (SBOM) report.
3623 3624 3625 3626 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 3623 def get_sbom_export(params = {}, = {}) req = build_request(:get_sbom_export, params) req.send_request() end |
#list_account_permissions(params = {}) ⇒ Types::ListAccountPermissionsResponse
Lists the permissions an account has to configure Amazon Inspector. If the account is a member account or standalone account with resources managed by an Organizations policy, the operation returns fewer permissions.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3676 3677 3678 3679 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 3676 def (params = {}, = {}) req = build_request(:list_account_permissions, params) req.send_request() end |
#list_cis_scan_configurations(params = {}) ⇒ Types::ListCisScanConfigurationsResponse
Lists CIS scan configurations.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3802 3803 3804 3805 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 3802 def list_cis_scan_configurations(params = {}, = {}) req = build_request(:list_cis_scan_configurations, params) req.send_request() end |
#list_cis_scan_results_aggregated_by_checks(params = {}) ⇒ Types::ListCisScanResultsAggregatedByChecksResponse
Lists scan results aggregated by checks.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3930 3931 3932 3933 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 3930 def list_cis_scan_results_aggregated_by_checks(params = {}, = {}) req = build_request(:list_cis_scan_results_aggregated_by_checks, params) req.send_request() end |
#list_cis_scan_results_aggregated_by_target_resource(params = {}) ⇒ Types::ListCisScanResultsAggregatedByTargetResourceResponse
Lists scan results aggregated by a target resource.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4082 4083 4084 4085 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 4082 def list_cis_scan_results_aggregated_by_target_resource(params = {}, = {}) req = build_request(:list_cis_scan_results_aggregated_by_target_resource, params) req.send_request() end |
#list_cis_scans(params = {}) ⇒ Types::ListCisScansResponse
Returns a CIS scan list.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4244 4245 4246 4247 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 4244 def list_cis_scans(params = {}, = {}) req = build_request(:list_cis_scans, params) req.send_request() end |
#list_code_security_integrations(params = {}) ⇒ Types::ListCodeSecurityIntegrationsResponse
Lists all code security integrations in your account.
4288 4289 4290 4291 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 4288 def list_code_security_integrations(params = {}, = {}) req = build_request(:list_code_security_integrations, params) req.send_request() end |
#list_code_security_scan_configuration_associations(params = {}) ⇒ Types::ListCodeSecurityScanConfigurationAssociationsResponse
Lists the associations between code repositories and Amazon Inspector code security scan configurations.
4336 4337 4338 4339 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 4336 def list_code_security_scan_configuration_associations(params = {}, = {}) req = build_request(:list_code_security_scan_configuration_associations, params) req.send_request() end |
#list_code_security_scan_configurations(params = {}) ⇒ Types::ListCodeSecurityScanConfigurationsResponse
Lists all code security scan configurations in your account.
4383 4384 4385 4386 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 4383 def list_code_security_scan_configurations(params = {}, = {}) req = build_request(:list_code_security_scan_configurations, params) req.send_request() end |
#list_connector_scan_configurations(params = {}) ⇒ Types::ListConnectorScanConfigurationsResponse
Lists scan configurations for Amazon Web Services Config connectors.
Results are paginated. Use the nextToken parameter to retrieve the
next page of results.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4463 4464 4465 4466 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 4463 def list_connector_scan_configurations(params = {}, = {}) req = build_request(:list_connector_scan_configurations, params) req.send_request() end |
#list_connectors(params = {}) ⇒ Types::ListConnectorsResponse
Lists connectors in your account. Results are paginated. Use the
nextToken parameter to retrieve the next page of results.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- connector_connected
- connector_deleted
- connector_enabled
4631 4632 4633 4634 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 4631 def list_connectors(params = {}, = {}) req = build_request(:list_connectors, params) req.send_request() end |
#list_coverage(params = {}) ⇒ Types::ListCoverageResponse
Lists coverage details for your environment.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4941 4942 4943 4944 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 4941 def list_coverage(params = {}, = {}) req = build_request(:list_coverage, params) req.send_request() end |
#list_coverage_statistics(params = {}) ⇒ Types::ListCoverageStatisticsResponse
Lists Amazon Inspector coverage statistics for your environment.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
5187 5188 5189 5190 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 5187 def list_coverage_statistics(params = {}, = {}) req = build_request(:list_coverage_statistics, params) req.send_request() end |
#list_delegated_admin_accounts(params = {}) ⇒ Types::ListDelegatedAdminAccountsResponse
Lists information about the Amazon Inspector delegated administrator of your organization.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
5234 5235 5236 5237 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 5234 def list_delegated_admin_accounts(params = {}, = {}) req = build_request(:list_delegated_admin_accounts, params) req.send_request() end |
#list_filters(params = {}) ⇒ Types::ListFiltersResponse
Lists the filters associated with your account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
5506 5507 5508 5509 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 5506 def list_filters(params = {}, = {}) req = build_request(:list_filters, params) req.send_request() end |
#list_finding_aggregations(params = {}) ⇒ Types::ListFindingAggregationsResponse
Lists aggregated finding data for your environment based on specific criteria.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
6212 6213 6214 6215 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 6212 def list_finding_aggregations(params = {}, = {}) req = build_request(:list_finding_aggregations, params) req.send_request() end |
#list_findings(params = {}) ⇒ Types::ListFindingsResponse
Lists findings for your environment.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
6857 6858 6859 6860 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 6857 def list_findings(params = {}, = {}) req = build_request(:list_findings, params) req.send_request() end |
#list_members(params = {}) ⇒ Types::ListMembersResponse
List members associated with the Amazon Inspector delegated administrator for your organization.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
6911 6912 6913 6914 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 6911 def list_members(params = {}, = {}) req = build_request(:list_members, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists all tags attached to a given resource.
6940 6941 6942 6943 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 6940 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#list_usage_totals(params = {}) ⇒ Types::ListUsageTotalsResponse
Lists the Amazon Inspector usage totals over the last 30 days.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
6995 6996 6997 6998 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 6995 def list_usage_totals(params = {}, = {}) req = build_request(:list_usage_totals, params) req.send_request() end |
#reset_encryption_key(params = {}) ⇒ Struct
Resets an encryption key. After the key is reset your resources will be encrypted by an Amazon Web Services owned key.
7022 7023 7024 7025 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7022 def reset_encryption_key(params = {}, = {}) req = build_request(:reset_encryption_key, params) req.send_request() end |
#search_vulnerabilities(params = {}) ⇒ Types::SearchVulnerabilitiesResponse
Lists Amazon Inspector coverage details for a specific vulnerability.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
7097 7098 7099 7100 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7097 def search_vulnerabilities(params = {}, = {}) req = build_request(:search_vulnerabilities, params) req.send_request() end |
#send_cis_session_health(params = {}) ⇒ Struct
Sends a CIS session health. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.
7138 7139 7140 7141 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7138 def send_cis_session_health(params = {}, = {}) req = build_request(:send_cis_session_health, params) req.send_request() end |
#send_cis_session_telemetry(params = {}) ⇒ Struct
Sends a CIS session telemetry. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.
7201 7202 7203 7204 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7201 def send_cis_session_telemetry(params = {}, = {}) req = build_request(:send_cis_session_telemetry, params) req.send_request() end |
#start_cis_session(params = {}) ⇒ Struct
Starts a CIS session. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.
7246 7247 7248 7249 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7246 def start_cis_session(params = {}, = {}) req = build_request(:start_cis_session, params) req.send_request() end |
#start_code_security_scan(params = {}) ⇒ Types::StartCodeSecurityScanResponse
Initiates a code security scan on a specified repository.
7286 7287 7288 7289 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7286 def start_code_security_scan(params = {}, = {}) req = build_request(:start_code_security_scan, params) req.send_request() end |
#stop_cis_session(params = {}) ⇒ Struct
Stops a CIS session. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to stop a CIS scan session for the scan ID supplied by the service.
7372 7373 7374 7375 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7372 def stop_cis_session(params = {}, = {}) req = build_request(:stop_cis_session, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds tags to a resource.
7400 7401 7402 7403 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7400 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes tags from a resource.
7426 7427 7428 7429 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7426 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_cis_scan_configuration(params = {}) ⇒ Types::UpdateCisScanConfigurationResponse
Updates a CIS scan configuration.
7531 7532 7533 7534 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7531 def update_cis_scan_configuration(params = {}, = {}) req = build_request(:update_cis_scan_configuration, params) req.send_request() end |
#update_code_security_integration(params = {}) ⇒ Types::UpdateCodeSecurityIntegrationResponse
Updates an existing code security integration.
After calling the CreateCodeSecurityIntegration operation, you
complete authentication and authorization with your provider. Next you
call the UpdateCodeSecurityIntegration operation to provide the
details to complete the integration setup
7580 7581 7582 7583 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7580 def update_code_security_integration(params = {}, = {}) req = build_request(:update_code_security_integration, params) req.send_request() end |
#update_code_security_scan_configuration(params = {}) ⇒ Types::UpdateCodeSecurityScanConfigurationResponse
Updates an existing code security scan configuration.
7621 7622 7623 7624 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7621 def update_code_security_scan_configuration(params = {}, = {}) req = build_request(:update_code_security_scan_configuration, params) req.send_request() end |
#update_configuration(params = {}) ⇒ Struct
Updates the scan configuration for your Amazon Inspector account. If
you don't specify an accountId, this operation updates the
delegated administrator's configuration and propagates it to member
accounts that have not been individually configured. If you specify an
accountId, this operation updates that member account's
configuration. Only the delegated administrator can specify an
accountId; member accounts cannot call this operation.
7684 7685 7686 7687 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7684 def update_configuration(params = {}, = {}) req = build_request(:update_configuration, params) req.send_request() end |
#update_connector(params = {}) ⇒ Types::UpdateConnectorResponse
Updates the description or provider-specific configuration details of an existing connector.
7760 7761 7762 7763 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7760 def update_connector(params = {}, = {}) req = build_request(:update_connector, params) req.send_request() end |
#update_connector_scan_configuration(params = {}) ⇒ Struct
Updates scan configuration settings for resources associated with an Amazon Web Services Config connector.
7809 7810 7811 7812 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7809 def update_connector_scan_configuration(params = {}, = {}) req = build_request(:update_connector_scan_configuration, params) req.send_request() end |
#update_ec2_deep_inspection_configuration(params = {}) ⇒ Types::UpdateEc2DeepInspectionConfigurationResponse
Activates, deactivates Amazon Inspector deep inspection, or updates custom paths for your account.
7859 7860 7861 7862 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7859 def update_ec2_deep_inspection_configuration(params = {}, = {}) req = build_request(:update_ec2_deep_inspection_configuration, params) req.send_request() end |
#update_encryption_key(params = {}) ⇒ Struct
Updates an encryption key. A ResourceNotFoundException means that an
Amazon Web Services owned key is being used for encryption.
7890 7891 7892 7893 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7890 def update_encryption_key(params = {}, = {}) req = build_request(:update_encryption_key, params) req.send_request() end |
#update_filter(params = {}) ⇒ Types::UpdateFilterResponse
Specifies the action that is to be applied to the findings that match the filter.
8362 8363 8364 8365 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 8362 def update_filter(params = {}, = {}) req = build_request(:update_filter, params) req.send_request() end |
#update_org_ec2_deep_inspection_configuration(params = {}) ⇒ Struct
Updates the Amazon Inspector deep inspection custom paths for your organization. You must be an Amazon Inspector delegated administrator to use this API.
8387 8388 8389 8390 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 8387 def update_org_ec2_deep_inspection_configuration(params = {}, = {}) req = build_request(:update_org_ec2_deep_inspection_configuration, params) req.send_request() end |
#update_organization_configuration(params = {}) ⇒ Types::UpdateOrganizationConfigurationResponse
Updates the configurations for your Amazon Inspector organization.
8426 8427 8428 8429 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 8426 def update_organization_configuration(params = {}, = {}) req = build_request(:update_organization_configuration, params) req.send_request() end |
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
Basic Usage
A waiter will call an API operation until:
- It is successful
- It enters a terminal state
- It makes the maximum number of attempts
In between attempts, the waiter will sleep.
# polls in a loop, sleeping between attempts
client.wait_until(waiter_name, params)
Configuration
You can configure the maximum number of polling attempts, and the delay (in seconds) between each polling attempt. You can pass configuration as the final arguments hash.
# poll for ~25 seconds
client.wait_until(waiter_name, params, {
max_attempts: 5,
delay: 5,
})
Callbacks
You can be notified before each polling attempt and before each
delay. If you throw :success or :failure from these callbacks,
it will terminate the waiter.
started_at = Time.now
client.wait_until(waiter_name, params, {
# disable max attempts
max_attempts: nil,
# poll for 1 hour, instead of a number of attempts
before_wait: -> (attempts, response) do
throw :failure if Time.now - started_at > 3600
end
})
Handling Errors
When a waiter is unsuccessful, it will raise an error. All of the failure errors extend from Waiters::Errors::WaiterFailed.
begin
client.wait_until(...)
rescue Aws::Waiters::Errors::WaiterFailed
# resource did not enter the desired state in time
end
Valid Waiters
The following table lists the valid waiter names, the operations they call,
and the default :delay and :max_attempts values.
| waiter_name | params | :delay | :max_attempts |
|---|---|---|---|
| connector_connected | #list_connectors | 30 | 5 |
| connector_deleted | #list_connectors | 30 | 5 |
| connector_enabled | #list_connectors | 30 | 5 |
8543 8544 8545 8546 8547 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 8543 def wait_until(waiter_name, params = {}, = {}) w = waiter(waiter_name, ) yield(w.waiter) if block_given? # deprecated w.wait(params) end |