Class: Aws::Continuum::Client

Inherits:
Seahorse::Client::Base show all
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

#config, #handlers

API Operations collapse

Instance Method Summary collapse

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.

Parameters:

  • options (Hash)

Options Hash (options):

  • :plugins (Array<Seahorse::Client::Plugin>) — default: []] —

    A list of plugins to apply to the client. Each plugin is either a class name or an instance of a plugin class.

  • :credentials (required, Aws::CredentialProvider) —

    Your AWS credentials used for authentication. This can be any class that includes and implements Aws::CredentialProvider, or instance of any one of the following classes:

    • Aws::Credentials - Used for configuring static, non-refreshing credentials.

    • Aws::SharedCredentials - Used for loading static credentials from a shared file, such as ~/.aws/config.

    • Aws::AssumeRoleCredentials - Used when you need to assume a role.

    • Aws::AssumeRoleWebIdentityCredentials - Used when you need to assume a role after providing credentials via the web.

    • Aws::SSOCredentials - Used for loading credentials from AWS SSO using an access token generated from aws login.

    • Aws::ProcessCredentials - Used for loading credentials from a process that outputs to stdout.

    • Aws::InstanceProfileCredentials - Used for loading credentials from an EC2 IMDS on an EC2 instance.

    • Aws::ECSCredentials - Used for loading credentials from instances running in ECS.

    • Aws::CognitoIdentityCredentials - Used for loading credentials from the Cognito Identity service.

    When :credentials are not configured directly, the following locations will be searched for credentials:

    • Aws.config[:credentials]

    • The :access_key_id, :secret_access_key, :session_token, and :account_id options.

    • ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'], ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID'].

    • ~/.aws/credentials

    • ~/.aws/config

    • EC2/ECS IMDS instance profile - When used by default, the timeouts are very aggressive. Construct and pass an instance of Aws::InstanceProfileCredentials or Aws::ECSCredentials to enable retries and extended timeouts. Instance profile credential fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED'] to true.

  • :region (required, String) —

    The AWS region to connect to. The configured :region is used to determine the service :endpoint. When not passed, a default :region is searched for in the following locations:

    • Aws.config[:region]
    • ENV['AWS_REGION']
    • ENV['AMAZON_REGION']
    • ENV['AWS_DEFAULT_REGION']
    • ~/.aws/credentials
    • ~/.aws/config
  • :access_key_id (String)
  • :account_id (String)
  • :active_endpoint_cache (Boolean) — default: false —

    When set to true, a thread polling for endpoints will be running in the background every 60 secs (default). Defaults to false.

  • :adaptive_retry_wait_to_fill (Boolean) — default: true —

    Used only in adaptive retry mode. When true, the request will sleep until there is sufficent client side capacity to retry the request. When false, the request will raise a RetryCapacityNotAvailableError and will not retry instead of sleeping.

  • :auth_scheme_preference (Array<String>) —

    A list of preferred authentication schemes to use when making a request. Supported values are: sigv4, sigv4a, httpBearerAuth, and noAuth. When set using ENV['AWS_AUTH_SCHEME_PREFERENCE'] or in shared config as auth_scheme_preference, the value should be a comma-separated list.

  • :client_side_monitoring (Boolean) — default: false —

    When true, client-side metrics will be collected for all API requests from this client.

  • :client_side_monitoring_client_id (String) — default: "" —

    Allows you to provide an identifier for this client which will be attached to all generated client side metrics. Defaults to an empty string.

  • :client_side_monitoring_host (String) — default: "127.0.0.1" —

    Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client side monitoring agent is running on, where client metrics will be published via UDP.

  • :client_side_monitoring_port (Integer) — default: 31000 —

    Required for publishing client metrics. The port that the client side monitoring agent is running on, where client metrics will be published via UDP.

  • :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher) — default: Aws::ClientSideMonitoring::Publisher —

    Allows you to provide a custom client-side monitoring publisher class. By default, will use the Client Side Monitoring Agent Publisher.

  • :convert_params (Boolean) — default: true —

    When true, an attempt is made to coerce request parameters into the required types.

  • :correct_clock_skew (Boolean) — default: true —

    Used only in standard and adaptive retry modes. Specifies whether to apply a clock skew correction and retry requests with skewed client clocks. Takes effect only when disable_clock_skew_correction is not set.

  • :defaults_mode (String) — default: "legacy" —

    See DefaultsModeConfiguration for a list of the accepted modes and the configuration defaults that are included.

  • :disable_clock_skew_correction (Boolean) —

    Used only in standard and adaptive retry modes. When true, the SDK does not apply a clock skew correction, does not update its stored skew from responses, and does not retry clock skew errors. Clock skew correction is enabled by default.

  • :disable_host_prefix_injection (Boolean) — default: false —

    When true, the SDK will not prepend the modeled host prefix to the endpoint.

  • :disable_request_compression (Boolean) — default: false —

    When set to 'true' the request body will not be compressed for supported operations.

  • :endpoint (String, URI::HTTPS, URI::HTTP) —

    Normally you should not configure the :endpoint option directly. This is normally constructed from the :region option. Configuring :endpoint is normally reserved for connecting to test or custom endpoints. The endpoint should be a URI formatted like:

    'http://example.com'
    'https://example.com'
    'http://example.com:123'
    
  • :endpoint_cache_max_entries (Integer) — default: 1000 —

    Used for the maximum size limit of the LRU cache storing endpoints data for endpoint discovery enabled operations. Defaults to 1000.

  • :endpoint_cache_max_threads (Integer) — default: 10 —

    Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.

  • :endpoint_cache_poll_interval (Integer) — default: 60 —

    When :endpoint_discovery and :active_endpoint_cache is enabled, Use this option to config the time interval in seconds for making requests fetching endpoints information. Defaults to 60 sec.

  • :endpoint_discovery (Boolean) — default: false —

    When set to true, endpoint discovery will be enabled for operations when available.

  • :ignore_configured_endpoint_urls (Boolean) —

    Setting to true disables use of endpoint URLs provided via environment variables and the shared configuration file.

  • :log_formatter (Aws::Log::Formatter) — default: Aws::Log::Formatter.default —

    The log formatter.

  • :log_level (Symbol) — default: :info —

    The log level to send messages to the :logger at.

  • :logger (Logger) —

    The Logger instance to send log messages to. If this option is not set, logging will be disabled.

  • :max_attempts (Integer) — default: 3 —

    An integer representing the maximum number attempts that will be made for a single request, including the initial attempt. For example, setting this value to 5 will result in a request being retried up to 4 times. Used in standard and adaptive retry modes. Defaults to 3, except for DynamoDB and DynamoDB Streams, which default to 4.

  • :profile (String) — default: "default" —

    Used when loading credentials from the shared credentials file at HOME/.aws/credentials. When not specified, 'default' is used.

  • :request_checksum_calculation (String) — default: "when_supported" —

    Determines when a checksum will be calculated for request payloads. Values are:

    • when_supported - (default) When set, a checksum will be calculated for all request payloads of operations modeled with the httpChecksum trait where requestChecksumRequired is true and/or a requestAlgorithmMember is modeled.
    • when_required - When set, a checksum will only be calculated for request payloads of operations modeled with the httpChecksum trait where requestChecksumRequired is true or where a requestAlgorithmMember is modeled and supplied.
  • :request_min_compression_size_bytes (Integer) — default: 10240 —

    The minimum size in bytes that triggers compression for request bodies. The value must be non-negative integer value between 0 and 10485780 bytes inclusive.

  • :response_checksum_validation (String) — default: "when_supported" —

    Determines when checksum validation will be performed on response payloads. Values are:

    • when_supported - (default) When set, checksum validation is performed on all response payloads of operations modeled with the httpChecksum trait where responseAlgorithms is modeled, except when no modeled checksum algorithms are supported.
    • when_required - When set, checksum validation is not performed on response payloads of operations unless the checksum algorithm is supported and the requestValidationModeMember member is set to ENABLED.
  • :retry_backoff (Proc) —

    A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay. This option is only used in the legacy retry mode.

  • :retry_base_delay (Float) — default: 0.3 —

    The base delay in seconds used by the default backoff function. This option is only used in the legacy retry mode.

  • :retry_jitter (Symbol) — default: :none —

    A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number. This option is only used in the legacy retry mode.

    @see https://www.awsarchitectureblog.com/2015/03/backoff.html

  • :retry_limit (Integer) — default: 3 —

    The maximum number of times to retry failed requests. Only ~ 500 level server errors and certain ~ 400 level client errors are retried. Generally, these are throttling errors, data checksum errors, networking errors, timeout errors, auth errors, endpoint discovery, and errors from expired credentials. This option is only used in the legacy retry mode.

  • :retry_max_delay (Integer) — default: 0 —

    The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function. This option is only used in the legacy retry mode.

  • :retry_mode (String) — default: "standard" —

    Specifies which retry algorithm to use. Values are:

    • legacy - The pre-existing retry behavior.

    • standard - A standardized set of retry rules across the AWS SDKs. This includes support for retry quotas, which limit the number of unsuccessful retries a client can make. This is the default value if no retry mode is provided.

    • adaptive - A retry mode that includes all the functionality of standard mode along with automatic client side throttling.

  • :sdk_ua_app_id (String) —

    A unique and opaque application ID that is appended to the User-Agent header as app/sdk_ua_app_id. It should have a maximum length of 50. This variable is sourced from environment variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.

  • :secret_access_key (String)
  • :session_token (String)
  • :sigv4a_signing_region_set (Array) —

    A list of regions that should be signed with SigV4a signing. When not passed, a default :sigv4a_signing_region_set is searched for in the following locations:

    • Aws.config[:sigv4a_signing_region_set]
    • ENV['AWS_SIGV4A_SIGNING_REGION_SET']
    • ~/.aws/config
  • :stub_responses (Boolean) — default: false —

    Causes the client to return stubbed responses. By default fake responses are generated and returned. You can specify the response data to return or errors to raise by calling Aws::ClientStubs#stub_responses. See Aws::ClientStubs for more information.

    Please note When response stubbing is enabled, no HTTP requests are made, and retries are disabled.

  • :telemetry_provider (Aws::Telemetry::TelemetryProviderBase) — default: Aws::Telemetry::NoOpTelemetryProvider —

    Allows you to provide a telemetry provider, which is used to emit telemetry data. By default, uses NoOpTelemetryProvider which will not record or emit any telemetry data. The SDK supports the following telemetry providers:

    • OpenTelemetry (OTel) - To use the OTel provider, install and require the opentelemetry-sdk gem and then, pass in an instance of a Aws::Telemetry::OTelProvider for telemetry provider.
  • :token_provider (Aws::TokenProvider) —

    Your Bearer token used for authentication. This can be any class that includes and implements Aws::TokenProvider, or instance of any one of the following classes:

    • Aws::StaticTokenProvider - Used for configuring static, non-refreshing tokens.

    • Aws::SSOTokenProvider - Used for loading tokens from AWS SSO using an access token generated from aws login.

    When :token_provider is not configured directly, the Aws::TokenProviderChain will be used to search for tokens configured for your profile in shared configuration files.

  • :use_dualstack_endpoint (Boolean) —

    When set to true, dualstack enabled endpoints (with .aws TLD) will be used if available.

  • :use_fips_endpoint (Boolean) —

    When set to true, fips compatible endpoints will be used if available. When a fips region is used, the region is normalized and this config is set to true.

  • :validate_params (Boolean) — default: true —

    When true, request parameters are validated before sending the request.

  • :endpoint_provider (Aws::Continuum::EndpointProvider) —

    The endpoint provider used to resolve endpoints. Any object that responds to #resolve_endpoint(parameters) where parameters is a Struct similar to Aws::Continuum::EndpointParameters.

  • :http_continue_timeout (Float) — default: 1 —

    The number of seconds to wait for a 100-continue response before sending the request body. This option has no effect unless the request has "Expect" header set to "100-continue". Defaults to nil which disables this behaviour. This value can safely be set per request on the session.

  • :http_idle_timeout (Float) — default: 5 —

    The number of seconds a connection is allowed to sit idle before it is considered stale. Stale connections are closed and removed from the pool before making a request.

  • :http_open_timeout (Float) — default: 15 —

    The default number of seconds to wait for response data. This value can safely be set per-request on the session.

  • :http_proxy (URI::HTTP, String) —

    A proxy to send requests through. Formatted like 'http://proxy.com:123'.

  • :http_read_timeout (Float) — default: 60 —

    The default number of seconds to wait for response data. This value can safely be set per-request on the session.

  • :http_wire_trace (Boolean) — default: false —

    When true, HTTP debug output will be sent to the :logger.

  • :on_chunk_received (Proc) —

    When a Proc object is provided, it will be used as callback when each chunk of the response body is received. It provides three arguments: the chunk, the number of bytes received, and the total number of bytes in the response (or nil if the server did not send a content-length).

  • :on_chunk_sent (Proc) —

    When a Proc object is provided, it will be used as callback when each chunk of the request body is sent. It provides three arguments: the chunk, the number of bytes read from the body, and the total number of bytes in the body.

  • :raise_response_errors (Boolean) — default: true —

    When true, response errors are raised.

  • :ssl_ca_bundle (String) —

    Full path to the SSL certificate authority bundle file that should be used when verifying peer certificates. If you do not pass :ssl_ca_bundle or :ssl_ca_directory the the system default will be used if available.

  • :ssl_ca_directory (String) —

    Full path of the directory that contains the unbundled SSL certificate authority files for verifying peer certificates. If you do not pass :ssl_ca_bundle or :ssl_ca_directory the the system default will be used if available.

  • :ssl_ca_store (String) —

    Sets the X509::Store to verify peer certificate.

  • :ssl_cert (OpenSSL::X509::Certificate) —

    Sets a client certificate when creating http connections.

  • :ssl_key (OpenSSL::PKey) —

    Sets a client key when creating http connections.

  • :ssl_timeout (Float) —

    Sets the SSL timeout in seconds

  • :ssl_verify_peer (Boolean) — default: true —

    When true, SSL peer certificates are verified when establishing a connection.



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.

