Class: Aws::Continuum::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Continuum::Client
- Includes:
- Aws::ClientStubs
- Defined in:
- gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb
Overview
An API client for Continuum. To construct a client, you need to configure a :region and :credentials.
client = Aws::Continuum::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_collector(params = {}) ⇒ Types::AssociateCollectorOutput
Associates one Collector with this Environment and configures the customer role Continuum uses to authorize access to associated Collector data.
-
#create_code_finding(params = {}) ⇒ Types::CreateCodeFindingOutput
Ingests a customer-supplied security finding into an environment.
-
#create_code_scan(params = {}) ⇒ Types::CreateCodeScanOutput
Creates an explicit scan request for one environment.
-
#create_collector(params = {}) ⇒ Types::CreateCollectorOutput
Creates the Collector for the caller's account.
-
#create_environment(params = {}) ⇒ Types::CreateEnvironmentOutput
Creates an environment and starts its validation and any requested provisioning.
-
#create_integration(params = {}) ⇒ Types::CreateIntegrationOutput
Creates a Continuum Integration.
-
#create_package_decision(params = {}) ⇒ Types::CreatePackageDecisionResponse
Evaluates one package against the service-managed malicious-package baseline and the calling account's policies, and records an immutable decision.
-
#create_supply_chain_policy(params = {}) ⇒ Types::CreateSupplyChainPolicyResponse
Creates a Supply Chain policy in the calling account and Region.
-
#create_supply_chain_policy_exception(params = {}) ⇒ Types::CreateSupplyChainPolicyExceptionResponse
Creates a policy exception that suppresses specific rules of one policy, customer-managed or service-managed, for packages that match a package identity, until the exception expires.
-
#delete_collector(params = {}) ⇒ Struct
Deletes the Collector for the caller's account.
-
#delete_environment(params = {}) ⇒ Struct
Deletes an environment and its associated resources.
-
#delete_integration(params = {}) ⇒ Struct
Deletes a Continuum integration owned by the forwarded customer account.
-
#delete_supply_chain_policy(params = {}) ⇒ Struct
Deletes a policy and every policy exception that references it.
-
#delete_supply_chain_policy_exception(params = {}) ⇒ Struct
Deletes a policy exception.
-
#disassociate_collector(params = {}) ⇒ Struct
Removes one Collector association from this Environment, preserving its other associations.
-
#get_code_finding(params = {}) ⇒ Types::GetCodeFindingOutput
Retrieves the current state and details of a finding.
-
#get_code_issue(params = {}) ⇒ Types::GetCodeIssueOutput
Retrieves the current state and details of an issue.
-
#get_code_issue_artifact(params = {}) ⇒ Types::GetCodeIssueArtifactOutput
Retrieves one immutable artifact attached to an issue, including its content.
-
#get_code_scan(params = {}) ⇒ Types::GetCodeScanOutput
Retrieves one customer-visible environment scan.
-
#get_collector(params = {}) ⇒ Types::GetCollectorOutput
Retrieves the current state of the Collector for the caller's account.
-
#get_collector_data_access_authorization(params = {}) ⇒ Struct
Authorizes an Environment's access to a Collector's data.
-
#get_environment(params = {}) ⇒ Types::GetEnvironmentOutput
Retrieves the current state and configuration of an environment.
-
#get_integration(params = {}) ⇒ Types::GetIntegrationOutput
Reads a Continuum integration owned by the forwarded customer account.
-
#get_package_decision(params = {}) ⇒ Types::GetPackageDecisionResponse
Returns one package decision owned by the calling account.
-
#get_resource_policy(params = {}) ⇒ Types::GetResourcePolicyOutput
Retrieves the resource policy attached to a Continuum resource.
-
#get_supply_chain_managed_policy(params = {}) ⇒ Types::GetSupplyChainManagedPolicyResponse
Returns one read-only policy created and managed by an AWS service, such as the malicious-package baseline.
-
#get_supply_chain_policy(params = {}) ⇒ Types::GetSupplyChainPolicyResponse
Returns one policy owned by the calling account.
-
#get_supply_chain_policy_exception(params = {}) ⇒ Types::GetSupplyChainPolicyExceptionResponse
Returns one policy exception owned by the calling account, with its status computed from expiresAt.
-
#get_vulnerability(params = {}) ⇒ Types::GetVulnerabilityResponse
Returns metadata for one vulnerability ID, such as an ID from MandatoryBaselineEvidence.vulnerabilityIds.
-
#list_associated_collectors(params = {}) ⇒ Types::ListAssociatedCollectorsOutput
Lists the Collectors currently associated with one Environment in ascending collectorId order.
-
#list_associated_environments(params = {}) ⇒ Types::ListAssociatedEnvironmentsOutput
Lists the Environments currently associated with one Collector in lexicographically ascending environmentArn order.
-
#list_code_findings(params = {}) ⇒ Types::ListCodeFindingsOutput
Lists the findings in an environment in descending findingId order.
-
#list_code_issue_artifacts(params = {}) ⇒ Types::ListCodeIssueArtifactsOutput
Lists the artifacts attached to an issue in descending artifactId order.
-
#list_code_issues(params = {}) ⇒ Types::ListCodeIssuesOutput
Lists the issues in an environment in descending issueId order.
-
#list_code_scans(params = {}) ⇒ Types::ListCodeScansOutput
Lists customer-visible scans for one environment in descending scanRunId order.
-
#list_collectors(params = {}) ⇒ Types::ListCollectorsOutput
Lists the Collectors owned by the authenticated caller's account, including a Collector whose deletion is in progress.
-
#list_decision_evidence(params = {}) ⇒ Types::ListDecisionEvidenceResponse
Returns the immutable evidence recorded for one decision: which baseline, rules, and policy exceptions applied to the package.
-
#list_environments(params = {}) ⇒ Types::ListEnvironmentsOutput
Lists all environments in your account in descending environmentId order.
-
#list_integrations(params = {}) ⇒ Types::ListIntegrationsOutput
Lists Continuum integrations owned by the forwarded customer account.
-
#list_package_decisions(params = {}) ⇒ Types::ListPackageDecisionsResponse
Lists the package decisions made for the calling account, newest first by completedAt.
-
#list_supply_chain_policies(params = {}) ⇒ Types::ListSupplyChainPoliciesResponse
Lists customer-managed and service-managed policies visible to the calling account in the current Region.
-
#list_supply_chain_policy_exceptions(params = {}) ⇒ Types::ListSupplyChainPolicyExceptionsResponse
Lists policy exceptions owned by the calling account in the current Region.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceOutput
Returns the tags on a Continuum resource.
-
#put_resource_policy(params = {}) ⇒ Types::PutResourcePolicyOutput
Creates or replaces the resource policy attached to a Continuum resource.
-
#start_integration_authorization(params = {}) ⇒ Types::StartIntegrationAuthorizationOutput
Starts an OAuth authorization for a new Continuum integration.
-
#tag_resource(params = {}) ⇒ Struct
Adds tags to a Continuum resource, or changes the values of tags that it already has.
-
#untag_resource(params = {}) ⇒ Struct
Removes tags from a Continuum resource.
-
#update_collector(params = {}) ⇒ Types::UpdateCollectorOutput
Updates the customer-controlled mutable properties of a Collector.
-
#update_environment(params = {}) ⇒ Types::UpdateEnvironmentOutput
Updates the customer-controlled mutable properties of an environment.
-
#update_integration(params = {}) ⇒ Types::UpdateIntegrationOutput
Updates a Continuum integration.
-
#update_supply_chain_policy(params = {}) ⇒ Types::UpdateSupplyChainPolicyResponse
Updates an existing policy.
-
#update_supply_chain_policy_exception(params = {}) ⇒ Types::UpdateSupplyChainPolicyExceptionResponse
Replaces the mutable fields of an active policy exception: the rules it suppresses, the package it applies to, the justification, and the expiry time.
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 Aws::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.
479 480 481 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 479 def initialize(*args) super end |
Instance Method Details
#associate_collector(params = {}) ⇒ Types::AssociateCollectorOutput
Associates one Collector with this Environment and configures the customer role Continuum uses to authorize access to associated Collector data. The caller must have permission on the Environment and permission to pass the role. Continuum assumes the supplied role and calls GetCollectorDataAccessAuthorization on the requested Collector; only a successful authorization response permits the association. The caller does not need Collector data-access permission. The Environment retains its other Collector associations. Calling again with an existing association is safe and does not create a duplicate.
549 550 551 552 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 549 def associate_collector(params = {}, = {}) req = build_request(:associate_collector, params) req.send_request() end |
#create_code_finding(params = {}) ⇒ Types::CreateCodeFindingOutput
Ingests a customer-supplied security finding into an environment. Continuum validates the document synchronously against the required overlay fields for the declared format; invalid documents are rejected with a ValidationException. The maximum accepted document size is 256 KB. The environment must have a source configured, and the finding must identify a code location so Continuum can tie it to a repository in the environment's build. Continuum assigns a findingId and stores the verbatim document. When no successful build yet contains the finding's repository, the finding stays SUBMITTED until the next successful build; if that build does not contain it either, the finding is DISCARDED with discardReason SOURCE_REPO_NOT_FOUND.
623 624 625 626 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 623 def create_code_finding(params = {}, = {}) req = build_request(:create_code_finding, params) req.send_request() end |
#create_code_scan(params = {}) ⇒ Types::CreateCodeScanOutput
Creates an explicit scan request for one environment. CP creates durable work before any queue delivery occurs.
Retrying a request that succeeded, with the same clientToken on the same environment, returns the original scan instead of starting another one. Token handling is not yet atomic: requests with the same token that run at the same time, or a retry after a request that failed partway through, can leave an additional scan, which may end in the FAILED state with a message that it was superseded. Deleting the environment makes its tokens unusable; a later request with one of them returns ResourceNotFoundException.
Each environment can have a limited number of scans in progress at the same time. Once that limit is enforced, a request that would exceed it returns ServiceQuotaExceededException; wait for a scan to finish (ListCodeScans shows each scan's status), then retry.
691 692 693 694 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 691 def create_code_scan(params = {}, = {}) req = build_request(:create_code_scan, params) req.send_request() end |
#create_collector(params = {}) ⇒ Types::CreateCollectorOutput
Creates the Collector for the caller's account. Provisions an AWS Config service-linked recorder using the caller's federated access session and begins recording infrastructure changes.
746 747 748 749 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 746 def create_collector(params = {}, = {}) req = build_request(:create_collector, params) req.send_request() end |
#create_environment(params = {}) ⇒ Types::CreateEnvironmentOutput
Creates an environment and starts its validation and any requested provisioning. Storage provisioning and dependency checks may continue after the initial 201 response; use GetEnvironment to observe completion.
818 819 820 821 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 818 def create_environment(params = {}, = {}) req = build_request(:create_environment, params) req.send_request() end |
#create_integration(params = {}) ⇒ Types::CreateIntegrationOutput
Creates a Continuum Integration. The ContinuumControlPlane adapter Lambda forwards the API Gateway event (customer identity + FAS) to HoFES, which executes this operation.
903 904 905 906 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 903 def create_integration(params = {}, = {}) req = build_request(:create_integration, params) req.send_request() end |
#create_package_decision(params = {}) ⇒ Types::CreatePackageDecisionResponse
Evaluates one package against the service-managed malicious-package baseline and the calling account's policies, and records an immutable decision. Call it before installing a package to learn whether to allow or deny it.
956 957 958 959 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 956 def create_package_decision(params = {}, = {}) req = build_request(:create_package_decision, params) req.send_request() end |
#create_supply_chain_policy(params = {}) ⇒ Types::CreateSupplyChainPolicyResponse
Creates a Supply Chain policy in the calling account and Region. A policy holds up to five deny rules, which CreatePackageDecision evaluates for every package.
1057 1058 1059 1060 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1057 def create_supply_chain_policy(params = {}, = {}) req = build_request(:create_supply_chain_policy, params) req.send_request() end |
#create_supply_chain_policy_exception(params = {}) ⇒ Types::CreateSupplyChainPolicyExceptionResponse
Creates a policy exception that suppresses specific rules of one policy, customer-managed or service-managed, for packages that match a package identity, until the exception expires. An exception never produces an allow decision on its own.
1141 1142 1143 1144 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1141 def create_supply_chain_policy_exception(params = {}, = {}) req = build_request(:create_supply_chain_policy_exception, params) req.send_request() end |
#delete_collector(params = {}) ⇒ Struct
Deletes the Collector for the caller's account. The Collector first enters PENDING_DELETION, then the service removes its schedule, AWS Config service-linked recorder, versioned S3 bucket, KMS key, and persisted record.
1166 1167 1168 1169 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1166 def delete_collector(params = {}, = {}) req = build_request(:delete_collector, params) req.send_request() end |
#delete_environment(params = {}) ⇒ Struct
Deletes an environment and its associated resources.
1188 1189 1190 1191 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1188 def delete_environment(params = {}, = {}) req = build_request(:delete_environment, params) req.send_request() end |
#delete_integration(params = {}) ⇒ Struct
Deletes a Continuum integration owned by the forwarded customer account.
1211 1212 1213 1214 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1211 def delete_integration(params = {}, = {}) req = build_request(:delete_integration, params) req.send_request() end |
#delete_supply_chain_policy(params = {}) ⇒ Struct
Deletes a policy and every policy exception that references it.
1233 1234 1235 1236 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1233 def delete_supply_chain_policy(params = {}, = {}) req = build_request(:delete_supply_chain_policy, params) req.send_request() end |
#delete_supply_chain_policy_exception(params = {}) ⇒ Struct
Deletes a policy exception. Subsequent decisions no longer consider this exception.
1256 1257 1258 1259 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1256 def delete_supply_chain_policy_exception(params = {}, = {}) req = build_request(:delete_supply_chain_policy_exception, params) req.send_request() end |
#disassociate_collector(params = {}) ⇒ Struct
Removes one Collector association from this Environment, preserving its other associations. The stored Collector data-access role is cleared when no Collector associations remain. The Environment owner must have permission to disassociate. A current Collector access grant is not required, and the Collector does not need to remain active or present, so stale or revoked associations can be cleaned up.
1288 1289 1290 1291 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1288 def disassociate_collector(params = {}, = {}) req = build_request(:disassociate_collector, params) req.send_request() end |
#get_code_finding(params = {}) ⇒ Types::GetCodeFindingOutput
Retrieves the current state and details of a finding.
1487 1488 1489 1490 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1487 def get_code_finding(params = {}, = {}) req = build_request(:get_code_finding, params) req.send_request() end |
#get_code_issue(params = {}) ⇒ Types::GetCodeIssueOutput
Retrieves the current state and details of an issue.
1561 1562 1563 1564 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1561 def get_code_issue(params = {}, = {}) req = build_request(:get_code_issue, params) req.send_request() end |
#get_code_issue_artifact(params = {}) ⇒ Types::GetCodeIssueArtifactOutput
Retrieves one immutable artifact attached to an issue, including its content.
1751 1752 1753 1754 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1751 def get_code_issue_artifact(params = {}, = {}) req = build_request(:get_code_issue_artifact, params) req.send_request() end |
#get_code_scan(params = {}) ⇒ Types::GetCodeScanOutput
Retrieves one customer-visible environment scan.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- code_scan_succeeded
1794 1795 1796 1797 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1794 def get_code_scan(params = {}, = {}) req = build_request(:get_code_scan, params) req.send_request() end |
#get_collector(params = {}) ⇒ Types::GetCollectorOutput
Retrieves the current state of the Collector for the caller's account.
1837 1838 1839 1840 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1837 def get_collector(params = {}, = {}) req = build_request(:get_collector, params) req.send_request() end |
#get_collector_data_access_authorization(params = {}) ⇒ Struct
Authorizes an Environment's access to a Collector's data. Continuum calls this operation with the Environment's Collector data-access role before it reads the Collector's inventory, so grant continuum:GetCollectorDataAccessAuthorization to that role and, for a Collector in another account, in the Collector's resource policy. The operation evaluates the action against the exact Collector ARN and the Collector's current resource policy using IAM and the caller's authenticated request context, with environmentArn as the continuum:EnvironmentArn condition key. A successful request returns HTTP 200 with no response members. If access is not granted, the operation returns AccessDeniedException without disclosing Collector existence, ownership, or the policy layer that denied access. The service does not reinterpret the policy using only an account ID.
1881 1882 1883 1884 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1881 def (params = {}, = {}) req = build_request(:get_collector_data_access_authorization, params) req.send_request() end |
#get_environment(params = {}) ⇒ Types::GetEnvironmentOutput
Retrieves the current state and configuration of an environment.
1946 1947 1948 1949 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1946 def get_environment(params = {}, = {}) req = build_request(:get_environment, params) req.send_request() end |
#get_integration(params = {}) ⇒ Types::GetIntegrationOutput
Reads a Continuum integration owned by the forwarded customer account.
1998 1999 2000 2001 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1998 def get_integration(params = {}, = {}) req = build_request(:get_integration, params) req.send_request() end |
#get_package_decision(params = {}) ⇒ Types::GetPackageDecisionResponse
Returns one package decision owned by the calling account. Never re-evaluates. Use ListDecisionEvidence to read the evidence recorded for the decision.
2042 2043 2044 2045 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2042 def get_package_decision(params = {}, = {}) req = build_request(:get_package_decision, params) req.send_request() end |
#get_resource_policy(params = {}) ⇒ Types::GetResourcePolicyOutput
Retrieves the resource policy attached to a Continuum resource.
2074 2075 2076 2077 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2074 def get_resource_policy(params = {}, = {}) req = build_request(:get_resource_policy, params) req.send_request() end |
#get_supply_chain_managed_policy(params = {}) ⇒ Types::GetSupplyChainManagedPolicyResponse
Returns one read-only policy created and managed by an AWS service, such as the malicious-package baseline. You can read a service-managed policy and create policy exceptions for it, but you can't change or delete it.
2127 2128 2129 2130 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2127 def get_supply_chain_managed_policy(params = {}, = {}) req = build_request(:get_supply_chain_managed_policy, params) req.send_request() end |
#get_supply_chain_policy(params = {}) ⇒ Types::GetSupplyChainPolicyResponse
Returns one policy owned by the calling account. The path identifier is the opaque ID returned by CreateSupplyChainPolicy.
2182 2183 2184 2185 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2182 def get_supply_chain_policy(params = {}, = {}) req = build_request(:get_supply_chain_policy, params) req.send_request() end |
#get_supply_chain_policy_exception(params = {}) ⇒ Types::GetSupplyChainPolicyExceptionResponse
Returns one policy exception owned by the calling account, with its status computed from expiresAt. The path identifier is the opaque ID returned by CreateSupplyChainPolicyException.
2234 2235 2236 2237 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2234 def get_supply_chain_policy_exception(params = {}, = {}) req = build_request(:get_supply_chain_policy_exception, params) req.send_request() end |
#get_vulnerability(params = {}) ⇒ Types::GetVulnerabilityResponse
Returns metadata for one vulnerability ID, such as an ID from MandatoryBaselineEvidence.vulnerabilityIds.
2278 2279 2280 2281 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2278 def get_vulnerability(params = {}, = {}) req = build_request(:get_vulnerability, params) req.send_request() end |
#list_associated_collectors(params = {}) ⇒ Types::ListAssociatedCollectorsOutput
Lists the Collectors currently associated with one Environment in ascending collectorId order. Each entry carries the Collector ARN, so a listed association can be passed straight to DisassociateCollector, including when the Collector belongs to another account. An association recorded before Continuum persisted the ARN is omitted from the response, because without the ARN it cannot be acted on.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2325 2326 2327 2328 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2325 def list_associated_collectors(params = {}, = {}) req = build_request(:list_associated_collectors, params) req.send_request() end |
#list_associated_environments(params = {}) ⇒ Types::ListAssociatedEnvironmentsOutput
Lists the Environments currently associated with one Collector in lexicographically ascending environmentArn order. The ARN identifies each Environment across accounts within the Collector's Region.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2372 2373 2374 2375 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2372 def list_associated_environments(params = {}, = {}) req = build_request(:list_associated_environments, params) req.send_request() end |
#list_code_findings(params = {}) ⇒ Types::ListCodeFindingsOutput
Lists the findings in an environment in descending findingId order.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2435 2436 2437 2438 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2435 def list_code_findings(params = {}, = {}) req = build_request(:list_code_findings, params) req.send_request() end |
#list_code_issue_artifacts(params = {}) ⇒ Types::ListCodeIssueArtifactsOutput
Lists the artifacts attached to an issue in descending artifactId order. Content is returned by GetCodeIssueArtifact.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2492 2493 2494 2495 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2492 def list_code_issue_artifacts(params = {}, = {}) req = build_request(:list_code_issue_artifacts, params) req.send_request() end |
#list_code_issues(params = {}) ⇒ Types::ListCodeIssuesOutput
Lists the issues in an environment in descending issueId order.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2545 2546 2547 2548 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2545 def list_code_issues(params = {}, = {}) req = build_request(:list_code_issues, params) req.send_request() end |
#list_code_scans(params = {}) ⇒ Types::ListCodeScansOutput
Lists customer-visible scans for one environment in descending scanRunId order.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2593 2594 2595 2596 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2593 def list_code_scans(params = {}, = {}) req = build_request(:list_code_scans, params) req.send_request() end |
#list_collectors(params = {}) ⇒ Types::ListCollectorsOutput
Lists the Collectors owned by the authenticated caller's account, including a Collector whose deletion is in progress. A Collector that is still being created is omitted. The account-scoped Collector quota currently permits at most one result, so no result ordering applies.
2620 2621 2622 2623 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2620 def list_collectors(params = {}, = {}) req = build_request(:list_collectors, params) req.send_request() end |
#list_decision_evidence(params = {}) ⇒ Types::ListDecisionEvidenceResponse
Returns the immutable evidence recorded for one decision: which baseline, rules, and policy exceptions applied to the package. Never re-evaluates.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2673 2674 2675 2676 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2673 def list_decision_evidence(params = {}, = {}) req = build_request(:list_decision_evidence, params) req.send_request() end |
#list_environments(params = {}) ⇒ Types::ListEnvironmentsOutput
Lists all environments in your account in descending environmentId order. This complete-inventory operation intentionally has no response filters; see the input documentation for the API standards justification.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2718 2719 2720 2721 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2718 def list_environments(params = {}, = {}) req = build_request(:list_environments, params) req.send_request() end |
#list_integrations(params = {}) ⇒ Types::ListIntegrationsOutput
Lists Continuum integrations owned by the forwarded customer account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2770 2771 2772 2773 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2770 def list_integrations(params = {}, = {}) req = build_request(:list_integrations, params) req.send_request() end |
#list_package_decisions(params = {}) ⇒ Types::ListPackageDecisionsResponse
Lists the package decisions made for the calling account, newest first by completedAt. Decisions are retained for 45 days.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2824 2825 2826 2827 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2824 def list_package_decisions(params = {}, = {}) req = build_request(:list_package_decisions, params) req.send_request() end |
#list_supply_chain_policies(params = {}) ⇒ Types::ListSupplyChainPoliciesResponse
Lists customer-managed and service-managed policies visible to the calling account in the current Region.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2878 2879 2880 2881 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2878 def list_supply_chain_policies(params = {}, = {}) req = build_request(:list_supply_chain_policies, params) req.send_request() end |
#list_supply_chain_policy_exceptions(params = {}) ⇒ Types::ListSupplyChainPolicyExceptionsResponse
Lists policy exceptions owned by the calling account in the current Region.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2926 2927 2928 2929 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2926 def list_supply_chain_policy_exceptions(params = {}, = {}) req = build_request(:list_supply_chain_policy_exceptions, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceOutput
Returns the tags on a Continuum resource.
2955 2956 2957 2958 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2955 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#put_resource_policy(params = {}) ⇒ Types::PutResourcePolicyOutput
Creates or replaces the resource policy attached to a Continuum resource.
3001 3002 3003 3004 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 3001 def put_resource_policy(params = {}, = {}) req = build_request(:put_resource_policy, params) req.send_request() end |
#start_integration_authorization(params = {}) ⇒ Types::StartIntegrationAuthorizationOutput
Starts an OAuth authorization for a new Continuum integration. Returns
a server-stored OAuth state nonce and the PKCE code challenge for
the matching code verifier HoFES retains. The caller sends the state
and code challenge to the provider's authorize endpoint;
CreateIntegration redeems the authorization code with the matching
state.
3046 3047 3048 3049 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 3046 def (params = {}, = {}) req = build_request(:start_integration_authorization, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds tags to a Continuum resource, or changes the values of tags that it already has. Tags that the request doesn't name stay as they are.
3075 3076 3077 3078 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 3075 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes tags from a Continuum resource. A key that the resource doesn't have is ignored.
3102 3103 3104 3105 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 3102 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_collector(params = {}) ⇒ Types::UpdateCollectorOutput
Updates the customer-controlled mutable properties of a Collector. Only the name and Kubernetes cluster IAM role can be changed.
3163 3164 3165 3166 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 3163 def update_collector(params = {}, = {}) req = build_request(:update_collector, params) req.send_request() end |
#update_environment(params = {}) ⇒ Types::UpdateEnvironmentOutput
Updates the customer-controlled mutable properties of an environment. Only the name, the environment's S3 integration source and repository selections, its scan frequency, its network policy, its patch creation policy, its focus mode, and its pentest configuration can be changed.
3268 3269 3270 3271 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 3268 def update_environment(params = {}, = {}) req = build_request(:update_environment, params) req.send_request() end |
#update_integration(params = {}) ⇒ Types::UpdateIntegrationOutput
Updates a Continuum integration. Only S3 integrations can be updated today; GitHub integrations cannot be modified. The integration's name, provider type, and bucket remain fixed.
3327 3328 3329 3330 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 3327 def update_integration(params = {}, = {}) req = build_request(:update_integration, params) req.send_request() end |
#update_supply_chain_policy(params = {}) ⇒ Types::UpdateSupplyChainPolicyResponse
Updates an existing policy. You can change the description, add rules, and change rules that have no active policy exception. The name can't be changed, existing rules can't be removed, and rules with an active policy exception can't be changed until the exception expires or is deleted. The policy's ID, ARN, and tags don't change.
3415 3416 3417 3418 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 3415 def update_supply_chain_policy(params = {}, = {}) req = build_request(:update_supply_chain_policy, params) req.send_request() end |
#update_supply_chain_policy_exception(params = {}) ⇒ Types::UpdateSupplyChainPolicyExceptionResponse
Replaces the mutable fields of an active policy exception: the rules it suppresses, the package it applies to, the justification, and the expiry time. The name and the referenced policy can't be changed, and an expired exception can't be updated. The exception's ID, ARN, and tags don't change.
3483 3484 3485 3486 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 3483 def update_supply_chain_policy_exception(params = {}, = {}) req = build_request(:update_supply_chain_policy_exception, 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 |
|---|---|---|---|
| code_scan_succeeded | #get_code_scan | 60 | 480 |
3598 3599 3600 3601 3602 |
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 3598 def wait_until(waiter_name, params = {}, = {}) w = waiter(waiter_name, ) yield(w.waiter) if block_given? # deprecated w.wait(params) end |