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.
4290 4291 4292 4293 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 4290 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.
4338 4339 4340 4341 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 4338 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.
4387 4388 4389 4390 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 4387 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.
4467 4468 4469 4470 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 4467 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
4635 4636 4637 4638 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 4635 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.
4945 4946 4947 4948 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 4945 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.
5191 5192 5193 5194 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 5191 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.
5238 5239 5240 5241 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 5238 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.
5510 5511 5512 5513 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 5510 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.
6216 6217 6218 6219 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 6216 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.
6861 6862 6863 6864 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 6861 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.
6915 6916 6917 6918 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 6915 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.
6944 6945 6946 6947 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 6944 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.
6999 7000 7001 7002 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 6999 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.
7026 7027 7028 7029 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7026 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.
7101 7102 7103 7104 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7101 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.
7142 7143 7144 7145 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7142 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.
7205 7206 7207 7208 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7205 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.
7250 7251 7252 7253 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7250 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.
7290 7291 7292 7293 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7290 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.
7376 7377 7378 7379 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7376 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.
7404 7405 7406 7407 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7404 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes tags from a resource.
7430 7431 7432 7433 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7430 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.
7535 7536 7537 7538 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7535 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
7584 7585 7586 7587 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7584 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.
7625 7626 7627 7628 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7625 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.
7688 7689 7690 7691 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7688 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.
7764 7765 7766 7767 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7764 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.
7813 7814 7815 7816 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7813 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.
7863 7864 7865 7866 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7863 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.
7894 7895 7896 7897 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 7894 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.
8366 8367 8368 8369 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 8366 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.
8391 8392 8393 8394 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 8391 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.
8430 8431 8432 8433 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 8430 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 |
8547 8548 8549 8550 8551 |
# File 'gems/aws-sdk-inspector2/lib/aws-sdk-inspector2/client.rb', line 8547 def wait_until(waiter_name, params = {}, = {}) w = waiter(waiter_name, ) yield(w.waiter) if block_given? # deprecated w.wait(params) end |