Examples:

Request syntax with placeholder values


resp = client.associate_collector({
  environment_id: "EnvironmentId", # required
  client_token: "AssociationClientToken",
  collector_arn: "AssociationCollectorArn", # required
  collector_data_access_role_arn: "EnvironmentSourceRoleArn", # required
})

Response structure


resp.environment_id #=> String
resp.environment_arn #=> String
resp.associated_collector.collector_id #=> String
resp.associated_collector.collector_arn #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :environment_id (required, String) —

    The unique identifier of the Environment making the association.

  • :client_token (String) —

    Caller-provided token that makes retried association requests idempotent. The first successful request binds the token to the complete Collector ARN, supplied role, and result for at least 24 hours. During that retry window, reusing it with a different request fails with ConflictException. A matching replay still requires the supplied role to have current Collector access. Once authorized, a matching replay returns the stored result without changing association state. Revocation can deny a replay; it does not remove the stored association or its original result.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

  • :collector_arn (required, String) —

    The ARN of the Collector to associate with this Environment.

  • :collector_data_access_role_arn (required, String) —

    IAM role in the Environment account that Continuum assumes before authorizing access to associated Collector inventory. Every association, including a same-account association, requires this role. The supplied ARN replaces the Environment's previously stored role. The customer is responsible for granting the role access to every Collector that should contribute data.

Returns:

See Also:



549
550
551
552
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 549

def associate_collector(params = {}, options = {})
  req = build_request(:associate_collector, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.create_code_finding({
  environment_id: "EnvironmentId", # required
  ocsf_document: { # required
  },
  client_token: "FindingClientToken",
})

Response structure


resp.finding_id #=> String
resp.finding_arn #=> String
resp.title #=> String
resp.status #=> String, one of "SUBMITTED", "VALIDATING", "CONFIRMED", "DISCARDED", "NOT_PURSUED"
resp.created_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :environment_id (required, String) —

    The environment to ingest the finding into.

  • :ocsf_document (required, Hash, Array, String, Numeric, Boolean) —

    The OCSF finding document to ingest, verbatim. Must declare a class_uid Continuum supports (2002 Vulnerability Finding, or 2007 Application Security Posture Finding) and validate against the vendored OCSF JSON Schema for that class, including the Continuum overlay requirements that finding_info.uid be present and that vulnerabilities[0].affected_code[0].file identify the code location. With several repositories in the environment, the file path must begin with the repository name. Maximum size 256 KB. Stored verbatim and normalized into the typed Finding members returned by GetCodeFinding. GetCodeFinding does not return the document itself.

    Document type used to carry open content (Hash,Array,String,Numeric,Boolean). A document type value is serialized using the same format as its surroundings and requires no additional encoding or escaping.

  • :client_token (String) —

    Caller-provided idempotency token. A retry with the same token and an identical finding document replays the original result; the same token with different content is rejected.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

Returns:

See Also:



623
624
625
626
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 623

def create_code_finding(params = {}, options = {})
  req = build_request(:create_code_finding, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.create_code_scan({
  environment_id: "EnvironmentId", # required
  client_token: "ScanClientToken",
})

Response structure


resp.scan.scan_run_id #=> String
resp.scan.status #=> String, one of "SUBMITTED", "WAITING_FOR_BUILD", "BUILDING", "WAITING_FOR_SCAN", "SCANNING", "SUCCEEDED", "FAILED"
resp.scan.origin #=> String, one of "MANUAL", "SCHEDULED"
resp.scan.created_at #=> Time
resp.scan.completed_at #=> Time
resp.scan.failure_message #=> String
resp.scan.failure_stage #=> String, one of "SUBMITTED", "WAITING_FOR_BUILD", "BUILDING", "WAITING_FOR_SCAN", "SCANNING"

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :environment_id (required, String) —

    Environment to scan.

  • :client_token (String) —

    An optional token identifying one scan request for this environment. SDKs generate a token when omitted. If a request reaches the service without a token, the service generates one for that request, so each request without a token starts a new scan. To retry a request after a lost response, supply the same token on the same environment; once a request with that token has succeeded, a retry returns the original scan. Concurrent requests with the same token, or a retry after a request that failed partway through, can leave an additional scan, which may end FAILED as superseded. A token is bound to its scan for as long as the service retains the scan's build record, with no shorter expiry. Deleting the environment makes the binding inaccessible: a later request with the token returns ResourceNotFoundException.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

Returns:

See Also:



691
692
693
694
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 691

def create_code_scan(params = {}, options = {})
  req = build_request(:create_code_scan, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.create_collector({
  type: "AWS_COLLECTOR", # accepts AWS_COLLECTOR
  kubernetes_cluster_role: {
    role_arn: "KubernetesClusterRoleArn", # required
    external_id: "KubernetesClusterExternalId",
  },
  client_token: "CollectorClientToken",
})

Response structure


resp.collector_id #=> String
resp.collector_arn #=> String
resp.type #=> String, one of "AWS_COLLECTOR"
resp.status #=> String, one of "ACTIVE", "PENDING_DELETION"
resp.created_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :type (String) —

    Source to collect. Defaults to AWS_COLLECTOR when omitted.

  • :kubernetes_cluster_role (Types::KubernetesClusterRoleConfiguration) —

    IAM role configuration used to collect Kubernetes cluster metadata. The authenticated caller must be allowed to pass its exact roleArn to Continuum.

  • :client_token (String) —

    Caller-provided token that makes retried create requests return the original Collector rather than creating a duplicate.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

Returns:

See Also:



746
747
748
749
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 746

def create_collector(params = {}, options = {})
  req = build_request(:create_collector, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.create_environment({
  name: "EnvironmentName", # required
  configuration: {
    code_configuration: {
      source_configuration: {
        s3_sources: [
          {
            integration_id: "IntegrationId", # required
            code_prefix: "EnvironmentSourcePrefix",
            context_prefix: "EnvironmentSourcePrefix",
          },
        ],
        repository_sources: [
          {
            integration_id: "IntegrationId", # required
            repository: "RepositoryName", # required
            default_branch: "RepositoryBranch",
          },
        ],
      },
      environment_configuration: {
        network: {
          allowed_domains: ["DomainName"],
        },
        scan_frequency: "ScanFrequency",
        patch_creation_policy: "ENABLED", # accepts ENABLED, DISABLED
        focus_mode: "COMPREHENSIVE", # accepts COMPREHENSIVE, FOCUSED
        issue_budget: {
          max_issues_per_scan: 1, # required
        },
      },
    },
  },
})

Response structure


resp.environment_id #=> String
resp.environment_arn #=> String
resp.status #=> String, one of "ACTIVE"
resp.created_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :name (required, String) —

    The customer-visible name of the environment.

  • :configuration (Types::CreateEnvironmentConfiguration) —

    Type-specific configuration. Omission creates a code environment with the default operating policy and no sources.

Returns:

See Also:



818
819
820
821
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 818

def create_environment(params = {}, options = {})
  req = build_request(:create_environment, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.create_integration({
  client_token: "IntegrationClientToken",
  name: "IntegrationName", # required
  provider_configuration: { # required
    github: {
      authorization: { # required
        authorization_code: "AuthorizationCode", # required
        state: "OAuthState", # required
        redirect_url: "RedirectUrl",
      },
      organization_name: "GitHubOrganizationName",
    },
    gitlab: {
      instance_url: "GitLabInstanceUrl", # required
      target_type: "GROUP", # required, accepts GROUP, PROJECT
      target_path: "GitLabTargetPath", # required
      access_token: "GitLabAccessToken", # required
    },
    s3: {
      bucket: "IntegrationS3BucketName", # required
      role_arn: "IntegrationS3RoleArn", # required
      external_id: "IntegrationS3ExternalId", # required
    },
  },
  kms_key_id: "KmsKeyId",
  tags: {
    "TagKey" => "TagValue",
  },
})

Response structure


resp.integration_id #=> String
resp.integration_arn #=> String
resp.created_at #=> Time
resp.kms_key_id #=> String
resp.tags #=> Hash
resp.tags["TagKey"] #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :client_token (String) —

    Optional idempotency token identifying one create attempt within the caller's account, Region, and operation. The service treats requests with the same token and identical input as replays of the first attempt.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

  • :name (required, String) —

    Caller-provided name for the new integration. Unique per account.

  • :provider_configuration (required, Types::ProviderConfiguration) —

    Provider-specific configuration. Exactly one union member is set.

  • :kms_key_id (String) —

    Optional customer managed KMS key ID. If present, Continuum provisions a Miyu CMK domain on this key and binds the integration's secrets to it.

  • :tags (Hash<String,String>) —

    Tags to add to the integration when it's created.

Returns:

See Also:



903
904
905
906
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 903

def create_integration(params = {}, options = {})
  req = build_request(:create_integration, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.create_package_decision({
  purl: "PackageUrl", # required
  client_token: "ClientToken",
})

Response structure


resp.decision_id #=> String
resp.canonical_purl #=> String
resp.evaluated_action #=> String, one of "ALLOW", "DENY"
resp.enforcement_action #=> String, one of "ALLOW", "DENY"
resp.enforcement_mode #=> String, one of "NONE", "AUDIT", "ENFORCE"
resp.reason #=> String, one of "NO_DENY_MATCH", "MALICIOUS_PACKAGE", "POLICY_RULE_MATCHED"

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :purl (required, String) —

    The package URL (purl) of the package version to evaluate, such as pkg:npm/lodash@4.17.21.

  • :client_token (String) —

    Idempotency token. Generated SDKs fill it automatically. Within one hour, the same token with the same parameters returns the original decision, and the same token with different parameters returns ValidationException. Requests without a token are rejected with ValidationException.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

Returns:

See Also:



956
957
958
959
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 956

def create_package_decision(params = {}, options = {})
  req = build_request(:create_package_decision, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.create_supply_chain_policy({
  policy: { # required
    name: "PolicyName", # required
    description: "PolicyDescription",
    rules: [ # required
      {
        rule_id: "RuleId", # required
        enforcement_mode: "AUDIT", # required, accepts AUDIT, ENFORCE
        deny_when: { # required
          all_of: [ # required
            {
              signal: "PACKAGE_IDENTITY", # required, accepts PACKAGE_IDENTITY, INSPECTOR_SEVERITY, KEV, MALICIOUS
              operator: "MATCHES", # required, accepts MATCHES, AT_LEAST, EQUALS, NOT_EQUALS, IN, PRESENT
              value: {
                package_identity: {
                  ecosystem: "Ecosystem", # required
                  name: "PackageName", # required
                  version: "PackageVersion",
                  version_range: "PackageVersionRange",
                },
                severity: "LOW", # accepts LOW, MEDIUM, HIGH, CRITICAL, UNTRIAGED
                string_value: "ConditionScalar",
                string_set: ["ConditionScalar"],
              },
            },
          ],
        },
      },
    ],
  },
  tags: {
    "TagKey" => "TagValue",
  },
  client_token: "ClientToken",
})

Response structure


resp.id #=> String
resp.arn #=> String
resp.policy.name #=> String
resp.policy.description #=> String
resp.policy.rules #=> Array
resp.policy.rules[0].rule_id #=> String
resp.policy.rules[0].enforcement_mode #=> String, one of "AUDIT", "ENFORCE"
resp.policy.rules[0].deny_when.all_of #=> Array
resp.policy.rules[0].deny_when.all_of[0].signal #=> String, one of "PACKAGE_IDENTITY", "INSPECTOR_SEVERITY", "KEV", "MALICIOUS"
resp.policy.rules[0].deny_when.all_of[0].operator #=> String, one of "MATCHES", "AT_LEAST", "EQUALS", "NOT_EQUALS", "IN", "PRESENT"
resp.policy.rules[0].deny_when.all_of[0].value.package_identity.ecosystem #=> String
resp.policy.rules[0].deny_when.all_of[0].value.package_identity.name #=> String
resp.policy.rules[0].deny_when.all_of[0].value.package_identity.version #=> String
resp.policy.rules[0].deny_when.all_of[0].value.package_identity.version_range #=> String
resp.policy.rules[0].deny_when.all_of[0].value.severity #=> String, one of "LOW", "MEDIUM", "HIGH", "CRITICAL", "UNTRIAGED"
resp.policy.rules[0].deny_when.all_of[0].value.string_value #=> String
resp.policy.rules[0].deny_when.all_of[0].value.string_set #=> Array
resp.policy.rules[0].deny_when.all_of[0].value.string_set[0] #=> String
resp.created_at #=> Time
resp.updated_at #=> Time
resp.tags #=> Hash
resp.tags["TagKey"] #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :policy (required, Types::SupplyChainPolicy) —

    The policy to create: its name, description, and rules.

  • :tags (Hash<String,String>) —

    Tags to add to the policy when it's created.

  • :client_token (String) —

    Idempotency token. Generated SDKs fill it automatically. Within one hour, the same token with the same policy returns the policy it created. The same token with a different policy, or after that policy was deleted, returns ConflictException. Tags are not compared, and a repeated create leaves the policy's tags unchanged.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

Returns:

See Also:



1057
1058
1059
1060
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1057

def create_supply_chain_policy(params = {}, options = {})
  req = build_request(:create_supply_chain_policy, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.create_supply_chain_policy_exception({
  exception: { # required
    name: "ExceptionName", # required
    policy_arn: "PolicyReferenceArn", # required
    rule_ids: ["RuleId"], # required
    package: { # required
      ecosystem: "Ecosystem", # required
      name: "PackageName", # required
      version: "PackageVersion",
      version_range: "PackageVersionRange",
    },
    justification: "Justification", # required
    expires_at: Time.now, # required
  },
  tags: {
    "TagKey" => "TagValue",
  },
  client_token: "ClientToken",
})

Response structure


resp.id #=> String
resp.arn #=> String
resp.exception.name #=> String
resp.exception.policy_arn #=> String
resp.exception.rule_ids #=> Array
resp.exception.rule_ids[0] #=> String
resp.exception.package.ecosystem #=> String
resp.exception.package.name #=> String
resp.exception.package.version #=> String
resp.exception.package.version_range #=> String
resp.exception.justification #=> String
resp.exception.expires_at #=> Time
resp.status #=> String, one of "ACTIVE", "EXPIRED"
resp.created_at #=> Time
resp.updated_at #=> Time
resp.tags #=> Hash
resp.tags["TagKey"] #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :exception (required, Types::SupplyChainPolicyException) —

    The exception to create: the policy and rules it suppresses, the package it applies to, a justification, and an expiry time.

  • :tags (Hash<String,String>) —

    Tags to add to the policy exception when it's created.

  • :client_token (String) —

    Idempotency token. Generated SDKs fill it automatically. Within one hour, the same token with the same exception returns the exception it created. The same token with a different exception, or after that exception was deleted, returns ConflictException. Tags are not compared, and a repeated create leaves the exception's tags unchanged.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

Returns:

See Also:



1141
1142
1143
1144
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1141

def create_supply_chain_policy_exception(params = {}, options = {})
  req = build_request(:create_supply_chain_policy_exception, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.delete_collector({
  collector_id: "CollectorId", # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :collector_id (required, String) —

    The unique identifier of the Collector to delete.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1166
1167
1168
1169
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1166

def delete_collector(params = {}, options = {})
  req = build_request(:delete_collector, params)
  req.send_request(options)
end

#delete_environment(params = {}) ⇒ Struct

Deletes an environment and its associated resources.

Examples:

Request syntax with placeholder values


resp = client.delete_environment({
  environment_id: "EnvironmentId", # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :environment_id (required, String) —

    The unique identifier of the environment to delete.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1188
1189
1190
1191
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1188

def delete_environment(params = {}, options = {})
  req = build_request(:delete_environment, params)
  req.send_request(options)
end

#delete_integration(params = {}) ⇒ Struct

Deletes a Continuum integration owned by the forwarded customer account.

Examples:

Request syntax with placeholder values


resp = client.delete_integration({
  integration_id: "IntegrationId", # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :integration_id (required, String) —

    The unique identifier of the integration to delete.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1211
1212
1213
1214
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1211

def delete_integration(params = {}, options = {})
  req = build_request(:delete_integration, params)
  req.send_request(options)
end

#delete_supply_chain_policy(params = {}) ⇒ Struct

Deletes a policy and every policy exception that references it.

Examples:

Request syntax with placeholder values


resp = client.delete_supply_chain_policy({
  id: "PolicyId", # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :id (required, String) —

    The ID of the policy to delete.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1233
1234
1235
1236
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1233

def delete_supply_chain_policy(params = {}, options = {})
  req = build_request(:delete_supply_chain_policy, params)
  req.send_request(options)
end

#delete_supply_chain_policy_exception(params = {}) ⇒ Struct

Deletes a policy exception. Subsequent decisions no longer consider this exception.

Examples:

Request syntax with placeholder values


resp = client.delete_supply_chain_policy_exception({
  id: "PolicyExceptionId", # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :id (required, String) —

    The ID of the policy exception to delete.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1256
1257
1258
1259
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1256

def delete_supply_chain_policy_exception(params = {}, options = {})
  req = build_request(:delete_supply_chain_policy_exception, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.disassociate_collector({
  environment_id: "EnvironmentId", # required
  collector_arn: "AssociationCollectorArn", # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :environment_id (required, String) —

    The unique identifier of the Environment whose associations are updated.

  • :collector_arn (required, String) —

    The ARN of the Collector to disassociate from this Environment.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1288
1289
1290
1291
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1288

def disassociate_collector(params = {}, options = {})
  req = build_request(:disassociate_collector, params)
  req.send_request(options)
end

#get_code_finding(params = {}) ⇒ Types::GetCodeFindingOutput

Retrieves the current state and details of a finding.

Examples:

Request syntax with placeholder values


resp = client.get_code_finding({
  environment_id: "EnvironmentId", # required
  finding_id: "FindingId", # required
})

Response structure


resp.type #=> String, one of "CONTINUUM_CODE_VULN", "CUSTOMER_CODE_VULN"
resp.title #=> String
resp.severity #=> String, one of "UNKNOWN", "INFORMATIONAL", "LOW", "MEDIUM", "HIGH", "CRITICAL", "FATAL", "OTHER"
resp.summary #=> String
resp.detailed_description #=> String
resp.category #=> String
resp.sub_category #=> String
resp.cwe_ids #=> Array
resp.cwe_ids[0] #=> String
resp.owasp_category #=> String
resp.mitigation #=> String
resp.file_path #=> String
resp.line_number #=> Integer
resp.cve_id #=> String
resp.cvss_base_score #=> Float
resp.affected_packages #=> Array
resp.affected_packages[0].name #=> String
resp.affected_packages[0].version #=> String
resp.affected_packages[0].fixed_in_version #=> String
resp.affected_packages[0].package_manager #=> String
resp.vulnerable_code #=> String
resp.relevant_inputs #=> Array
resp.relevant_inputs[0] #=> String
resp.steps_to_reproduce #=> Array
resp.steps_to_reproduce[0] #=> String
resp.validation.verdict #=> String, one of "TRUE_POSITIVE", "FALSE_POSITIVE", "BENIGN_TRUE_POSITIVE", "NEEDS_REVIEW"
resp.validation.blocking_reason #=> String, one of "UNREACHABLE", "PROTECTED", "MISCLASSIFIED", "EXCLUDED", "NOT_FEASIBLE", "RISK_MITIGATED", "NONE"
resp.validation.confidence #=> Float
resp.validation.rationale #=> String
resp.validation.severity_adjustment #=> String, one of "CRITICAL", "HIGH", "MEDIUM", "LOW", "INFORMATIONAL", "UNCHANGED"
resp.validation.mitigating_controls #=> Array
resp.validation.mitigating_controls[0] #=> String
resp.validation.preconditions #=> Array
resp.validation.preconditions[0] #=> String
resp.validation.evidence #=> Array
resp.validation.evidence[0].file #=> String
resp.validation.evidence[0].line #=> Integer
resp.validation.evidence[0].snippet #=> String
resp.end_line #=> Integer
resp.mitre_techniques #=> Array
resp.mitre_techniques[0] #=> String
resp.remediation_references #=> Array
resp.remediation_references[0] #=> String
resp.ocsf_class #=> String, one of "VULNERABILITY_FINDING", "APPLICATION_SECURITY_POSTURE_FINDING"
resp.ocsf_schema_version #=> String
resp.product_name #=> String
resp.product_vendor_name #=> String
resp.product_version #=> String
resp.source_status #=> String
resp.source_status_id #=> Integer
resp.first_seen_at #=> Time
resp.finding_types #=> Array
resp.finding_types[0] #=> String
resp.vulnerabilities #=> Array
resp.vulnerabilities[0].title #=> String
resp.vulnerabilities[0].description #=> String
resp.vulnerabilities[0].cwe_id #=> String
resp.vulnerabilities[0].cwe_caption #=> String
resp.vulnerabilities[0].additional_cwe_ids #=> Array
resp.vulnerabilities[0].additional_cwe_ids[0] #=> String
resp.vulnerabilities[0].cve_id #=> String
resp.vulnerabilities[0].cvss_base_score #=> Float
resp.vulnerabilities[0].fix_coverage #=> String
resp.vulnerabilities[0].fix_coverage_id #=> Integer
resp.vulnerabilities[0].locations #=> Array
resp.vulnerabilities[0].locations[0].file_path #=> String
resp.vulnerabilities[0].locations[0].start_line #=> Integer
resp.vulnerabilities[0].locations[0].end_line #=> Integer
resp.vulnerabilities[0].remediation #=> String
resp.vulnerabilities[0].remediation_references #=> Array
resp.vulnerabilities[0].remediation_references[0] #=> String
resp.vulnerabilities[0].code #=> String
resp.vulnerabilities[0].details #=> String
resp.vulnerabilities[0].affected_packages #=> Array
resp.vulnerabilities[0].affected_packages[0].name #=> String
resp.vulnerabilities[0].affected_packages[0].version #=> String
resp.vulnerabilities[0].affected_packages[0].fixed_in_version #=> String
resp.vulnerabilities[0].affected_packages[0].package_manager #=> String
resp.resources #=> Array
resp.resources[0].uid #=> String
resp.resources[0].name #=> String
resp.resources[0].type #=> String
resp.resources[0].region #=> String
resp.posture.application #=> String
resp.posture.application_uid #=> String
resp.posture.application_version #=> String
resp.posture.control #=> String
resp.posture.description #=> String
resp.posture.standards #=> Array
resp.posture.standards[0] #=> String
resp.posture.requirements #=> Array
resp.posture.requirements[0] #=> String
resp.posture.checks #=> Array
resp.posture.checks[0].uid #=> String
resp.posture.checks[0].name #=> String
resp.posture.checks[0].description #=> String
resp.posture.status #=> String
resp.posture.status_id #=> Integer
resp.posture.remediation #=> String
resp.posture.remediation_references #=> Array
resp.posture.remediation_references[0] #=> String
resp.finding_id #=> String
resp.finding_arn #=> String
resp.environment_id #=> String
resp.source #=> String
resp.source_finding_id #=> String
resp.reported_at #=> Time
resp.status #=> String, one of "SUBMITTED", "VALIDATING", "CONFIRMED", "DISCARDED", "NOT_PURSUED"
resp.status_updated_at #=> Time
resp.created_at #=> Time
resp.scan_run_id #=> String
resp.status_message #=> String
resp.discard_reason #=> String, one of "SCANNER_VALIDATED_FALSE_POSITIVE", "SCANNER_NEEDS_REVIEW", "FALSE_POSITIVE_VALIDATED_AGAINST_CONTEXT", "DUPLICATE_OF_OPEN_ISSUE", "DUPLICATE_OF_CLOSED_ISSUE", "COMPENSATING_CONTROL_PRESENT", "OUT_OF_SCOPE", "INSUFFICIENT_EVIDENCE", "PROCESSING_FAILED", "SOURCE_REPO_NOT_FOUND"
resp.discard_reasoning #=> String
resp.duplicate_of_issue_id #=> String
resp.created_issue_id #=> String
resp.completed_at #=> Time
resp.not_pursued_reason #=> String, one of "FOCUS_MODE", "ISSUE_BUDGET"

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :environment_id (required, String) —

    The environment that owns the finding.

  • :finding_id (required, String) —

    The unique identifier of the finding to retrieve.

Returns:

See Also:



1487
1488
1489
1490
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1487

def get_code_finding(params = {}, options = {})
  req = build_request(:get_code_finding, params)
  req.send_request(options)
end

#get_code_issue(params = {}) ⇒ Types::GetCodeIssueOutput

Retrieves the current state and details of an issue.

Examples:

Request syntax with placeholder values


resp = client.get_code_issue({
  environment_id: "EnvironmentId", # required
  issue_id: "IssueId", # required
})

Response structure


resp.issue_id #=> String
resp.issue_arn #=> String
resp.name #=> String
resp.synopsis #=> String
resp.severity #=> String, one of "LOW", "MEDIUM", "HIGH", "CRITICAL"
resp.confidence #=> Integer
resp.severity_reasoning #=> String
resp.summary #=> String
resp.finding_ids #=> Array
resp.finding_ids[0] #=> String
resp.status #=> String, one of "CREATED", "IN_PROGRESS", "COMPLETED", "FAILED"
resp.phase #=> String, one of "VALIDATION", "PRIORITIZATION", "REMEDIATION"
resp.status_reason #=> String, one of "INTERNAL_ERROR", "REMEDIATION_FAILED"
resp.status_message #=> String
resp.status_updated_at #=> Time
resp.created_at #=> Time
resp.updated_at #=> Time
resp.evidence_availability #=> String, one of "NONE", "AVAILABLE"
resp.patch_delivery.status #=> String, one of "PENDING", "SUCCEEDED", "FAILED", "SKIPPED"
resp.patch_delivery.patch_count #=> Integer
resp.patch_delivery.succeeded_count #=> Integer
resp.patch_delivery.failed_count #=> Integer
resp.patch_delivery.failure_reasons #=> Array
resp.patch_delivery.failure_reasons[0] #=> String, one of "ARTIFACT_READ_FAILED", "ARTIFACT_SOURCE_MISMATCH", "ARTIFACT_SOURCE_MISSING", "BUILD_NOT_FOUND", "BUILD_READ_FAILED", "BUILD_RESULT_SCOPE_MISMATCH", "DELIVERY_NOT_CONFIGURED", "DELIVERY_SOURCE_KIND_CHANGED", "DUPLICATE_LOGICAL_REPOSITORY", "DUPLICATE_OR_INVALID_REPOSITORY", "ENVIRONMENT_DELETED", "ENVIRONMENT_NOT_ACTIVE", "ENVIRONMENT_NOT_FOUND", "ENVIRONMENT_READ_FAILED", "S3_ACCESS_DENIED", "S3_SOURCE_PREFIX_OVERLAP", "SOURCE_INTEGRATION_UNRESOLVED", "SOURCE_INTEGRATION_READ_FAILED", "SOURCE_INTEGRATION_INVALID", "SOURCE_INTEGRATION_CHANGED", "EXPORT_CREDENTIALS_MISSING", "EXPORT_CREDENTIAL_EXPIRY_INVALID", "EXPORT_DESTINATION_INVALID", "EXPORT_EXISTING_OBJECT_MISMATCH", "EXPORT_PUT_FAILED", "EXPORT_RECONCILIATION_READ_FAILED", "EXPORT_ROLE_ASSUMPTION_FAILED", "GITHUB_ACCESS_DENIED", "GITHUB_BASE_NOT_FOUND", "GITHUB_BRANCH_CONFLICT", "GITHUB_NOT_FOUND", "GITHUB_RATE_LIMITED", "GITHUB_REPOSITORY_CHANGED", "GITHUB_REPOSITORY_NOT_FOUND", "GITHUB_REQUEST_FAILED", "GITHUB_REQUEST_REJECTED", "GITHUB_RESPONSE_INVALID", "GREEN_ATTEMPT_NOT_SUCCESSFUL", "GREEN_COMPLETION_NOT_OBSERVED", "PATCH_NOT_SELECTED", "INCOMPLETE_SOURCE_REFERENCE", "INVALID_ARCHIVE_DIGEST", "INVALID_ARTIFACT_SOURCE", "INVALID_COMPLETED_MANIFEST", "INVALID_EXPORT_RECEIPT", "INVALID_GITHUB_PROVENANCE", "INVALID_S3_DESTINATION", "INVALID_SERVICE_RECEIPT", "INVALID_SOURCE_INVENTORY", "INVALID_SOURCE_MANIFEST", "INVALID_SOURCE_REFERENCE", "ISSUE_INTEGRITY_FAILURE", "ISSUE_NOT_FOUND", "MANIFEST_INVENTORY_MISMATCH", "MANIFEST_PROVENANCE_CHANGED", "MANIFEST_REPOSITORY_SET_MISMATCH", "MANIFEST_SCOPE_OR_VERSION_MISMATCH", "MISSING_BUILD_RESULT", "MISSING_COMPLETED_MANIFEST", "MISSING_RESULT_DIGEST", "MISSING_SOURCE_MANIFEST", "MISSING_SOURCE_TARGET", "PATCH_NOT_APPLICABLE", "PATCH_STORAGE_IDENTITY_MISSING", "PATCH_UNSUPPORTED", "PUBLICATION_OUTCOME_UNKNOWN_AFTER_RETRY_LIMIT", "PUBLISHER_DEADLINE_EXCEEDED", "RESULT_COMPLETED_MANIFEST_MISMATCH", "RESULT_SOURCE_BINDING_MISMATCH", "SERVICE_COPY_DIGEST_MISMATCH", "SERVICE_OBJECT_READ_FAILED", "SERVICE_OBJECT_TOO_LARGE", "SERVICE_RECEIPT_OUTSIDE_ISSUE", "SOURCE_OBJECT_DIGEST_MISMATCH", "SOURCE_REFERENCE_OUTSIDE_BUILD", "SOURCE_TARGET_BUILD_MISMATCH", "UNKNOWN_REPOSITORY", "UNKNOWN_SOURCE_PROVIDER", "UNSUPPORTED_ENVIRONMENT_SCHEMA", "github_destination_not_enabled", "patch_creation_policy_disabled", "GITHUB_ACCESS_LOST", "GITHUB_INSTALLATION_NOT_FOUND", "GITLAB_ACCESS_DENIED", "GITLAB_BASE_NOT_FOUND", "GITLAB_BRANCH_CONFLICT", "GITLAB_BRANCH_PROTECTED", "GITLAB_NOT_FOUND", "GITLAB_PROJECT_CHANGED", "GITLAB_PROJECT_NOT_FOUND", "GITLAB_RATE_LIMITED", "GITLAB_REQUEST_FAILED", "GITLAB_REQUEST_REJECTED", "GITLAB_RESPONSE_INVALID", "INVALID_GITLAB_PROVENANCE", "gitlab_destination_not_enabled", "GITHUB_BRANCH_CREATION_REFUSED"
resp.patch_delivery.skipped_reasons #=> Array
resp.patch_delivery.skipped_reasons[0] #=> String, one of "ARTIFACT_READ_FAILED", "ARTIFACT_SOURCE_MISMATCH", "ARTIFACT_SOURCE_MISSING", "BUILD_NOT_FOUND", "BUILD_READ_FAILED", "BUILD_RESULT_SCOPE_MISMATCH", "DELIVERY_NOT_CONFIGURED", "DELIVERY_SOURCE_KIND_CHANGED", "DUPLICATE_LOGICAL_REPOSITORY", "DUPLICATE_OR_INVALID_REPOSITORY", "ENVIRONMENT_DELETED", "ENVIRONMENT_NOT_ACTIVE", "ENVIRONMENT_NOT_FOUND", "ENVIRONMENT_READ_FAILED", "S3_ACCESS_DENIED", "S3_SOURCE_PREFIX_OVERLAP", "SOURCE_INTEGRATION_UNRESOLVED", "SOURCE_INTEGRATION_READ_FAILED", "SOURCE_INTEGRATION_INVALID", "SOURCE_INTEGRATION_CHANGED", "EXPORT_CREDENTIALS_MISSING", "EXPORT_CREDENTIAL_EXPIRY_INVALID", "EXPORT_DESTINATION_INVALID", "EXPORT_EXISTING_OBJECT_MISMATCH", "EXPORT_PUT_FAILED", "EXPORT_RECONCILIATION_READ_FAILED", "EXPORT_ROLE_ASSUMPTION_FAILED", "GITHUB_ACCESS_DENIED", "GITHUB_BASE_NOT_FOUND", "GITHUB_BRANCH_CONFLICT", "GITHUB_NOT_FOUND", "GITHUB_RATE_LIMITED", "GITHUB_REPOSITORY_CHANGED", "GITHUB_REPOSITORY_NOT_FOUND", "GITHUB_REQUEST_FAILED", "GITHUB_REQUEST_REJECTED", "GITHUB_RESPONSE_INVALID", "GREEN_ATTEMPT_NOT_SUCCESSFUL", "GREEN_COMPLETION_NOT_OBSERVED", "PATCH_NOT_SELECTED", "INCOMPLETE_SOURCE_REFERENCE", "INVALID_ARCHIVE_DIGEST", "INVALID_ARTIFACT_SOURCE", "INVALID_COMPLETED_MANIFEST", "INVALID_EXPORT_RECEIPT", "INVALID_GITHUB_PROVENANCE", "INVALID_S3_DESTINATION", "INVALID_SERVICE_RECEIPT", "INVALID_SOURCE_INVENTORY", "INVALID_SOURCE_MANIFEST", "INVALID_SOURCE_REFERENCE", "ISSUE_INTEGRITY_FAILURE", "ISSUE_NOT_FOUND", "MANIFEST_INVENTORY_MISMATCH", "MANIFEST_PROVENANCE_CHANGED", "MANIFEST_REPOSITORY_SET_MISMATCH", "MANIFEST_SCOPE_OR_VERSION_MISMATCH", "MISSING_BUILD_RESULT", "MISSING_COMPLETED_MANIFEST", "MISSING_RESULT_DIGEST", "MISSING_SOURCE_MANIFEST", "MISSING_SOURCE_TARGET", "PATCH_NOT_APPLICABLE", "PATCH_STORAGE_IDENTITY_MISSING", "PATCH_UNSUPPORTED", "PUBLICATION_OUTCOME_UNKNOWN_AFTER_RETRY_LIMIT", "PUBLISHER_DEADLINE_EXCEEDED", "RESULT_COMPLETED_MANIFEST_MISMATCH", "RESULT_SOURCE_BINDING_MISMATCH", "SERVICE_COPY_DIGEST_MISMATCH", "SERVICE_OBJECT_READ_FAILED", "SERVICE_OBJECT_TOO_LARGE", "SERVICE_RECEIPT_OUTSIDE_ISSUE", "SOURCE_OBJECT_DIGEST_MISMATCH", "SOURCE_REFERENCE_OUTSIDE_BUILD", "SOURCE_TARGET_BUILD_MISMATCH", "UNKNOWN_REPOSITORY", "UNKNOWN_SOURCE_PROVIDER", "UNSUPPORTED_ENVIRONMENT_SCHEMA", "github_destination_not_enabled", "patch_creation_policy_disabled", "GITHUB_ACCESS_LOST", "GITHUB_INSTALLATION_NOT_FOUND", "GITLAB_ACCESS_DENIED", "GITLAB_BASE_NOT_FOUND", "GITLAB_BRANCH_CONFLICT", "GITLAB_BRANCH_PROTECTED", "GITLAB_NOT_FOUND", "GITLAB_PROJECT_CHANGED", "GITLAB_PROJECT_NOT_FOUND", "GITLAB_RATE_LIMITED", "GITLAB_REQUEST_FAILED", "GITLAB_REQUEST_REJECTED", "GITLAB_RESPONSE_INVALID", "INVALID_GITLAB_PROVENANCE", "gitlab_destination_not_enabled", "GITHUB_BRANCH_CREATION_REFUSED"

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :environment_id (required, String) —

    The environment that owns the issue.

  • :issue_id (required, String) —

    The unique identifier of the issue to retrieve.

Returns:

See Also:



1561
1562
1563
1564
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1561

def get_code_issue(params = {}, options = {})
  req = build_request(:get_code_issue, params)
  req.send_request(options)
end

#get_code_issue_artifact(params = {}) ⇒ Types::GetCodeIssueArtifactOutput

Retrieves one immutable artifact attached to an issue, including its content.

Examples:

Request syntax with placeholder values


resp = client.get_code_issue_artifact({
  environment_id: "EnvironmentId", # required
  issue_id: "IssueId", # required
  artifact_id: "IssueArtifactId", # required
})

Response structure


resp.artifact_id #=> String
resp.artifact_type #=> String, one of "EVIDENCE", "AGENT_COMMUNICATION", "VALIDATION_EVIDENCE", "REMEDIATION_PROPOSAL", "DECISION", "PATCH"
resp.media_type #=> String
resp.body.validation_evidence.exploitable #=> String, one of "EXPLOITABLE", "NOT_EXPLOITABLE", "UNCERTAIN"
resp.body.validation_evidence.terminal_status #=> String, one of "COMPLETED", "FAILED", "NO_SOURCE_AVAILABLE", "PARTIAL"
resp.body.validation_evidence.flow_verdicts #=> Array
resp.body.validation_evidence.flow_verdicts[0].flow_id #=> String
resp.body.validation_evidence.flow_verdicts[0].verdict #=> String, one of "CONFIRMED", "DENIED", "INCONCLUSIVE"
resp.body.validation_evidence.flow_verdicts[0].confidence #=> Float
resp.body.validation_evidence.flow_verdicts[0].evidence #=> Array
resp.body.validation_evidence.flow_verdicts[0].evidence[0] #=> String
resp.body.validation_evidence.attack_flows_confirmed #=> Array
resp.body.validation_evidence.attack_flows_confirmed[0] #=> String
resp.body.validation_evidence.exploit_artifact.payload #=> String
resp.body.validation_evidence.exploit_artifact.target_url #=> String
resp.body.validation_evidence.exploit_artifact.http_method #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"
resp.body.validation_evidence.exploit_artifact.headers #=> Hash
resp.body.validation_evidence.exploit_artifact.headers["ArtifactCitation"] #=> String
resp.body.validation_evidence.exploit_artifact.response_status #=> Integer
resp.body.validation_evidence.exploit_artifact.response_snippet #=> String
resp.body.validation_evidence.exploit_artifact.effect #=> String, one of "DATA_LEAKED", "ERROR_REVEALED", "BEHAVIOR_CHANGED", "NO_EFFECT"
resp.body.validation_evidence.executed_proof.code.proof_code #=> Array
resp.body.validation_evidence.executed_proof.code.proof_code[0].content #=> String
resp.body.validation_evidence.executed_proof.code.proof_code[0].path #=> String
resp.body.validation_evidence.executed_proof.code.command #=> String
resp.body.validation_evidence.executed_proof.code.working_directory #=> String
resp.body.validation_evidence.executed_proof.output.console_output #=> String
resp.body.validation_evidence.executed_proof.observed_effect #=> String, one of "DATA_LEAKED", "ERROR_REVEALED", "BEHAVIOR_CHANGED", "NO_EFFECT"
resp.body.validation_evidence.executed_proof.setting.test_boundary #=> String
resp.body.validation_evidence.executed_proof.setting.conditions #=> Array
resp.body.validation_evidence.executed_proof.setting.conditions[0] #=> String
resp.body.validation_evidence.executed_proof.setting.substitutions #=> Array
resp.body.validation_evidence.executed_proof.setting.substitutions[0] #=> String
resp.body.validation_evidence.executed_proof.result_materials #=> Array
resp.body.validation_evidence.executed_proof.result_materials[0].path #=> String
resp.body.validation_evidence.executed_proof.result_materials[0].change #=> String, one of "CREATED", "MODIFIED", "DELETED", "UNCHANGED"
resp.body.validation_evidence.executed_proof.result_materials[0].before #=> String
resp.body.validation_evidence.executed_proof.result_materials[0].after #=> String
resp.body.validation_evidence.source_analysis.summary #=> String
resp.body.validation_evidence.source_analysis.inferred_effect #=> String, one of "DATA_LEAKED", "ERROR_REVEALED", "BEHAVIOR_CHANGED", "NO_EFFECT"
resp.body.validation_evidence.source_analysis.diagram #=> String
resp.body.validation_evidence.source_analysis.references #=> Array
resp.body.validation_evidence.source_analysis.references[0].node_id #=> String
resp.body.validation_evidence.source_analysis.references[0].path #=> String
resp.body.validation_evidence.source_analysis.references[0].start_line #=> Integer
resp.body.validation_evidence.source_analysis.references[0].end_line #=> Integer
resp.body.validation_evidence.source_analysis.references[0].excerpt #=> String
resp.body.validation_evidence.per_finding_results #=> Array
resp.body.validation_evidence.per_finding_results[0].finding_id #=> String
resp.body.validation_evidence.per_finding_results[0].exploitable #=> String, one of "EXPLOITABLE", "NOT_EXPLOITABLE", "UNCERTAIN"
resp.body.validation_evidence.per_finding_results[0].confidence #=> Float
resp.body.validation_evidence.per_finding_results[0].flow_verdicts #=> Array
resp.body.validation_evidence.per_finding_results[0].flow_verdicts[0].flow_id #=> String
resp.body.validation_evidence.per_finding_results[0].flow_verdicts[0].verdict #=> String, one of "CONFIRMED", "DENIED", "INCONCLUSIVE"
resp.body.validation_evidence.per_finding_results[0].flow_verdicts[0].confidence #=> Float
resp.body.validation_evidence.per_finding_results[0].flow_verdicts[0].evidence #=> Array
resp.body.validation_evidence.per_finding_results[0].flow_verdicts[0].evidence[0] #=> String
resp.body.validation_evidence.per_finding_results[0].reasoning_chain #=> Array
resp.body.validation_evidence.per_finding_results[0].reasoning_chain[0].step #=> Integer
resp.body.validation_evidence.per_finding_results[0].reasoning_chain[0].claim #=> String
resp.body.validation_evidence.per_finding_results[0].reasoning_chain[0].source #=> String
resp.body.validation_evidence.per_finding_results[0].reasoning_chain[0].confidence #=> Float
resp.body.validation_evidence.per_finding_results[0].exploit_artifact.payload #=> String
resp.body.validation_evidence.per_finding_results[0].exploit_artifact.target_url #=> String
resp.body.validation_evidence.per_finding_results[0].exploit_artifact.http_method #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"
resp.body.validation_evidence.per_finding_results[0].exploit_artifact.headers #=> Hash
resp.body.validation_evidence.per_finding_results[0].exploit_artifact.headers["ArtifactCitation"] #=> String
resp.body.validation_evidence.per_finding_results[0].exploit_artifact.response_status #=> Integer
resp.body.validation_evidence.per_finding_results[0].exploit_artifact.response_snippet #=> String
resp.body.validation_evidence.per_finding_results[0].exploit_artifact.effect #=> String, one of "DATA_LEAKED", "ERROR_REVEALED", "BEHAVIOR_CHANGED", "NO_EFFECT"
resp.body.prevalidation_signals.produced_by #=> String
resp.body.prevalidation_signals.signals #=> Array
resp.body.prevalidation_signals.signals[0].subject_ref #=> String
resp.body.prevalidation_signals.signals[0].dimension #=> String, one of "EXPLOITABILITY", "BLAST_RADIUS", "NETWORK_EXPOSURE", "PRECONDITION", "CODE_CONTEXT", "LIKELIHOOD_ASSESSMENT", "IMPACT_ASSESSMENT"
resp.body.prevalidation_signals.signals[0].signal_strength #=> String, one of "NONE", "WEAK", "MODERATE", "STRONG"
resp.body.prevalidation_signals.signals[0].conclusion #=> String
resp.body.prevalidation_signals.signals[0].producer_id #=> String
resp.body.prevalidation_signals.signals[0].producer_version #=> String
resp.body.prevalidation_signals.signals[0].confidence #=> Float
resp.body.prevalidation_signals.signals[0].confidence_reasoning.summary #=> String
resp.body.prevalidation_signals.signals[0].confidence_reasoning.factors #=> Array
resp.body.prevalidation_signals.signals[0].confidence_reasoning.factors[0] #=> String
resp.body.prevalidation_signals.signals[0].computed.likelihood_band #=> String, one of "VERY_LOW", "LOW", "MODERATE", "HIGH"
resp.body.prevalidation_signals.signals[0].computed.impact_band #=> String, one of "VERY_LOW", "LOW", "MODERATE", "HIGH"
resp.body.prevalidation_signals.signals[0].computed.barriers #=> Integer
resp.body.prevalidation_signals.signals[0].preconditions.reachable_from_attacker.value #=> Boolean
resp.body.prevalidation_signals.signals[0].preconditions.reachable_from_attacker.basis #=> String, one of "CODE", "GRAPH", "FINDING", "INFERRED", "NO_EVIDENCE_DEFAULT"
resp.body.prevalidation_signals.signals[0].preconditions.reachable_from_attacker.reason #=> String
resp.body.prevalidation_signals.signals[0].preconditions.reachable_from_attacker.missing_info #=> String
resp.body.prevalidation_signals.signals[0].preconditions.configuration_needed.value #=> Boolean
resp.body.prevalidation_signals.signals[0].preconditions.configuration_needed.basis #=> String, one of "CODE", "GRAPH", "FINDING", "INFERRED", "NO_EVIDENCE_DEFAULT"
resp.body.prevalidation_signals.signals[0].preconditions.configuration_needed.reason #=> String
resp.body.prevalidation_signals.signals[0].preconditions.configuration_needed.missing_info #=> String
resp.body.prevalidation_signals.signals[0].preconditions.access_level.value #=> String, one of "NONE", "ANY_AUTHENTICATED", "PRIVILEGED"
resp.body.prevalidation_signals.signals[0].preconditions.access_level.basis #=> String, one of "CODE", "GRAPH", "FINDING", "INFERRED", "NO_EVIDENCE_DEFAULT"
resp.body.prevalidation_signals.signals[0].preconditions.access_level.reason #=> String
resp.body.prevalidation_signals.signals[0].preconditions.access_level.missing_info #=> String
resp.body.prevalidation_signals.signals[0].preconditions.user_interaction_required.value #=> Boolean
resp.body.prevalidation_signals.signals[0].preconditions.user_interaction_required.basis #=> String, one of "CODE", "GRAPH", "FINDING", "INFERRED", "NO_EVIDENCE_DEFAULT"
resp.body.prevalidation_signals.signals[0].preconditions.user_interaction_required.reason #=> String
resp.body.prevalidation_signals.signals[0].preconditions.user_interaction_required.missing_info #=> String
resp.body.prevalidation_signals.signals[0].impact_dimensions.attacker_gains.value #=> String, one of "EXECUTE", "MODIFY_PRIVILEGED", "MODIFY_DATA", "MODIFY_COSMETIC", "READ", "NEITHER"
resp.body.prevalidation_signals.signals[0].impact_dimensions.attacker_gains.basis #=> String, one of "CODE", "GRAPH", "FINDING", "INFERRED", "NO_EVIDENCE_DEFAULT"
resp.body.prevalidation_signals.signals[0].impact_dimensions.attacker_gains.reason #=> String
resp.body.prevalidation_signals.signals[0].impact_dimensions.attacker_gains.missing_info #=> String
resp.body.prevalidation_signals.signals[0].impact_dimensions.blast_radius.value #=> String, one of "CROSS_TENANT", "OTHER_USERS_IN_TENANT", "OWN_SCOPE"
resp.body.prevalidation_signals.signals[0].impact_dimensions.blast_radius.basis #=> String, one of "CODE", "GRAPH", "FINDING", "INFERRED", "NO_EVIDENCE_DEFAULT"
resp.body.prevalidation_signals.signals[0].impact_dimensions.blast_radius.reason #=> String
resp.body.prevalidation_signals.signals[0].impact_dimensions.blast_radius.missing_info #=> String
resp.body.prevalidation_signals.signals[0].impact_dimensions.target_value.value #=> String, one of "HIGH", "MEDIUM", "LOW"
resp.body.prevalidation_signals.signals[0].impact_dimensions.target_value.basis #=> String, one of "CODE", "GRAPH", "FINDING", "INFERRED", "NO_EVIDENCE_DEFAULT"
resp.body.prevalidation_signals.signals[0].impact_dimensions.target_value.reason #=> String
resp.body.prevalidation_signals.signals[0].impact_dimensions.target_value.missing_info #=> String
resp.body.prevalidation_signals.signals[0].exploitability.verdict #=> String, one of "EXPLOITABLE", "NOT_EXPLOITABLE", "UNCERTAIN"
resp.body.prevalidation_signals.signals[0].exploitability.reached_crown_jewels #=> Boolean
resp.body.prevalidation_signals.signals[0].exploitability.highest_layer_reached #=> Integer
resp.body.prevalidation_signals.signals[0].exploitability.confidence_tier #=> String, one of "SOURCE_READ", "STATIC_PROVEN", "BUILD_PROVEN", "RUNTIME_PROVEN"
resp.body.prevalidation_signals.signals[0].exploitability.scriptable #=> Boolean
resp.body.prevalidation_signals.signals[0].exploitability.source_validation_artifact_id #=> String
resp.body.remediation_proposal.patch #=> String
resp.body.remediation_proposal.format #=> String, one of "GIT_MAILBOX_PATCH", "GIT_BINARY_DIFF", "GIT_DIFF"
resp.body.remediation_proposal.filename #=> String
resp.body.remediation_proposal.patch_sha_256 #=> String
resp.body.patch.patch #=> String
resp.body.patch.format #=> String, one of "GIT_MAILBOX_PATCH", "GIT_BINARY_DIFF", "GIT_DIFF"
resp.body.patch.repository_name #=> String
resp.body.patch.patch_sha_256 #=> String
resp.body.patch.size_bytes #=> Integer
resp.body.patch.delivery.status #=> String, one of "PENDING", "SUCCEEDED", "FAILED", "SKIPPED", "ABANDONED"
resp.body.patch.delivery.target.s3.bucket #=> String
resp.body.patch.delivery.target.s3.key #=> String
resp.body.patch.delivery.target.s3.version #=> String
resp.body.patch.delivery.target.github.owner #=> String
resp.body.patch.delivery.target.github.repository #=> String
resp.body.patch.delivery.target.github.pull_request_number #=> Integer
resp.body.patch.delivery.target.github.head_sha #=> String
resp.body.patch.delivery.target.gitlab.project_path #=> String
resp.body.patch.delivery.target.gitlab.merge_request_number #=> Integer
resp.body.patch.delivery.target.gitlab.merge_request_uri #=> String
resp.body.patch.delivery.target.gitlab.head_sha #=> String
resp.body.patch.delivery.updated_at #=> Time
resp.body.patch.delivery.change_request.state #=> String, one of "OPEN", "MERGED", "CLOSED"
resp.body.patch.delivery.change_request.merged_at #=> Time
resp.body.patch.delivery.change_request.closed_at #=> Time
resp.body.patch.delivery.change_request.checked_at #=> Time
resp.body.raw #=> String
resp.producer.agent #=> String
resp.created_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :environment_id (required, String) —

    The environment that owns the issue.

  • :issue_id (required, String) —

    The issue the artifact is attached to.

  • :artifact_id (required, String) —

    The unique identifier of the artifact to retrieve.

Returns:

See Also:



1751
1752
1753
1754
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1751

def get_code_issue_artifact(params = {}, options = {})
  req = build_request(:get_code_issue_artifact, params)
  req.send_request(options)
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

Examples:

Request syntax with placeholder values


resp = client.get_code_scan({
  environment_id: "EnvironmentId", # required
  scan_run_id: "ScanRunId", # required
})

Response structure


resp.scan.scan_run_id #=> String
resp.scan.status #=> String, one of "SUBMITTED", "WAITING_FOR_BUILD", "BUILDING", "WAITING_FOR_SCAN", "SCANNING", "SUCCEEDED", "FAILED"
resp.scan.origin #=> String, one of "MANUAL", "SCHEDULED"
resp.scan.created_at #=> Time
resp.scan.completed_at #=> Time
resp.scan.failure_message #=> String
resp.scan.failure_stage #=> String, one of "SUBMITTED", "WAITING_FOR_BUILD", "BUILDING", "WAITING_FOR_SCAN", "SCANNING"

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :environment_id (required, String) —

    Environment that owns the scan.

  • :scan_run_id (required, String) —

    Scan to retrieve.

Returns:

See Also:



1794
1795
1796
1797
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1794

def get_code_scan(params = {}, options = {})
  req = build_request(:get_code_scan, params)
  req.send_request(options)
end

#get_collector(params = {}) ⇒ Types::GetCollectorOutput

Retrieves the current state of the Collector for the caller's account.

Examples:

Request syntax with placeholder values


resp = client.get_collector({
  collector_id: "CollectorId", # required
})

Response structure


resp.collector_id #=> String
resp.collector_arn #=> String
resp.type #=> String, one of "AWS_COLLECTOR"
resp.status #=> String, one of "ACTIVE", "PENDING_DELETION"
resp.config_recorder_arn #=> String
resp.kubernetes_cluster_role_arn #=> String
resp.created_at #=> Time
resp.updated_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :collector_id (required, String) —

    The unique identifier of the Collector to retrieve.

Returns:

See Also:



1837
1838
1839
1840
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1837

def get_collector(params = {}, options = {})
  req = build_request(:get_collector, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.get_collector_data_access_authorization({
  account_id: "AwsAccountId", # required
  collector_id: "CollectorId", # required
  environment_arn: "EnvironmentArn",
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :account_id (required, String) —

    The AWS account that owns the Collector.

  • :collector_id (required, String) —

    The unique identifier of the Collector.

  • :environment_arn (String) —

    The full ARN of the Environment requesting the Collector's data. The Environment must be in the caller's account. Continuum supplies this value as the continuum:EnvironmentArn condition key.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1881
1882
1883
1884
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1881

def get_collector_data_access_authorization(params = {}, options = {})
  req = build_request(:get_collector_data_access_authorization, params)
  req.send_request(options)
end

#get_environment(params = {}) ⇒ Types::GetEnvironmentOutput

Retrieves the current state and configuration of an environment.

Examples:

Request syntax with placeholder values


resp = client.get_environment({
  environment_id: "EnvironmentId", # required
})

Response structure


resp.environment_id #=> String
resp.environment_arn #=> String
resp.name #=> String
resp.status #=> String, one of "ACTIVE"
resp.status_message #=> String
resp.status_updated_at #=> Time
resp.created_at #=> Time
resp.updated_at #=> Time
resp.configuration.code_configuration.collector_details.collector_data_access_role_arn #=> String
resp.configuration.code_configuration.source_configuration.s3_sources #=> Array
resp.configuration.code_configuration.source_configuration.s3_sources[0].integration_id #=> String
resp.configuration.code_configuration.source_configuration.s3_sources[0].code_prefix #=> String
resp.configuration.code_configuration.source_configuration.s3_sources[0].context_prefix #=> String
resp.configuration.code_configuration.source_configuration.repository_sources #=> Array
resp.configuration.code_configuration.source_configuration.repository_sources[0].integration_id #=> String
resp.configuration.code_configuration.source_configuration.repository_sources[0].repository #=> String
resp.configuration.code_configuration.source_configuration.repository_sources[0].default_branch #=> String
resp.configuration.code_configuration.environment_configuration.network.allowed_domains #=> Array
resp.configuration.code_configuration.environment_configuration.network.allowed_domains[0] #=> String
resp.configuration.code_configuration.environment_configuration.scan_frequency #=> String
resp.configuration.code_configuration.environment_configuration.patch_creation_policy #=> String, one of "ENABLED", "DISABLED"
resp.configuration.code_configuration.environment_configuration.focus_mode #=> String, one of "COMPREHENSIVE", "FOCUSED"
resp.configuration.code_configuration.environment_configuration.issue_budget.max_issues_per_scan #=> Integer
resp.configuration.code_configuration.latest_scan.scan_run_id #=> String
resp.configuration.code_configuration.latest_scan.status #=> String, one of "SUBMITTED", "WAITING_FOR_BUILD", "BUILDING", "WAITING_FOR_SCAN", "SCANNING", "SUCCEEDED", "FAILED"
resp.configuration.code_configuration.latest_scan.origin #=> String, one of "MANUAL", "SCHEDULED"
resp.configuration.code_configuration.latest_scan.created_at #=> Time
resp.configuration.code_configuration.latest_scan.completed_at #=> Time
resp.configuration.code_configuration.latest_scan.failure_message #=> String
resp.configuration.code_configuration.latest_scan.failure_stage #=> String, one of "SUBMITTED", "WAITING_FOR_BUILD", "BUILDING", "WAITING_FOR_SCAN", "SCANNING"

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :environment_id (required, String) —

    The unique identifier of the environment to retrieve.

Returns:

See Also:



1946
1947
1948
1949
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1946

def get_environment(params = {}, options = {})
  req = build_request(:get_environment, params)
  req.send_request(options)
end

#get_integration(params = {}) ⇒ Types::GetIntegrationOutput

Reads a Continuum integration owned by the forwarded customer account.

Examples:

Request syntax with placeholder values


resp = client.get_integration({
  integration_id: "IntegrationId", # required
})

Response structure


resp.integration_id #=> String
resp.integration_arn #=> String
resp.name #=> String
resp.integration_type #=> String, one of "GITHUB", "GITLAB", "S3"
resp.provider_details.github.organization_name #=> String
resp.provider_details.gitlab.instance_url #=> String
resp.provider_details.gitlab.target_type #=> String, one of "GROUP", "PROJECT"
resp.provider_details.gitlab.target_path #=> String
resp.provider_details.gitlab.token_rotation #=> String, one of "AUTOMATIC", "NONE"
resp.provider_details.gitlab.expires_at #=> Time
resp.provider_details.s3.bucket #=> String
resp.provider_details.s3.role_arn #=> String
resp.created_at #=> Time
resp.updated_at #=> Time
resp.kms_key_id #=> String
resp.tags #=> Hash
resp.tags["TagKey"] #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :integration_id (required, String) —

    The unique identifier of the integration to retrieve.

Returns:

See Also:



1998
1999
2000
2001
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 1998

def get_integration(params = {}, options = {})
  req = build_request(:get_integration, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.get_package_decision({
  decision_id: "DecisionId", # required
})

Response structure


resp.decision_id #=> String
resp.evaluated_at #=> Time
resp.completed_at #=> Time
resp.canonical_purl #=> String
resp.evaluated_action #=> String, one of "ALLOW", "DENY"
resp.enforcement_action #=> String, one of "ALLOW", "DENY"
resp.enforcement_mode #=> String, one of "NONE", "AUDIT", "ENFORCE"
resp.reason #=> String, one of "NO_DENY_MATCH", "MALICIOUS_PACKAGE", "POLICY_RULE_MATCHED"

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :decision_id (required, String) —

    The ID of the decision, as returned by CreatePackageDecision.

Returns:

See Also:



2042
2043
2044
2045
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2042

def get_package_decision(params = {}, options = {})
  req = build_request(:get_package_decision, params)
  req.send_request(options)
end

#get_resource_policy(params = {}) ⇒ Types::GetResourcePolicyOutput

Retrieves the resource policy attached to a Continuum resource.

Examples:

Request syntax with placeholder values


resp = client.get_resource_policy({
  arn: "ResourcePolicyTargetArn", # required
})

Response structure


resp.arn #=> String
resp.policy #=> String
resp.revision_id #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :arn (required, String) —

    The ARN of a resource in the caller's account.

Returns:

See Also:



2074
2075
2076
2077
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2074

def get_resource_policy(params = {}, options = {})
  req = build_request(:get_resource_policy, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.get_supply_chain_managed_policy({
  id: "ManagedPolicyId", # required
})

Response structure


resp.id #=> String
resp.arn #=> String
resp.managed_by #=> String
resp.policy.name #=> String
resp.policy.description #=> String
resp.policy.rules #=> Array
resp.policy.rules[0].rule_id #=> String
resp.policy.rules[0].enforcement_mode #=> String, one of "AUDIT", "ENFORCE"
resp.policy.rules[0].deny_when.all_of #=> Array
resp.policy.rules[0].deny_when.all_of[0].signal #=> String, one of "PACKAGE_IDENTITY", "INSPECTOR_SEVERITY", "KEV", "MALICIOUS"
resp.policy.rules[0].deny_when.all_of[0].operator #=> String, one of "MATCHES", "AT_LEAST", "EQUALS", "NOT_EQUALS", "IN", "PRESENT"
resp.policy.rules[0].deny_when.all_of[0].value.package_identity.ecosystem #=> String
resp.policy.rules[0].deny_when.all_of[0].value.package_identity.name #=> String
resp.policy.rules[0].deny_when.all_of[0].value.package_identity.version #=> String
resp.policy.rules[0].deny_when.all_of[0].value.package_identity.version_range #=> String
resp.policy.rules[0].deny_when.all_of[0].value.severity #=> String, one of "LOW", "MEDIUM", "HIGH", "CRITICAL", "UNTRIAGED"
resp.policy.rules[0].deny_when.all_of[0].value.string_value #=> String
resp.policy.rules[0].deny_when.all_of[0].value.string_set #=> Array
resp.policy.rules[0].deny_when.all_of[0].value.string_set[0] #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :id (required, String) —

    The ID of the service-managed policy. ListSupplyChainPolicies returns the IDs.

Returns:

See Also:



2127
2128
2129
2130
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2127

def get_supply_chain_managed_policy(params = {}, options = {})
  req = build_request(:get_supply_chain_managed_policy, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.get_supply_chain_policy({
  id: "PolicyId", # required
})

Response structure


resp.id #=> String
resp.arn #=> String
resp.policy.name #=> String
resp.policy.description #=> String
resp.policy.rules #=> Array
resp.policy.rules[0].rule_id #=> String
resp.policy.rules[0].enforcement_mode #=> String, one of "AUDIT", "ENFORCE"
resp.policy.rules[0].deny_when.all_of #=> Array
resp.policy.rules[0].deny_when.all_of[0].signal #=> String, one of "PACKAGE_IDENTITY", "INSPECTOR_SEVERITY", "KEV", "MALICIOUS"
resp.policy.rules[0].deny_when.all_of[0].operator #=> String, one of "MATCHES", "AT_LEAST", "EQUALS", "NOT_EQUALS", "IN", "PRESENT"
resp.policy.rules[0].deny_when.all_of[0].value.package_identity.ecosystem #=> String
resp.policy.rules[0].deny_when.all_of[0].value.package_identity.name #=> String
resp.policy.rules[0].deny_when.all_of[0].value.package_identity.version #=> String
resp.policy.rules[0].deny_when.all_of[0].value.package_identity.version_range #=> String
resp.policy.rules[0].deny_when.all_of[0].value.severity #=> String, one of "LOW", "MEDIUM", "HIGH", "CRITICAL", "UNTRIAGED"
resp.policy.rules[0].deny_when.all_of[0].value.string_value #=> String
resp.policy.rules[0].deny_when.all_of[0].value.string_set #=> Array
resp.policy.rules[0].deny_when.all_of[0].value.string_set[0] #=> String
resp.created_at #=> Time
resp.updated_at #=> Time
resp.tags #=> Hash
resp.tags["TagKey"] #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :id (required, String) —

    The ID of the policy.

Returns:

See Also:



2182
2183
2184
2185
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2182

def get_supply_chain_policy(params = {}, options = {})
  req = build_request(:get_supply_chain_policy, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.get_supply_chain_policy_exception({
  id: "PolicyExceptionId", # required
})

Response structure


resp.id #=> String
resp.arn #=> String
resp.exception.name #=> String
resp.exception.policy_arn #=> String
resp.exception.rule_ids #=> Array
resp.exception.rule_ids[0] #=> String
resp.exception.package.ecosystem #=> String
resp.exception.package.name #=> String
resp.exception.package.version #=> String
resp.exception.package.version_range #=> String
resp.exception.justification #=> String
resp.exception.expires_at #=> Time
resp.status #=> String, one of "ACTIVE", "EXPIRED"
resp.created_at #=> Time
resp.updated_at #=> Time
resp.tags #=> Hash
resp.tags["TagKey"] #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :id (required, String) —

    The ID of the policy exception.

Returns:

See Also:



2234
2235
2236
2237
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2234

def get_supply_chain_policy_exception(params = {}, options = {})
  req = build_request(:get_supply_chain_policy_exception, params)
  req.send_request(options)
end

#get_vulnerability(params = {}) ⇒ Types::GetVulnerabilityResponse

Returns metadata for one vulnerability ID, such as an ID from MandatoryBaselineEvidence.vulnerabilityIds.

Examples:

Request syntax with placeholder values


resp = client.get_vulnerability({
  vulnerability_id: "VulnerabilityId", # required
})

Response structure


resp.id #=> String
resp.malicious #=> Boolean
resp.severity #=> String, one of "CRITICAL", "HIGH", "MEDIUM", "LOW", "INFO", "NONE", "UNKNOWN"
resp.analysis_state #=> String, one of "RESOLVED", "RESOLVED_WITH_PEDIGREE", "EXPLOITABLE", "IN_TRIAGE", "FALSE_POSITIVE", "NOT_AFFECTED"
resp.description #=> String
resp.cwes #=> Array
resp.cwes[0] #=> Integer
resp.advisory_urls #=> Array
resp.advisory_urls[0] #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :vulnerability_id (required, String) —

    The vulnerability ID, such as CVE-2024-1234 or an ID from MandatoryBaselineEvidence.vulnerabilityIds.

Returns:

See Also:



2278
2279
2280
2281
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2278

def get_vulnerability(params = {}, options = {})
  req = build_request(:get_vulnerability, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.list_associated_collectors({
  environment_id: "EnvironmentId", # required
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.associated_collectors #=> Array
resp.associated_collectors[0].collector_id #=> String
resp.associated_collectors[0].collector_arn #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :environment_id (required, String) —

    The unique identifier of the Environment whose associations to list.

  • :max_results (Integer) —

    Maximum number of associated Collectors to return.

  • :next_token (String) —

    Pagination token returned by a prior request.

Returns:

See Also:



2325
2326
2327
2328
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2325

def list_associated_collectors(params = {}, options = {})
  req = build_request(:list_associated_collectors, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.list_associated_environments({
  collector_id: "CollectorId", # required
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.associated_environments #=> Array
resp.associated_environments[0].environment_id #=> String
resp.associated_environments[0].environment_arn #=> String
resp.associated_environments[0].name #=> String
resp.associated_environments[0].status #=> String, one of "ACTIVE"
resp.associated_environments[0].created_at #=> Time
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :collector_id (required, String) —

    The unique identifier of the Collector whose associations to list.

  • :max_results (Integer) —

    Maximum number of Environment associations to return.

  • :next_token (String) —

    Pagination token returned by a prior request.

Returns:

See Also:



2372
2373
2374
2375
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2372

def list_associated_environments(params = {}, options = {})
  req = build_request(:list_associated_environments, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.list_code_findings({
  environment_id: "EnvironmentId", # required
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.items #=> Array
resp.items[0].finding_id #=> String
resp.items[0].finding_arn #=> String
resp.items[0].environment_id #=> String
resp.items[0].source #=> String
resp.items[0].source_finding_id #=> String
resp.items[0].reported_at #=> Time
resp.items[0].status #=> String, one of "SUBMITTED", "VALIDATING", "CONFIRMED", "DISCARDED", "NOT_PURSUED"
resp.items[0].status_updated_at #=> Time
resp.items[0].created_at #=> Time
resp.items[0].scan_run_id #=> String
resp.items[0].status_message #=> String
resp.items[0].discard_reason #=> String, one of "SCANNER_VALIDATED_FALSE_POSITIVE", "SCANNER_NEEDS_REVIEW", "FALSE_POSITIVE_VALIDATED_AGAINST_CONTEXT", "DUPLICATE_OF_OPEN_ISSUE", "DUPLICATE_OF_CLOSED_ISSUE", "COMPENSATING_CONTROL_PRESENT", "OUT_OF_SCOPE", "INSUFFICIENT_EVIDENCE", "PROCESSING_FAILED", "SOURCE_REPO_NOT_FOUND"
resp.items[0].discard_reasoning #=> String
resp.items[0].duplicate_of_issue_id #=> String
resp.items[0].created_issue_id #=> String
resp.items[0].completed_at #=> Time
resp.items[0].type #=> String, one of "CONTINUUM_CODE_VULN", "CUSTOMER_CODE_VULN"
resp.items[0].title #=> String
resp.items[0].severity #=> String, one of "UNKNOWN", "INFORMATIONAL", "LOW", "MEDIUM", "HIGH", "CRITICAL", "FATAL", "OTHER"
resp.items[0].category #=> String
resp.items[0].file_path #=> String
resp.items[0].not_pursued_reason #=> String, one of "FOCUS_MODE", "ISSUE_BUDGET"
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :environment_id (required, String) —

    The environment whose findings to list.

  • :max_results (Integer) —

    The maximum number of results to return in a single call.

  • :next_token (String) —

    A pagination token returned by a previous call. Set to null for the first request; use the returned token for subsequent calls.

Returns:

See Also:



2435
2436
2437
2438
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2435

def list_code_findings(params = {}, options = {})
  req = build_request(:list_code_findings, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.list_code_issue_artifacts({
  environment_id: "EnvironmentId", # required
  issue_id: "IssueId", # required
  artifact_type: "EVIDENCE", # accepts EVIDENCE, AGENT_COMMUNICATION, VALIDATION_EVIDENCE, REMEDIATION_PROPOSAL, DECISION, PATCH
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.items #=> Array
resp.items[0].artifact_id #=> String
resp.items[0].artifact_type #=> String, one of "EVIDENCE", "AGENT_COMMUNICATION", "VALIDATION_EVIDENCE", "REMEDIATION_PROPOSAL", "DECISION", "PATCH"
resp.items[0].media_type #=> String
resp.items[0].producer.agent #=> String
resp.items[0].content_size_bytes #=> Integer
resp.items[0].created_at #=> Time
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :environment_id (required, String) —

    The environment that owns the issue.

  • :issue_id (required, String) —

    The issue whose artifacts to list.

  • :artifact_type (String) —

    Optional filter for a semantic artifact category. Omit to list all artifacts attached to the issue.

  • :max_results (Integer) —

    The maximum number of results to return in a single call.

  • :next_token (String) —

    A pagination token returned by a previous call. Set to null for the first request; use the returned token for subsequent calls.

Returns:

See Also:



2492
2493
2494
2495
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2492

def list_code_issue_artifacts(params = {}, options = {})
  req = build_request(:list_code_issue_artifacts, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.list_code_issues({
  environment_id: "EnvironmentId", # required
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.items #=> Array
resp.items[0].issue_id #=> String
resp.items[0].issue_arn #=> String
resp.items[0].name #=> String
resp.items[0].severity #=> String, one of "LOW", "MEDIUM", "HIGH", "CRITICAL"
resp.items[0].confidence #=> Integer
resp.items[0].status #=> String, one of "CREATED", "IN_PROGRESS", "COMPLETED", "FAILED"
resp.items[0].phase #=> String, one of "VALIDATION", "PRIORITIZATION", "REMEDIATION"
resp.items[0].status_reason #=> String, one of "INTERNAL_ERROR", "REMEDIATION_FAILED"
resp.items[0].status_message #=> String
resp.items[0].status_updated_at #=> Time
resp.items[0].created_at #=> Time
resp.items[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :environment_id (required, String) —

    The environment whose issues to list.

  • :max_results (Integer) —

    The maximum number of results to return in a single call.

  • :next_token (String) —

    A pagination token returned by a previous call. Set to null for the first request; use the returned token for subsequent calls.

Returns:

See Also:



2545
2546
2547
2548
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2545

def list_code_issues(params = {}, options = {})
  req = build_request(:list_code_issues, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.list_code_scans({
  environment_id: "EnvironmentId", # required
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.scans #=> Array
resp.scans[0].scan_run_id #=> String
resp.scans[0].status #=> String, one of "SUBMITTED", "WAITING_FOR_BUILD", "BUILDING", "WAITING_FOR_SCAN", "SCANNING", "SUCCEEDED", "FAILED"
resp.scans[0].origin #=> String, one of "MANUAL", "SCHEDULED"
resp.scans[0].created_at #=> Time
resp.scans[0].completed_at #=> Time
resp.scans[0].failure_message #=> String
resp.scans[0].failure_stage #=> String, one of "SUBMITTED", "WAITING_FOR_BUILD", "BUILDING", "WAITING_FOR_SCAN", "SCANNING"
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :environment_id (required, String) —

    Environment whose scans to list.

  • :max_results (Integer) —

    Maximum number of scans to return.

  • :next_token (String) —

    Pagination token returned by a prior request.

Returns:

See Also:



2593
2594
2595
2596
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2593

def list_code_scans(params = {}, options = {})
  req = build_request(:list_code_scans, params)
  req.send_request(options)
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.

Examples:

Response structure


resp.items #=> Array
resp.items[0].collector_id #=> String
resp.items[0].collector_arn #=> String
resp.items[0].type #=> String, one of "AWS_COLLECTOR"
resp.items[0].status #=> String, one of "ACTIVE", "PENDING_DELETION"
resp.items[0].created_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Returns:

See Also:



2620
2621
2622
2623
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2620

def list_collectors(params = {}, options = {})
  req = build_request(:list_collectors, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.list_decision_evidence({
  decision_id: "DecisionId", # required
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.evidence #=> Array
resp.evidence[0].mandatory_baseline.baseline_arn #=> String
resp.evidence[0].mandatory_baseline.vulnerability_ids #=> Array
resp.evidence[0].mandatory_baseline.vulnerability_ids[0] #=> String
resp.evidence[0].policy_rule_match.policy_arn #=> String
resp.evidence[0].policy_rule_match.rule_id #=> String
resp.evidence[0].policy_rule_match.enforcement_mode #=> String, one of "NONE", "AUDIT", "ENFORCE"
resp.evidence[0].policy_exception.exception_arn #=> String
resp.evidence[0].policy_exception.policy_arn #=> String
resp.evidence[0].policy_exception.rule_ids #=> Array
resp.evidence[0].policy_exception.rule_ids[0] #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :decision_id (required, String) —

    The ID of the decision, as returned by CreatePackageDecision.

  • :max_results (Integer) —

    The maximum number of evidence items to return, from 1 to 100.

  • :next_token (String) —

    The token returned by a previous call, to get the next page of evidence.

Returns:

See Also:



2673
2674
2675
2676
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2673

def list_decision_evidence(params = {}, options = {})
  req = build_request(:list_decision_evidence, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.list_environments({
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.items #=> Array
resp.items[0].environment_id #=> String
resp.items[0].environment_arn #=> String
resp.items[0].name #=> String
resp.items[0].status #=> String, one of "ACTIVE"
resp.items[0].created_at #=> Time
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :max_results (Integer) —

    The maximum number of results to return in a single call.

  • :next_token (String) —

    A pagination token returned by a previous call. Set to null for the first request; use the returned token for subsequent calls.

Returns:

See Also:



2718
2719
2720
2721
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2718

def list_environments(params = {}, options = {})
  req = build_request(:list_environments, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.list_integrations({
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.items #=> Array
resp.items[0].integration_id #=> String
resp.items[0].integration_arn #=> String
resp.items[0].name #=> String
resp.items[0].integration_type #=> String, one of "GITHUB", "GITLAB", "S3"
resp.items[0].provider_details.github.organization_name #=> String
resp.items[0].provider_details.gitlab.instance_url #=> String
resp.items[0].provider_details.gitlab.target_type #=> String, one of "GROUP", "PROJECT"
resp.items[0].provider_details.gitlab.target_path #=> String
resp.items[0].provider_details.gitlab.token_rotation #=> String, one of "AUTOMATIC", "NONE"
resp.items[0].provider_details.gitlab.expires_at #=> Time
resp.items[0].provider_details.s3.bucket #=> String
resp.items[0].provider_details.s3.role_arn #=> String
resp.items[0].created_at #=> Time
resp.items[0].updated_at #=> Time
resp.items[0].kms_key_id #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :max_results (Integer) —

    Maximum number of integrations to return per page.

  • :next_token (String) —

    Pagination token returned by a previous call. Omit for the first request.

Returns:

See Also:



2770
2771
2772
2773
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2770

def list_integrations(params = {}, options = {})
  req = build_request(:list_integrations, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.list_package_decisions({
  completed_after: Time.now,
  completed_before: Time.now,
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.decisions #=> Array
resp.decisions[0].decision_id #=> String
resp.decisions[0].evaluated_at #=> Time
resp.decisions[0].completed_at #=> Time
resp.decisions[0].canonical_purl #=> String
resp.decisions[0].evaluated_action #=> String, one of "ALLOW", "DENY"
resp.decisions[0].enforcement_action #=> String, one of "ALLOW", "DENY"
resp.decisions[0].enforcement_mode #=> String, one of "NONE", "AUDIT", "ENFORCE"
resp.decisions[0].reason #=> String, one of "NO_DENY_MATCH", "MALICIOUS_PACKAGE", "POLICY_RULE_MATCHED"
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :completed_after (Time, DateTime, Date, Integer, String) —

    Only return decisions completed at or after this time.

  • :completed_before (Time, DateTime, Date, Integer, String) —

    Only return decisions completed before this time.

  • :max_results (Integer) —

    The maximum number of decisions to return, from 1 to 100.

  • :next_token (String) —

    The token returned by a previous call, to get the next page of decisions.

Returns:

See Also:



2824
2825
2826
2827
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2824

def list_package_decisions(params = {}, options = {})
  req = build_request(:list_package_decisions, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.list_supply_chain_policies({
  policy_type: "CUSTOMER_MANAGED", # accepts CUSTOMER_MANAGED, SERVICE_MANAGED
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.policies #=> Array
resp.policies[0].policy.id #=> String
resp.policies[0].policy.policy_type #=> String, one of "CUSTOMER_MANAGED", "SERVICE_MANAGED"
resp.policies[0].policy.arn #=> String
resp.policies[0].policy.name #=> String
resp.policies[0].policy.created_at #=> Time
resp.policies[0].policy.updated_at #=> Time
resp.policies[0].managed_policy.id #=> String
resp.policies[0].managed_policy.policy_type #=> String, one of "CUSTOMER_MANAGED", "SERVICE_MANAGED"
resp.policies[0].managed_policy.arn #=> String
resp.policies[0].managed_policy.managed_by #=> String
resp.policies[0].managed_policy.name #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :policy_type (String) —

    Filters the response by policy ownership. When omitted, both customer-managed and service-managed policies are returned.

  • :max_results (Integer) —

    The maximum number of policies to return, from 1 to 100.

  • :next_token (String) —

    The token returned by a previous call, to get the next page of policies.

Returns:

See Also:



2878
2879
2880
2881
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2878

def list_supply_chain_policies(params = {}, options = {})
  req = build_request(:list_supply_chain_policies, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.list_supply_chain_policy_exceptions({
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.exceptions #=> Array
resp.exceptions[0].id #=> String
resp.exceptions[0].arn #=> String
resp.exceptions[0].name #=> String
resp.exceptions[0].policy_arn #=> String
resp.exceptions[0].rule_ids #=> Array
resp.exceptions[0].rule_ids[0] #=> String
resp.exceptions[0].status #=> String, one of "ACTIVE", "EXPIRED"
resp.exceptions[0].expires_at #=> Time
resp.exceptions[0].created_at #=> Time
resp.exceptions[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :max_results (Integer) —

    The maximum number of policy exceptions to return, from 1 to 100.

  • :next_token (String) —

    The token returned by a previous call, to get the next page of policy exceptions.

Returns:

See Also:



2926
2927
2928
2929
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2926

def list_supply_chain_policy_exceptions(params = {}, options = {})
  req = build_request(:list_supply_chain_policy_exceptions, params)
  req.send_request(options)
end

#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceOutput

Returns the tags on a Continuum resource.

Examples:

Request syntax with placeholder values


resp = client.list_tags_for_resource({
  resource_arn: "TaggableResourceArn", # required
})

Response structure


resp.tags #=> Hash
resp.tags["TagKey"] #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :resource_arn (required, String) —

    The ARN of the resource whose tags to return.

Returns:

See Also:



2955
2956
2957
2958
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 2955

def list_tags_for_resource(params = {}, options = {})
  req = build_request(:list_tags_for_resource, params)
  req.send_request(options)
end

#put_resource_policy(params = {}) ⇒ Types::PutResourcePolicyOutput

Creates or replaces the resource policy attached to a Continuum resource.

Examples:

Request syntax with placeholder values


resp = client.put_resource_policy({
  arn: "ResourcePolicyTargetArn", # required
  policy: "ResourcePolicyInputDocument",
  expected_revision_id: "ResourcePolicyRevisionId",
})

Response structure


resp.arn #=> String
resp.policy #=> String
resp.revision_id #=> String

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :arn (required, String) —

    The ARN of a resource in the caller's account.

  • :policy (String) —

    Omit or supply an empty Statement array to clear resource-policy grants and store the canonical empty-statement policy. Cross-account access is denied; same-account access remains subject to identity policies. Use an explicit Deny statement to deny same-account principals too.

  • :expected_revision_id (String) —

    Optional optimistic-concurrency token for the currently observed policy.

Returns:

See Also:



3001
3002
3003
3004
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 3001

def put_resource_policy(params = {}, options = {})
  req = build_request(:put_resource_policy, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.start_integration_authorization({
  provider_type: "GITHUB", # required, accepts GITHUB
  name: "IntegrationName",
})

Response structure


resp.state #=> String
resp.code_challenge #=> String
resp.code_challenge_method #=> String, one of "S256"
resp.expires_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :provider_type (required, String) —

    Provider to authorize.

  • :name (String) —

    Optional name the resulting integration will be created with. When set, the service pre-reserves the name against the forwarded customer account.

Returns:

See Also:



3046
3047
3048
3049
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 3046

def start_integration_authorization(params = {}, options = {})
  req = build_request(:start_integration_authorization, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.tag_resource({
  resource_arn: "TaggableResourceArn", # required
  tags: { # required
    "TagKey" => "TagValue",
  },
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :resource_arn (required, String) —

    The ARN of the resource to tag.

  • :tags (required, Hash<String,String>) —

    The tags to add, as a map of tag keys to tag values.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



3075
3076
3077
3078
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 3075

def tag_resource(params = {}, options = {})
  req = build_request(:tag_resource, params)
  req.send_request(options)
end

#untag_resource(params = {}) ⇒ Struct

Removes tags from a Continuum resource. A key that the resource doesn't have is ignored.

Examples:

Request syntax with placeholder values


resp = client.untag_resource({
  resource_arn: "TaggableResourceArn", # required
  tag_keys: ["TagKey"], # required
})

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :resource_arn (required, String) —

    The ARN of the resource to untag.

  • :tag_keys (required, Array<String>) —

    The keys of the tags to remove.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



3102
3103
3104
3105
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 3102

def untag_resource(params = {}, options = {})
  req = build_request(:untag_resource, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.update_collector({
  collector_id: "CollectorId", # required
  name: "CollectorName",
  kubernetes_cluster_role: {
    set: {
      role_arn: "KubernetesClusterRoleArn", # required
      external_id: "KubernetesClusterExternalId",
    },
    remove: {
    },
  },
})

Response structure


resp.collector_id #=> String
resp.collector_arn #=> String
resp.type #=> String, one of "AWS_COLLECTOR"
resp.status #=> String, one of "ACTIVE", "PENDING_DELETION"
resp.config_recorder_arn #=> String
resp.kubernetes_cluster_role_arn #=> String
resp.created_at #=> Time
resp.updated_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :collector_id (required, String) —

    The unique identifier of the Collector to update.

  • :name (String) —

    The new customer-visible name.

  • :kubernetes_cluster_role (Types::KubernetesClusterRoleUpdate) —

    Atomic update to the IAM role configuration used to collect Kubernetes cluster metadata. The set variant requires a complete configuration; the authenticated caller must be allowed to pass its exact roleArn to Continuum. The remove variant clears both the role and external ID.

Returns:

See Also:



3163
3164
3165
3166
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 3163

def update_collector(params = {}, options = {})
  req = build_request(:update_collector, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.update_environment({
  environment_id: "EnvironmentId", # required
  name: "EnvironmentName",
  configuration: {
    code_configuration: {
      source_configuration: {
        s3_sources: [
          {
            integration_id: "IntegrationId", # required
            code_prefix: "EnvironmentSourcePrefix",
            context_prefix: "EnvironmentSourcePrefix",
          },
        ],
        repository_sources: [
          {
            integration_id: "IntegrationId", # required
            repository: "RepositoryName", # required
            default_branch: "RepositoryBranch",
          },
        ],
      },
      environment_configuration: {
        network: {
          allowed_domains: ["DomainName"],
        },
        scan_frequency: "ScanFrequency",
        patch_creation_policy: "ENABLED", # accepts ENABLED, DISABLED
        focus_mode: "COMPREHENSIVE", # accepts COMPREHENSIVE, FOCUSED
        issue_budget: {
          max_issues_per_scan: 1, # required
        },
      },
    },
  },
})

Response structure


resp.environment_id #=> String
resp.environment_arn #=> String
resp.name #=> String
resp.status #=> String, one of "ACTIVE"
resp.status_message #=> String
resp.status_updated_at #=> Time
resp.created_at #=> Time
resp.configuration.code_configuration.collector_details.collector_data_access_role_arn #=> String
resp.configuration.code_configuration.source_configuration.s3_sources #=> Array
resp.configuration.code_configuration.source_configuration.s3_sources[0].integration_id #=> String
resp.configuration.code_configuration.source_configuration.s3_sources[0].code_prefix #=> String
resp.configuration.code_configuration.source_configuration.s3_sources[0].context_prefix #=> String
resp.configuration.code_configuration.source_configuration.repository_sources #=> Array
resp.configuration.code_configuration.source_configuration.repository_sources[0].integration_id #=> String
resp.configuration.code_configuration.source_configuration.repository_sources[0].repository #=> String
resp.configuration.code_configuration.source_configuration.repository_sources[0].default_branch #=> String
resp.configuration.code_configuration.environment_configuration.network.allowed_domains #=> Array
resp.configuration.code_configuration.environment_configuration.network.allowed_domains[0] #=> String
resp.configuration.code_configuration.environment_configuration.scan_frequency #=> String
resp.configuration.code_configuration.environment_configuration.patch_creation_policy #=> String, one of "ENABLED", "DISABLED"
resp.configuration.code_configuration.environment_configuration.focus_mode #=> String, one of "COMPREHENSIVE", "FOCUSED"
resp.configuration.code_configuration.environment_configuration.issue_budget.max_issues_per_scan #=> Integer
resp.configuration.code_configuration.latest_scan.scan_run_id #=> String
resp.configuration.code_configuration.latest_scan.status #=> String, one of "SUBMITTED", "WAITING_FOR_BUILD", "BUILDING", "WAITING_FOR_SCAN", "SCANNING", "SUCCEEDED", "FAILED"
resp.configuration.code_configuration.latest_scan.origin #=> String, one of "MANUAL", "SCHEDULED"
resp.configuration.code_configuration.latest_scan.created_at #=> Time
resp.configuration.code_configuration.latest_scan.completed_at #=> Time
resp.configuration.code_configuration.latest_scan.failure_message #=> String
resp.configuration.code_configuration.latest_scan.failure_stage #=> String, one of "SUBMITTED", "WAITING_FOR_BUILD", "BUILDING", "WAITING_FOR_SCAN", "SCANNING"

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :environment_id (required, String) —

    The unique identifier of the environment to update.

  • :name (String) —

    The new customer-visible name.

  • :configuration (Types::UpdateEnvironmentConfiguration) —

    Type-specific configuration changes. Omission preserves the configuration.

Returns:

See Also:



3268
3269
3270
3271
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 3268

def update_environment(params = {}, options = {})
  req = build_request(:update_environment, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.update_integration({
  integration_id: "IntegrationId", # required
  provider_configuration: { # required
    s3: {
      role_arn: "IntegrationS3RoleArn", # required
      external_id: "IntegrationS3ExternalId",
    },
  },
})

Response structure


resp.integration_id #=> String
resp.integration_arn #=> String
resp.name #=> String
resp.integration_type #=> String, one of "GITHUB", "GITLAB", "S3"
resp.provider_details.github.organization_name #=> String
resp.provider_details.gitlab.instance_url #=> String
resp.provider_details.gitlab.target_type #=> String, one of "GROUP", "PROJECT"
resp.provider_details.gitlab.target_path #=> String
resp.provider_details.gitlab.token_rotation #=> String, one of "AUTOMATIC", "NONE"
resp.provider_details.gitlab.expires_at #=> Time
resp.provider_details.s3.bucket #=> String
resp.provider_details.s3.role_arn #=> String
resp.created_at #=> Time
resp.updated_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :integration_id (required, String) —

    The unique identifier of the S3 integration to update.

  • :provider_configuration (required, Types::UpdateProviderConfiguration) —

    Provider-specific changes to apply. The union member must match the integration's provider type, and only S3 integrations can be updated.

Returns:

See Also:



3327
3328
3329
3330
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 3327

def update_integration(params = {}, options = {})
  req = build_request(:update_integration, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.update_supply_chain_policy({
  id: "PolicyId", # required
  policy: { # required
    name: "PolicyName", # required
    description: "PolicyDescription",
    rules: [ # required
      {
        rule_id: "RuleId", # required
        enforcement_mode: "AUDIT", # required, accepts AUDIT, ENFORCE
        deny_when: { # required
          all_of: [ # required
            {
              signal: "PACKAGE_IDENTITY", # required, accepts PACKAGE_IDENTITY, INSPECTOR_SEVERITY, KEV, MALICIOUS
              operator: "MATCHES", # required, accepts MATCHES, AT_LEAST, EQUALS, NOT_EQUALS, IN, PRESENT
              value: {
                package_identity: {
                  ecosystem: "Ecosystem", # required
                  name: "PackageName", # required
                  version: "PackageVersion",
                  version_range: "PackageVersionRange",
                },
                severity: "LOW", # accepts LOW, MEDIUM, HIGH, CRITICAL, UNTRIAGED
                string_value: "ConditionScalar",
                string_set: ["ConditionScalar"],
              },
            },
          ],
        },
      },
    ],
  },
})

Response structure


resp.id #=> String
resp.arn #=> String
resp.policy.name #=> String
resp.policy.description #=> String
resp.policy.rules #=> Array
resp.policy.rules[0].rule_id #=> String
resp.policy.rules[0].enforcement_mode #=> String, one of "AUDIT", "ENFORCE"
resp.policy.rules[0].deny_when.all_of #=> Array
resp.policy.rules[0].deny_when.all_of[0].signal #=> String, one of "PACKAGE_IDENTITY", "INSPECTOR_SEVERITY", "KEV", "MALICIOUS"
resp.policy.rules[0].deny_when.all_of[0].operator #=> String, one of "MATCHES", "AT_LEAST", "EQUALS", "NOT_EQUALS", "IN", "PRESENT"
resp.policy.rules[0].deny_when.all_of[0].value.package_identity.ecosystem #=> String
resp.policy.rules[0].deny_when.all_of[0].value.package_identity.name #=> String
resp.policy.rules[0].deny_when.all_of[0].value.package_identity.version #=> String
resp.policy.rules[0].deny_when.all_of[0].value.package_identity.version_range #=> String
resp.policy.rules[0].deny_when.all_of[0].value.severity #=> String, one of "LOW", "MEDIUM", "HIGH", "CRITICAL", "UNTRIAGED"
resp.policy.rules[0].deny_when.all_of[0].value.string_value #=> String
resp.policy.rules[0].deny_when.all_of[0].value.string_set #=> Array
resp.policy.rules[0].deny_when.all_of[0].value.string_set[0] #=> String
resp.created_at #=> Time
resp.updated_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :id (required, String) —

    The ID of the policy to update.

  • :policy (required, Types::SupplyChainPolicy) —

    The updated policy. The name must match the existing name, and the rules must include every existing rule ID.

Returns:

See Also:



3415
3416
3417
3418
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 3415

def update_supply_chain_policy(params = {}, options = {})
  req = build_request(:update_supply_chain_policy, params)
  req.send_request(options)
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.

Examples:

Request syntax with placeholder values


resp = client.update_supply_chain_policy_exception({
  id: "PolicyExceptionId", # required
  exception: { # required
    name: "ExceptionName", # required
    policy_arn: "PolicyReferenceArn", # required
    rule_ids: ["RuleId"], # required
    package: { # required
      ecosystem: "Ecosystem", # required
      name: "PackageName", # required
      version: "PackageVersion",
      version_range: "PackageVersionRange",
    },
    justification: "Justification", # required
    expires_at: Time.now, # required
  },
})

Response structure


resp.id #=> String
resp.arn #=> String
resp.exception.name #=> String
resp.exception.policy_arn #=> String
resp.exception.rule_ids #=> Array
resp.exception.rule_ids[0] #=> String
resp.exception.package.ecosystem #=> String
resp.exception.package.name #=> String
resp.exception.package.version #=> String
resp.exception.package.version_range #=> String
resp.exception.justification #=> String
resp.exception.expires_at #=> Time
resp.status #=> String, one of "ACTIVE", "EXPIRED"
resp.created_at #=> Time
resp.updated_at #=> Time

Parameters:

  • params (Hash) (defaults to: {}) —

    ({})

Options Hash (params):

  • :id (required, String) —

    The ID of the policy exception to update.

  • :exception (required, Types::SupplyChainPolicyException) —

    The updated policy exception. The name and policyArn must match the existing exception.

Returns:

See Also:



3483
3484
3485
3486
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 3483

def update_supply_chain_policy_exception(params = {}, options = {})
  req = build_request(:update_supply_chain_policy_exception, params)
  req.send_request(options)
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

Parameters:

  • waiter_name (Symbol)
  • params (Hash) (defaults to: {}) —

    ({})

  • options (Hash) (defaults to: {}) —

    ({})

Options Hash (options):

  • :max_attempts (Integer)
  • :delay (Integer)
  • :before_attempt (Proc)
  • :before_wait (Proc)

Yields:

  • (w.waiter)

Returns:

  • (Boolean) —

    Returns true if the waiter was successful.

Raises:

  • (Errors::FailureStateError) —

    Raised when the waiter terminates because the waiter has entered a state that it will not transition out of, preventing success.

  • (Errors::TooManyAttemptsError) —

    Raised when the configured maximum number of attempts have been made, and the waiter is not yet successful.

  • (Errors::UnexpectedError) —

    Raised when an error is encounted while polling for a resource that is not expected.

  • (Errors::NoSuchWaiterError) —

    Raised when you request to wait for an unknown state.



3598
3599
3600
3601
3602
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/client.rb', line 3598

def wait_until(waiter_name, params = {}, options = {})
  w = waiter(waiter_name, options)
  yield(w.waiter) if block_given? # deprecated
  w.wait(params)
end