Class: Aws::Assurance::Client

Inherits:
Seahorse::Client::Base show all
Includes:
ClientStubs
Defined in:
gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb

Overview

An API client for Assurance. To construct a client, you need to configure a :region and :credentials.

client = Aws::Assurance::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 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.

  • :event_stream_handler (Proc) —

    When an EventStream or Proc object is provided, it will be used as callback for each chunk of event stream response received along the way.

  • :ignore_configured_endpoint_urls (Boolean) —

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

  • :input_event_stream_handler (Proc) —

    When an EventStream or Proc object is provided, it can be used for sending events for the event stream.

  • :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.

  • :output_event_stream_handler (Proc) —

    When an EventStream or Proc object is provided, it will be used as callback for each chunk of event stream response received along the way.

  • :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 ClientStubs#stub_responses. See 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::Assurance::EndpointProvider) —

    The endpoint provider used to resolve endpoints. Any object that responds to #resolve_endpoint(parameters) where parameters is a Struct similar to Aws::Assurance::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.



490
491
492
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 490

def initialize(*args)
  super
end

Instance Method Details

#accept_invitation(params = {}) ⇒ Types::AcceptInvitationOutput

Accepts a pending invitation to connect your account to an environment. To use this operation, you must have permission to call iam:CreateServiceLinkedRole.

The invitation becomes ACTIVE when AWS Assurance can assume its service-linked role in your account. If AWS Assurance can't create or assume the role, the request fails and the invitation stays PENDING.

Examples:

Example: Accept an invitation


# Accepts the invitation to connect the payments team's member account to the governance environment with the AWS
# Assurance service-linked role.

resp = client.accept_invitation({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
})

resp.to_h outputs the following:
{
  status: "ACTIVE", 
}

Request syntax with placeholder values


resp = client.accept_invitation({
  environment_arn: "EnvironmentArn", # required
})

Response structure


resp.status #=> String, one of "PENDING", "ACTIVE", "REJECTED", "REVOKED", "EXPIRED"

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of the environment that sent the invitation. At most one active or pending invitation exists for a given account and environment at a time.

Returns:

See Also:



542
543
544
545
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 542

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

#assign_permission_set(params = {}) ⇒ Types::AssignPermissionSetOutput

Assigns a permission set to a principal with optional scopes.

Examples:

Example: Assign a permission set


# Assigns the payments auditor permission set to an auditor's IAM Identity Center user, scoped to the payments-prod
# project.

resp = client.assign_permission_set({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  permission_set_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE88888", 
  principal_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE12345", 
  principal_type: "USER", 
  scopes: [
    {
      type: "PROJECT", 
      id: "payments-prod", 
    }, 
  ], 
})

resp.to_h outputs the following:
{
  assignment_ids: [
    "a1b2c3d4-5678-90ab-cdef-EXAMPLE99999", 
  ], 
}

Request syntax with placeholder values


resp = client.assign_permission_set({
  environment_arn: "EnvironmentArn", # required
  principal_type: "USER", # required, accepts USER, GROUP
  principal_id: "PrincipalId", # required
  permission_set_id: "PermissionSetId", # required
  scopes: [
    {
      type: "ENVIRONMENT", # required, accepts ENVIRONMENT, PROJECT
      id: "ScopeId", # required
    },
  ],
})

Response structure


resp.assignment_ids #=> Array
resp.assignment_ids[0] #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :principal_type (required, String) —

    The type of principal the permission set is assigned to.

  • :principal_id (required, String) —

    The unique identifier of the principal the permission set is assigned to.

  • :permission_set_id (required, String) —

    The identifier of the permission set.

  • :scopes (Array<Types::AssignmentScope>) —

    The scopes the assignment applies to.

Returns:

See Also:



619
620
621
622
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 619

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

#batch_get_comment(params = {}) ⇒ Types::BatchGetCommentOutput

Retrieves multiple comments in a single request. Use it instead of calling GetComment for each comment. If the operation can't return a comment, it lists the comment in errors and still succeeds.

Examples:

Example: Batch get comments on a control


# Retrieves several comments on a control in one request during the PCI DSS review.

resp = client.batch_get_comment({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  keys: [
    {
      comment_id: "1773484200000", 
      control_id: "8.2.1", 
      framework: "AWS:PCI-DSS", 
      framework_version: "4", 
    }, 
  ], 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  errors: [
  ], 
  comments: [
    {
      added_by: "arn:aws:iam::111122223333:role/AssuranceAuditor", 
      comment_id: "1773484200000", 
      content: "Evidence attached; the Q1 cardholder data environment scan is complete.", 
      control_id: "8.2.1", 
      created_at: Time.parse("2026-03-14T10:30:00Z"), 
      environment: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
      framework: "AWS:PCI-DSS", 
      framework_version: "4", 
      project: "payments-prod", 
      task_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE66666", 
      updated_at: Time.parse("2026-03-14T11:15:00Z"), 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.batch_get_comment({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  keys: [ # required
    {
      framework: "FrameworkName", # required
      framework_version: "FrameworkVersion", # required
      control_id: "ControlID", # required
      comment_id: "CommentId", # required
    },
  ],
})

Response structure


resp.comments #=> Array
resp.comments[0].environment #=> String
resp.comments[0].project #=> String
resp.comments[0].framework #=> String
resp.comments[0].framework_version #=> String
resp.comments[0].control_id #=> String
resp.comments[0].task_id #=> String
resp.comments[0].comment_id #=> String
resp.comments[0].content #=> String
resp.comments[0].added_by #=> String
resp.comments[0].created_at #=> Time
resp.comments[0].updated_at #=> Time
resp.errors #=> Array
resp.errors[0].key.framework #=> String
resp.errors[0].key.framework_version #=> String
resp.errors[0].key.control_id #=> String
resp.errors[0].key.comment_id #=> String
resp.errors[0].code #=> String
resp.errors[0].message #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The name of the project.

  • :keys (required, Array<Types::CommentKey>) —

    The comments to retrieve, 1 to 100 per request. Keys must be unique within a request.

Returns:

See Also:



723
724
725
726
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 723

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

#batch_get_control(params = {}) ⇒ Types::BatchGetControlOutput

Retrieves multiple controls in a single request. Use it instead of calling GetControl for each control. If the operation can't return a control, it lists the control in errors and still succeeds.

Examples:

Example: Batch get controls


# Retrieves several PCI DSS controls in one request while scoping the payments-prod assessment, with any control that
# could not be returned reported per item.

resp = client.batch_get_control({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  keys: [
    {
      control_id: "8.2.1", 
      framework: "AWS:PCI-DSS", 
      framework_version: "4", 
    }, 
    {
      control_id: "99.1.1", 
      framework: "AWS:PCI-DSS", 
      framework_version: "4", 
    }, 
  ], 
})

resp.to_h outputs the following:
{
  errors: [
    {
      key: {
        control_id: "99.1.1", 
        framework: "AWS:PCI-DSS", 
        framework_version: "4", 
      }, 
      code: "NOT_FOUND", 
      message: "No control was found for the requested key in this framework version.", 
    }, 
  ], 
  controls: [
    {
      type: "MANAGED", 
      control_id: "8.2.1", 
      control_intents: [
        "identityAuthenticationConfiguration", 
      ], 
      description: "All users are assigned a unique ID before access to system components or cardholder data is allowed. Applicability Notes This requirement is not intended to apply to user accounts within point-of-sale terminals that have access to only one card number at a time to facilitate a single transaction (such as IDs used by cashiers on point-of-sale terminals).\n\nPurpose:\nThe ability to trace actions performed on a computer system to an individual establishes accountability and traceability and is fundamental to establishing effective access controls. By ensuring each user is uniquely identified, instead of using one ID for several employees, an organization can maintain individual responsibility for actions and an effective record in the audit log per employee. In addition, this will assist with issue resolution and containment when misuse or malicious intent occurs.", 
      framework: "AWS:PCI-DSS", 
      framework_version: "4", 
      group_id: "8.", 
      requirements: [
        {
          description: "Each user with access to system components or cardholder data is assigned a unique ID that is not shared with any other user. (This does not apply to user accounts within point-of-sale terminals that have access to only one card number at a time to facilitate a single transaction.)", 
          id: "8.2.1-R1", 
        }, 
        {
          description: "A unique user ID is assigned to each user before that user is permitted access to system components or cardholder data.", 
          id: "8.2.1-R2", 
        }, 
      ], 
      status: "ACTIVE", 
      title: "User identification and related accounts for users and administrators are strictly managed throughout an accounts lifecycle.", 
      workflow_type: "automated-scan", 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.batch_get_control({
  environment_arn: "EnvironmentArn", # required
  keys: [ # required
    {
      framework: "FrameworkName", # required
      framework_version: "FrameworkVersion", # required
      control_id: "ControlID", # required
    },
  ],
})

Response structure


resp.controls #=> Array
resp.controls[0].type #=> String, one of "MANAGED", "CUSTOM"
resp.controls[0].framework #=> String
resp.controls[0].control_id #=> String
resp.controls[0].framework_version #=> String
resp.controls[0].group_id #=> String
resp.controls[0].title #=> String
resp.controls[0].description #=> String
resp.controls[0].requirements #=> Array
resp.controls[0].requirements[0].id #=> String
resp.controls[0].requirements[0].description #=> String
resp.controls[0].control_intents #=> Array
resp.controls[0].control_intents[0] #=> String
resp.controls[0].workflow_type #=> String, one of "automated-scan", "document", "hybrid"
resp.controls[0].status #=> String, one of "ACTIVE", "PENDING", "PRE_PROD"
resp.controls[0].created_at #=> Time
resp.controls[0].updated_at #=> Time
resp.errors #=> Array
resp.errors[0].key.framework #=> String
resp.errors[0].key.framework_version #=> String
resp.errors[0].key.control_id #=> String
resp.errors[0].code #=> String
resp.errors[0].message #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :keys (required, Array<Types::ControlKey>) —

    The controls to retrieve, 1 to 100 per request. Keys must be unique within a request.

Returns:

See Also:



850
851
852
853
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 850

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

#batch_get_task(params = {}) ⇒ Types::BatchGetTaskOutput

Retrieves multiple tasks in a single request. Use it instead of calling GetTask for each task. If the operation can't return a task, it lists the task in errors and still succeeds.

Examples:

Example: Get multiple tasks


# Retrieves several payments-prod PCI-DSS remediation tasks in one request instead of calling GetTask for each.

resp = client.batch_get_task({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  keys: [
    {
      control_id: "8.2.1", 
      framework: "AWS:PCI-DSS", 
      framework_version: "4", 
      task_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE66666", 
    }, 
    {
      control_id: "8.2.1", 
      framework: "AWS:PCI-DSS", 
      framework_version: "4", 
      task_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE88888", 
    }, 
  ], 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  errors: [
  ], 
  tasks: [
    {
      control_id: "8.2.1", 
      created_at: Time.parse("2026-03-14T09:30:00Z"), 
      created_by: "Assurance", 
      description: "Replace the shared payments-prod database account with per-user IDs so every user is assigned a unique ID before access is granted.", 
      due_at: Time.parse("2026-03-21T09:30:00Z"), 
      environment: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
      framework: "AWS:PCI-DSS", 
      framework_version: "4", 
      priority: "HIGH", 
      project: "payments-prod", 
      status: "COMPLETED", 
      task_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE66666", 
      title: "Assign unique user IDs for payments-prod database access", 
      updated_at: Time.parse("2026-03-15T14:45:00Z"), 
    }, 
    {
      control_id: "8.2.1", 
      created_at: Time.parse("2026-03-14T09:35:00Z"), 
      created_by: "Assurance", 
      description: "Document the payments-prod unique user ID standard so the PCI-DSS control has supporting evidence.", 
      due_at: Time.parse("2026-03-28T09:30:00Z"), 
      environment: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
      framework: "AWS:PCI-DSS", 
      framework_version: "4", 
      priority: "MEDIUM", 
      project: "payments-prod", 
      status: "OPEN", 
      task_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE88888", 
      title: "Document the payments-prod unique user ID standard for PCI-DSS 8.2.1", 
      updated_at: Time.parse("2026-03-14T09:35:00Z"), 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.batch_get_task({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  keys: [ # required
    {
      framework: "FrameworkName", # required
      framework_version: "FrameworkVersion", # required
      control_id: "ControlID", # required
      task_id: "TaskId", # required
    },
  ],
})

Response structure


resp.tasks #=> Array
resp.tasks[0].environment #=> String
resp.tasks[0].project #=> String
resp.tasks[0].framework #=> String
resp.tasks[0].framework_version #=> String
resp.tasks[0].control_id #=> String
resp.tasks[0].task_id #=> String
resp.tasks[0].title #=> String
resp.tasks[0].description #=> String
resp.tasks[0].status #=> String, one of "OPEN", "PENDING", "COMPLETED", "CANCELLED"
resp.tasks[0].created_by #=> String
resp.tasks[0].due_at #=> Time
resp.tasks[0].priority #=> String, one of "HIGH", "MEDIUM", "LOW"
resp.tasks[0].created_at #=> Time
resp.tasks[0].updated_at #=> Time
resp.errors #=> Array
resp.errors[0].key.framework #=> String
resp.errors[0].key.framework_version #=> String
resp.errors[0].key.control_id #=> String
resp.errors[0].key.task_id #=> String
resp.errors[0].code #=> String
resp.errors[0].message #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The name of the project.

  • :keys (required, Array<Types::TaskKey>) —

    The tasks to retrieve, 1 to 100 per request. Keys must be unique within a request.

Returns:

See Also:



982
983
984
985
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 982

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

#chat(params = {}) ⇒ Types::ChatOutput

Starts a streaming chat turn with the AWS Assurance agent. Returns an event stream of chat events, including chunks, tool calls, and errors.

Examples:

EventStream Operation Example


# You can process the event once it arrives immediately, or wait until the
# full response is complete and iterate through the eventstream enumerator.

# To interact with event immediately, you need to register chat
# with callbacks. Callbacks can be registered for specific events or for all
# events, including error events.

# Callbacks can be passed into the `:event_stream_handler` option or within a
# block statement attached to the #chat call directly. Hybrid
# pattern of both is also supported.

# `:event_stream_handler` option takes in either a Proc object or
# Aws::Assurance::EventStreams::ChatEventStream object.

# Usage pattern a): Callbacks with a block attached to #chat
# Example for registering callbacks for all event types and an error event
client.chat(
  # params input
) do |stream|
  stream.on_error_event do |event|
    # catch unmodeled error event in the stream
    raise event
    # => Aws::Errors::EventError
    # event.event_type => :error
    # event.error_code => String
    # event.error_message => String
  end

  stream.on_event do |event|
    # process all events arrive
    puts event.event_type
    # ...
  end
end

# Usage pattern b): Pass in `:event_stream_handler` for #chat
#  1) Create a Aws::Assurance::EventStreams::ChatEventStream object
#  Example for registering callbacks with specific events

handler = Aws::Assurance::EventStreams::ChatEventStream.new
handler.on_chunk_event do |event|
  event # => Aws::Assurance::Types::chunk
end
handler.on_tool_call_event do |event|
  event # => Aws::Assurance::Types::toolCall
end
handler.on_response_event do |event|
  event # => Aws::Assurance::Types::response
end
handler.on_chat_error_event do |event|
  event # => Aws::Assurance::Types::chatError
end

client.chat(
  # params inputs
  event_stream_handler: handler
)

#  2) Use a Ruby Proc object
#  Example for registering callbacks with specific events
handler = Proc.new do |stream|
  stream.on_chunk_event do |event|
    event # => Aws::Assurance::Types::chunk
  end
  stream.on_tool_call_event do |event|
    event # => Aws::Assurance::Types::toolCall
  end
  stream.on_response_event do |event|
    event # => Aws::Assurance::Types::response
  end
  stream.on_chat_error_event do |event|
    event # => Aws::Assurance::Types::chatError
  end
end

client.chat(
  # params inputs
  event_stream_handler: handler
)

#  Usage pattern c): Hybrid pattern of a) and b)
handler = Aws::Assurance::EventStreams::ChatEventStream.new
handler.on_chunk_event do |event|
  event # => Aws::Assurance::Types::chunk
end
handler.on_tool_call_event do |event|
  event # => Aws::Assurance::Types::toolCall
end
handler.on_response_event do |event|
  event # => Aws::Assurance::Types::response
end
handler.on_chat_error_event do |event|
  event # => Aws::Assurance::Types::chatError
end

client.chat(
  # params input
  event_stream_handler: handler
) do |stream|
  stream.on_error_event do |event|
    # catch unmodeled error event in the stream
    raise event
    # => Aws::Errors::EventError
    # event.event_type => :error
    # event.error_code => String
    # event.error_message => String
  end
end

# You can also iterate through events after the response complete.
# Events are available at
resp.event_stream # => Enumerator
# For parameter input example, please refer to following request syntax.

Example: Continue a chat session


# Sends a follow-up question to the AWS Assurance agent to review the open controls in a PCI-DSS assessment.

resp = client.chat({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  expected_sequence_number: 2, 
  message: "Summarize the open controls in my PCI-DSS assessment.", 
  session_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE88888", 
})

resp.to_h outputs the following:
{
  event_stream: {
    chunk: {
      message: "Your payments-prod assessment has 3 open controls awaiting evidence.", 
    }, 
  }, 
  sequence_number: 3, 
  session_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE88888", 
}

Request syntax with placeholder values


resp = client.chat({
  message: "ChatInputContent", # required
  session_id: "ChatSessionId",
  environment_arn: "EnvironmentArn", # required
  expected_sequence_number: 1,
})

Response structure


# All events are available at resp.event_stream:
resp.event_stream #=> Enumerator
resp.event_stream.event_types #=> [:chunk, :tool_call, :response, :chat_error]

# For :chunk event available at #on_chunk_event callback and response eventstream enumerator:
event.message #=> String

# For :tool_call event available at #on_tool_call_event callback and response eventstream enumerator:
event.message #=> String
event.event_description #=> String

# For :response event available at #on_response_event callback and response eventstream enumerator:
 #=> EmptyStruct
# For :chat_error event available at #on_chat_error_event callback and response eventstream enumerator:
event.message #=> String

resp.session_id #=> String
resp.sequence_number #=> Integer

Parameters:

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

    ({})

Options Hash (params):

  • :message (required, String) —

    The chat message to send to the AWS Assurance agent.

  • :session_id (String) —

    The session to continue. Pass the sessionId returned by a previous Chat call to continue that session. If you omit it, AWS Assurance starts a new session. If the session doesn't exist or has expired, the operation returns ResourceNotFoundException. If the format isn't valid, the operation returns ValidationException.

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :expected_sequence_number (Integer) —

    The sequence number of the last message you received. If the service detects a more recent sequence number, the request fails with ConflictException, indicating a concurrent update.

Yields:

  • (event_stream_handler)

Returns:

See Also:



1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 1187

def chat(params = {}, options = {})
  params = params.dup
  event_stream_handler = case handler = params.delete(:event_stream_handler)
    when EventStreams::ChatEventStream then handler
    when Proc then EventStreams::ChatEventStream.new.tap(&handler)
    when nil then EventStreams::ChatEventStream.new
    else
      msg = "expected :event_stream_handler to be a block or "\
            "instance of Aws::Assurance::EventStreams::ChatEventStream"\
            ", got `#{handler.inspect}` instead"
      raise ArgumentError, msg
    end

  yield(event_stream_handler) if block_given?

  req = build_request(:chat, params)

  req.context[:event_stream_handler] = event_stream_handler
  req.handlers.add(Aws::Binary::DecodeHandler, priority: 95)

  req.send_request(options)
end

#create_comment(params = {}) ⇒ Types::CreateCommentOutput

Adds a new comment to a specific control.

Examples:

Example: Add a comment to a control


# Adds a reviewer note to a control in the payments-prod project's PCI DSS assessment.

resp = client.create_comment({
  content: "Attach the Q1 cardholder data environment scan as evidence for this control.", 
  control_id: "8.2.1", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  project: "payments-prod", 
  task_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE66666", 
})

resp.to_h outputs the following:
{
  comment_id: "1773484200000", 
}

Request syntax with placeholder values


resp = client.create_comment({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
  task_id: "TaskId",
  content: "CommentContent",
})

Response structure


resp.comment_id #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The name of the project.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The control identifier. Optional. If omitted, the operation applies to the full framework.

  • :task_id (String) —

    The identifier of the task to scope the comment to. Optional.

  • :content (String) —

    The free-text content of the comment.

Returns:

See Also:



1278
1279
1280
1281
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 1278

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

#create_control(params = {}) ⇒ Struct

Creates a leaf control, which is a control with no child controls, in a custom framework.

Examples:

Example: Create a control


# Creates a leaf control in the payments team's custom framework while it is still a draft, with a requirement the
# payments-prod assessment will score.

resp = client.create_control({
  control_id: "PAY-1.1", 
  control_intents: [
    "storageEncryptionConfiguration", 
  ], 
  description: "Requires that stored cardholder data is encrypted with a customer-managed key.", 
  display_order: 1, 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "payments-pci-dss", 
  framework_version: "1.0", 
  parent_control_id: "PAY-1", 
  requirements: [
    {
      description: "Confirm that storage holding cardholder data has encryption enabled.", 
      id: "PAY-1.1-R1", 
    }, 
  ], 
  title: "Encrypt cardholder data at rest", 
  workflow_type: "automated-scan", 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


resp = client.create_control({
  environment_arn: "EnvironmentArn", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
  parent_control_id: "ControlID", # required
  title: "ControlTitle", # required
  description: "ControlDescription",
  requirements: [
    {
      id: "RequirementId", # required
      description: "RequirementDescription", # required
    },
  ],
  display_order: 1,
  control_intents: ["ControlIntent"],
  workflow_type: "automated-scan", # accepts automated-scan, document, hybrid
})

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The control identifier. Optional. If omitted, the operation applies to the full framework.

  • :parent_control_id (required, String) —

    The identifier of the parent control group.

  • :title (required, String) —

    The display name for the control.

  • :description (String) —

    A description of the control.

  • :requirements (Array<Types::Requirement>) —

    The individual checks an assessment scores for this control. Assign each one an id that findings, assessment results, and remediation tasks reference.

  • :display_order (Integer) —

    The ordering key that determines the display sequence within the framework.

  • :control_intents (Array<String>) —

    The technical control intents that classify how an assessment evaluates this leaf control. Supplying at least one intent makes the control eligible for automated scanning. Leaf controls only.

  • :workflow_type (String) —

    The optional evaluation workflow type. When omitted and controlIntents are present, the service defaults this to automated-scan. Leaf controls only.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1385
1386
1387
1388
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 1385

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

#create_control_group(params = {}) ⇒ Struct

Creates a control group within a custom framework.

Examples:

Example: Create a control group


# Creates a control group in the payments team's custom framework while it is still a draft, to organize the controls it
# will track for payments-prod alongside PCI DSS.

resp = client.create_control_group({
  control_id: "PAY-1", 
  description: "Custom controls the payments team tracks for cardholder data handling.", 
  display_order: 1, 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "payments-pci-dss", 
  framework_version: "1.0", 
  title: "Payments data protection", 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


resp = client.create_control_group({
  environment_arn: "EnvironmentArn", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
  title: "ControlTitle", # required
  description: "ControlDescription",
  display_order: 1,
})

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The control group ID (for example, "A.1").

  • :title (required, String) —

    The display name for the control group.

  • :description (String) —

    A description of the control group.

  • :display_order (Integer) —

    The ordering key that determines the display sequence within the framework.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1452
1453
1454
1455
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 1452

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

#create_environment(params = {}) ⇒ Types::CreateEnvironmentOutput

Creates a new governance environment with the specified name and service role. If you provide identityStore, AWS Assurance creates an IAM Identity Center managed application for the environment.

Examples:

Example: Create a governance environment


# Creates a single-account governance environment for the payments team to run its PCI-DSS assessment.

resp = client.create_environment({
  description: "Governance environment for the payments team's PCI-DSS assessment.", 
  domain_prefix: "payments-prod", 
  environment_name: "payments-governance", 
  environment_scope: "SINGLE_ACCOUNT", 
})

resp.to_h outputs the following:
{
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
}

Request syntax with placeholder values


resp = client.create_environment({
  environment_name: "EnvironmentName", # required
  description: "EnvironmentDescription",
  domain_prefix: "DomainPrefix",
  operator_role: "IamRoleArn",
  identity_store: {
    instance_arn: "IdentityCenterInstanceArn", # required
    identity_center_role: "IamRoleArn", # required
  },
  kms_key_arn: "KmsKeyArn",
  regions: ["AwsRegion"],
  environment_scope: "ORGANIZATION", # accepts ORGANIZATION, SINGLE_ACCOUNT
  organizational_unit_ids: ["OrganizationalUnitId"],
  tags: [
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
})

Response structure


resp.environment_arn #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_name (required, String) —

    The name of the environment.

  • :description (String) —

    A description of the environment.

  • :domain_prefix (String) —

    The optional custom domain prefix for the environment portal URL. The prefix must be unique within the AWS Region. If you don't specify a prefix, AWS Assurance uses the environment ID. You can't change the prefix after you create the environment.

  • :operator_role (String) —

    The AWS Identity and Access Management (IAM) role that AWS Assurance assumes to issue temporary credentials to operators who use your application. You must specify this role to support operator sessions. The role's trust policy must allow the AWS Assurance service principal to call sts:AssumeRole.

  • :identity_store (Types::IdentityStoreConfig) —

    The identity store configuration.

  • :kms_key_arn (String) —

    The ARN of an optional AWS KMS key that encrypts evidence. The AWS Assurance service role must have kms:Decrypt and kms:GenerateDataKey permissions on this key.

  • :regions (Array<String>) —

    The AWS Regions to evaluate across. When empty or omitted, the environment evaluates all generally available Regions in the partition. Applies to all accounts in scope.

  • :environment_scope (String) —

    The set of AWS accounts that the new environment evaluates. If you omit the scope, AWS Assurance uses SINGLE_ACCOUNT. Valid values:

    • ORGANIZATION – Evaluates the member accounts in your organization in AWS Organizations. Call this operation from the management account or a delegated administrator account, with trusted access for AWS Assurance turned on.

    • SINGLE_ACCOUNT – Evaluates only the account where you create the environment.

  • :organizational_unit_ids (Array<String>) —

    The organizational units to scope the organization environment's evaluation to. Only valid when the environment scope is ORGANIZATION. When omitted, the entire organization is in scope. Must contain at least one OU when provided. Accounts in nested OUs under a listed OU are included.

  • :tags (Array<Types::Tag>) —

    The tags attached to the resource, as key-value pairs.

Returns:

See Also:



1567
1568
1569
1570
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 1567

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

#create_environment_connection(params = {}) ⇒ Types::CreateEnvironmentConnectionOutput

Creates a connection between a governance environment and an evidence source. Specify the source in providerConfig.

If you call this operation again for a source that is already connected, AWS Assurance returns the current status of the connection and doesn't create a second one.

Examples:

Example: Create an S3 evidence connection


# Creates an Amazon S3 connection so the payments team can collect PCI-DSS evidence from a bucket into the governance
# environment.

resp = client.create_environment_connection({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  provider_config: {
    s3: {
      expected_bucket_owner: "111122223333", 
      source_uri: "s3://payments-prod-evidence/pci-dss/", 
    }, 
  }, 
})

resp.to_h outputs the following:
{
  status: "ACTIVE", 
}

Request syntax with placeholder values


resp = client.create_environment_connection({
  environment_arn: "EnvironmentArn", # required
  provider_config: { # required
    s3: {
      source_uri: "SourceUri", # required
      expected_bucket_owner: "ExpectedBucketOwner",
    },
    github: {
      account: "GitHubAccount",
    },
    sharepoint: {
      tenant_id: "EntraTenantId",
      sites: ["SiteUrl"], # required
    },
  },
})

Response structure


resp.status #=> String, one of "ACTIVE", "PENDING"
resp.authorization_url #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :provider_config (required, Types::ConnectionProviderConfig) —

    The evidence source to connect. Set exactly one member.

Returns:

See Also:



1639
1640
1641
1642
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 1639

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

#create_framework(params = {}) ⇒ Types::CreateFrameworkOutput

Creates a custom framework. The framework name must not start with AWS:. New frameworks are created in PENDING status. Use PublishFramework to make them ACTIVE.

Examples:

Example: Create a custom framework


# Creates a custom PCI-DSS framework in a governance environment for the payments team assessment.

resp = client.create_framework({
  description: "Custom control framework for the payments team PCI-DSS v4 assessment.", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "payments-pci-dss", 
  framework_version: "1.0", 
  title: "Payments PCI-DSS v4 Framework", 
})

resp.to_h outputs the following:
{
  framework: {
    type: "CUSTOM", 
    created_at: Time.parse("2026-03-14T09:30:00Z"), 
    description: "Custom control framework for the payments team PCI-DSS v4 assessment.", 
    environment: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
    framework_name: "payments-pci-dss", 
    framework_version: "1.0", 
    status: "PENDING", 
    title: "Payments PCI-DSS v4 Framework", 
  }, 
}

Request syntax with placeholder values


resp = client.create_framework({
  environment_arn: "EnvironmentArn", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  title: "FrameworkTitle",
  description: "FrameworkDescription",
})

Response structure


resp.framework.type #=> String, one of "MANAGED", "CUSTOM"
resp.framework.framework_name #=> String
resp.framework.environment #=> String
resp.framework.framework_version #=> String
resp.framework.title #=> String
resp.framework.description #=> String
resp.framework.status #=> String, one of "ACTIVE", "PENDING", "PRE_PROD"
resp.framework.created_at #=> Time
resp.framework.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :framework (required, String) —

    The name of the framework. The name must not start with AWS:.

  • :framework_version (required, String) —

    The version that you assign to the framework.

  • :title (String) —

    The human-readable title of the framework.

  • :description (String) —

    A description of the framework.

Returns:

See Also:



1720
1721
1722
1723
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 1720

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

#create_invitation(params = {}) ⇒ Types::CreateInvitationOutput

Creates a pending invitation for a customer account to connect to an environment. Call this operation from the account that owns the environment.

At most one non-terminal (PENDING or ACTIVE) invitation can exist per (environment, inviteeAccountId) pair. If you call this operation when a non-terminal invitation already exists, the service returns ConflictException.

Examples:

Example: Invite an account to an environment


# Invites the payments team's member account to connect to the governance environment running the PCI-DSS assessment.

resp = client.create_invitation({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  invitee_account_id: "444455556666", 
})

resp.to_h outputs the following:
{
  expires_at: Time.parse("2026-03-21T09:30:00Z"), 
  status: "PENDING", 
}

Request syntax with placeholder values


resp = client.create_invitation({
  environment_arn: "EnvironmentArn", # required
  invitee_account_id: "InviteeAccountId", # required
})

Response structure


resp.status #=> String, one of "PENDING", "ACTIVE", "REJECTED", "REVOKED", "EXPIRED"
resp.expires_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :invitee_account_id (required, String) —

    The ID of the invited AWS account.

Returns:

See Also:



1777
1778
1779
1780
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 1777

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

#create_permission_set(params = {}) ⇒ Types::CreatePermissionSetOutput

Creates a new permission set in the environment. Returns the identifier the service assigned to it; retrieve its attributes with GetPermissionSet.

Examples:

Example: Create a permission set


# Creates a permission set for the payments compliance team running a PCI-DSS assessment.

resp = client.create_permission_set({
  name: "Payments Auditor", 
  description: "Access for the payments compliance team to review the PCI-DSS assessment and manage its projects.", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  permissions: [
    "view_assessments", 
    "manage_projects", 
  ], 
})

resp.to_h outputs the following:
{
  permission_set_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE88888", 
}

Request syntax with placeholder values


resp = client.create_permission_set({
  environment_arn: "EnvironmentArn", # required
  name: "PermissionSetName", # required
  description: "PermissionSetDescription",
  permissions: ["Permission"], # required
})

Response structure


resp.permission_set_id #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :name (required, String) —

    The name of the permission set.

  • :description (String) —

    A description of the permission set.

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

    The permissions granted by the permission set.

Returns:

See Also:



1839
1840
1841
1842
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 1839

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

#create_project(params = {}) ⇒ Types::CreateProjectOutput

Creates a new project with a list of resources in a governance environment.

Examples:

Example: Create a project


# Creates the payments-prod project scoped to the account's payment-processing resources so a PCI-DSS assessment can track
# them.

resp = client.create_project({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  project: "payments-prod", 
  resource_filters: [
    "tag:app=payments-prod", 
    "region:us-east-1 resourcetype:rds:db", 
  ], 
})

resp.to_h outputs the following:
{
  project: "payments-prod", 
  resource_filters: [
    "tag:app=payments-prod", 
    "region:us-east-1 resourcetype:rds:db", 
  ], 
}

Request syntax with placeholder values


resp = client.create_project({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  resource_filters: ["ResourceFilter"],
})

Response structure


resp.project #=> String
resp.resource_filters #=> Array
resp.resource_filters[0] #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The name of the project.

  • :resource_filters (Array<String>) —

    The filters that determine which resources are in scope.

Returns:

See Also:



1903
1904
1905
1906
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 1903

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

#delete_comment(params = {}) ⇒ Struct

Deletes a specific comment by its identifying fields.

Examples:

Example: Delete a comment from a control


# Removes a comment from a control once its review note is no longer needed.

resp = client.delete_comment({
  comment_id: "1773484200000", 
  control_id: "8.2.1", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


resp = client.delete_comment({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
  comment_id: "CommentId", # required
})

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The name of the project.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The control identifier. Optional. If omitted, the operation applies to the full framework.

  • :comment_id (required, String) —

    The unique identifier of the comment.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



1964
1965
1966
1967
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 1964

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

#delete_control(params = {}) ⇒ Struct

Deletes a custom control. The operation also removes any associated evaluation metadata (control intents and workflow type).

Examples:

Example: Delete a control


# Deletes a custom control from the payments team's draft framework, before it is published, once it no longer applies to
# the payments-prod assessment.

resp = client.delete_control({
  control_id: "PAY-1.1", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "payments-pci-dss", 
  framework_version: "1.0", 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


resp = client.delete_control({
  environment_arn: "EnvironmentArn", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
})

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The control identifier. Optional. If omitted, the operation applies to the full framework.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



2017
2018
2019
2020
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 2017

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

#delete_control_group(params = {}) ⇒ Struct

Deletes a control group. The group must be empty (no child controls) before you delete it.

Examples:

Example: Delete a control group


# Deletes an empty control group from the payments team's draft custom framework, before it is published, once its
# controls are no longer planned for payments-prod.

resp = client.delete_control_group({
  control_id: "PAY-1", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "payments-pci-dss", 
  framework_version: "1.0", 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


resp = client.delete_control_group({
  environment_arn: "EnvironmentArn", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
})

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The control identifier. Optional. If omitted, the operation applies to the full framework.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



2070
2071
2072
2073
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 2070

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

#delete_environment(params = {}) ⇒ Struct

Deletes a governance environment.

Examples:

Example: Delete a governance environment


# Deletes the payments team's governance environment once its PCI-DSS assessment is complete.

resp = client.delete_environment({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


resp = client.delete_environment({
  environment_arn: "EnvironmentArn", # required
})

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



2105
2106
2107
2108
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 2105

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

#delete_environment_connection(params = {}) ⇒ Struct

Deletes a connection from a governance environment. Specify the connection in providerConfig. Deleting a connection doesn't delete any evidence.

If the connection doesn't exist, the operation succeeds without returning an error.

Examples:

Example: Delete an S3 evidence connection


# Removes the Amazon S3 evidence connection from the payments team's governance environment.

resp = client.delete_environment_connection({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  provider_config: {
    s3: {
      source_uri: "s3://payments-prod-evidence/pci-dss/", 
    }, 
  }, 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


resp = client.delete_environment_connection({
  environment_arn: "EnvironmentArn", # required
  connection_id: "ConnectionId",
  provider_config: {
    s3: {
      source_uri: "SourceUri", # required
    },
    github: {
      account: "GitHubAccount", # required
    },
    sharepoint: {
      tenant_id: "EntraTenantId", # required
    },
  },
})

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :connection_id (String) —

    The ID of the GitHub or SharePoint connection to delete, as returned by ListEnvironmentConnections. An Amazon S3 connection has no ID. To delete one, use providerConfig.

    Specify either connectionId or providerConfig, but not both.

  • :provider_config (Types::ConnectionProviderKey) —

    The connection to delete, identified by the source that it connects to.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



2173
2174
2175
2176
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 2173

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

#delete_evidence(params = {}) ⇒ Struct

Removes an evidence item.

Examples:

Example: Delete an evidence item


# Removes the user access review evidence from the payments-prod project.

resp = client.delete_evidence({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  evidence_id: "assurance://PCI-DSS-user-access-review.pdf", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


resp = client.delete_evidence({
  environment_arn: "EnvironmentArn", # required
  evidence_id: "String", # required
  project: "ProjectName", # required
})

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :evidence_id (required, String) —

    The unique identifier of the evidence item.

  • :project (required, String) —

    The name of the project.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



2218
2219
2220
2221
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 2218

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

#delete_framework(params = {}) ⇒ Struct

Deletes a custom framework that you no longer need. You can delete only custom frameworks. Managed frameworks are read-only. Before you delete a framework, you must disable it in every project where it is enabled. Otherwise, you receive a ConflictException.

A framework in PENDING status must be empty (no control groups or controls) before you delete it. Otherwise, you receive a ConflictException. When you delete an ACTIVE (published) framework, AWS Assurance also deletes its control groups and controls.

In every project, AWS Assurance also deletes your data for this framework version:

  • Assessments and their results

  • Annotations

  • Tasks, task history, and comments

  • Decisions that mark a control or requirement as not applicable, and their justifications

Consider this data permanently deleted as soon as the operation succeeds. Your evidence remains available, but it is no longer linked to the framework's controls.

To keep an assessment report, export it before you disable the framework. First, call StartAssessmentReportExport. Then wait until GetAssessmentReportExport reports COMPLETED. Finally, get the report with GetAssessmentReportContent.

The deletion can continue after the operation returns and might take some time. For example, the deletion might take longer while an assessment that uses the framework is still running. Until the deletion completes, creating a framework with the same name and version returns a ConflictException.

Examples:

Example: Delete a custom framework


# Deletes a published custom PCI-DSS framework that is no longer enabled for any project, together with its control groups
# and controls.

resp = client.delete_framework({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "payments-pci-dss", 
  framework_version: "1.0", 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


resp = client.delete_framework({
  environment_arn: "EnvironmentArn", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
})

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



2299
2300
2301
2302
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 2299

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

#delete_invitation(params = {}) ⇒ Struct

Deletes an invitation or unlinks a connected account for an environment. Call this operation from the environment owner account. This operation is idempotent—deleting an already-removed invitation or connection has no effect.

Withdraws a pending invitation or removes an active connection, in any state. After you remove the connection, AWS Assurance no longer evaluates that account.

Examples:

Example: Delete an invitation or unlink an account


# Unlinks the payments team's member account from the governance environment after the PCI-DSS assessment concludes.

resp = client.delete_invitation({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  invitee_account_id: "444455556666", 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


resp = client.delete_invitation({
  environment_arn: "EnvironmentArn", # required
  invitee_account_id: "InviteeAccountId", # required
})

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :invitee_account_id (required, String) —

    The invited or connected account whose invitation or connection to delete.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



2347
2348
2349
2350
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 2347

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

#delete_permission_set(params = {}) ⇒ Struct

Deletes a permission set.

Examples:

Example: Delete a permission set


# Deletes the payments auditor permission set after the PCI-DSS assessment is complete.

resp = client.delete_permission_set({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  permission_set_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE88888", 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


resp = client.delete_permission_set({
  environment_arn: "EnvironmentArn", # required
  permission_set_id: "PermissionSetId", # required
})

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :permission_set_id (required, String) —

    The identifier of the permission set.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



2387
2388
2389
2390
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 2387

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

#delete_project(params = {}) ⇒ Types::DeleteProjectOutput

Deletes a project and all its associated resources.

Examples:

Example: Delete a project


# Deletes the payments-prod project and all of its associated resources after the PCI-DSS assessment is complete.

resp = client.delete_project({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  message: "Project deleted: payments-prod", 
}

Request syntax with placeholder values


resp = client.delete_project({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
})

Response structure


resp.message #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The name of the project.

Returns:

See Also:



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

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

#deregister_organization_delegated_admin(params = {}) ⇒ Types::DeregisterOrganizationDelegatedAdminOutput

Removes the delegated administrator for AWS Assurance from your organization. The account that was the delegated administrator can no longer manage organization-scoped environments. The management account keeps ownership of any resources that the delegated administrator created.

Only the management account of the organization can call this operation.

Examples:

Example: Deregister the delegated administrator


# Removes the delegated administrator for AWS Assurance after the payments team's PCI-DSS assessment is complete,
# returning administration to the management account.

resp = client.deregister_organization_delegated_admin({
  account_id: "444455556666", 
})

resp.to_h outputs the following:
{
  account_id: "444455556666", 
  organization_id: "o-example12345", 
}

Request syntax with placeholder values


resp = client.deregister_organization_delegated_admin({
  account_id: "AwsAccountId", # required
})

Response structure


resp. #=> String
resp.organization_id #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :account_id (required, String) —

    The 12-digit AWS account ID of the delegated administrator to deregister. Must currently be registered as a delegated administrator for AWS Assurance in the caller's organization.

Returns:

See Also:



2489
2490
2491
2492
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 2489

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

#disable_framework(params = {}) ⇒ Types::DisableFrameworkOutput

Disables a previously enabled framework for a specific project.

Examples:

Example: Disable a framework for a project


# Disables the PCI-DSS framework for the payments-prod project once the assessment is complete, so its controls are no
# longer evaluated.

resp = client.disable_framework({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  environment: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  project: "payments-prod", 
}

Request syntax with placeholder values


resp = client.disable_framework({
  environment_arn: "EnvironmentArn", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  project: "ProjectName", # required
})

Response structure


resp.environment #=> String
resp.framework #=> String
resp.project #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :project (required, String) —

    The name of the project.

Returns:

See Also:



2553
2554
2555
2556
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 2553

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

#enable_framework(params = {}) ⇒ Types::EnableFrameworkOutput

Enables a compliance framework for a project in a governance environment. AWS Assurance then assesses the project's resources against the framework's controls.

Examples:

Example: Enable a framework for a project


# Enables the PCI-DSS framework for the payments-prod project so its controls are assessed in the governance environment.

resp = client.enable_framework({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  type: "MANAGED", 
  environment: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  project: "payments-prod", 
}

Request syntax with placeholder values


resp = client.enable_framework({
  environment_arn: "EnvironmentArn", # required
  framework: "FrameworkName", # required
  project: "ProjectName", # required
  framework_version: "FrameworkVersion",
  assessment_mode: "SCHEDULED", # accepts SCHEDULED, CONTINUOUS
})

Response structure


resp.environment #=> String
resp.framework #=> String
resp.framework_version #=> String
resp.project #=> String
resp.type #=> String, one of "MANAGED", "CUSTOM"
resp.assessment_mode #=> String, one of "SCHEDULED", "CONTINUOUS"

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :framework (required, String) —

    The name of the compliance framework.

  • :project (required, String) —

    The name of the project.

  • :framework_version (String) —

    The version of the compliance framework.

  • :assessment_mode (String) —

    The way that assessments run for the framework. The default is SCHEDULED.

    • CONTINUOUS – Runs assessments when a relevant change occurs.

    • SCHEDULED – Runs assessments on a recurring schedule.

Returns:

See Also:



2635
2636
2637
2638
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 2635

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

#get_annotation(params = {}) ⇒ Types::GetAnnotationOutput

Retrieves the annotation for a specific piece of evidence.

Examples:

Example: Get an annotation


# Retrieves the reviewer note attached to a specific evidence version while auditing a PCI-DSS control.

resp = client.get_annotation({
  assessment_id: "1773480600000", 
  control_id: "8.2.1", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  evidence_id: "assurance://PCI-DSS-user-access-review.pdf", 
  evidence_version: 1, 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  assessment_id: "1773480600000", 
  control_id: "8.2.1", 
  created_at: Time.parse("2026-03-14T09:30:00Z"), 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  evidence_id: "assurance://PCI-DSS-user-access-review.pdf", 
  evidence_version: 1, 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  notes: "Confirmed every payments-prod database user has a unique ID; this evidence satisfies the control.", 
  project: "payments-prod", 
}

Request syntax with placeholder values


resp = client.get_annotation({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
  assessment_id: "AssessmentId", # required
  evidence_id: "String", # required
  evidence_version: 1, # required
})

Response structure


resp.environment_arn #=> String
resp.project #=> String
resp.framework #=> String
resp.framework_version #=> String
resp.control_id #=> String
resp.assessment_id #=> String
resp.evidence_id #=> String
resp.evidence_version #=> Integer
resp.notes #=> String
resp.created_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The name of the project.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The control identifier. Optional. If omitted, the operation applies to the full framework.

  • :assessment_id (required, String) —

    The identifier of the assessment.

  • :evidence_id (required, String) —

    The identifier of the evidence the annotation applies to.

  • :evidence_version (required, Integer) —

    The version number of the evidence the annotation applies to.

Returns:

See Also:



2740
2741
2742
2743
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 2740

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

#get_assessment(params = {}) ⇒ Types::GetAssessmentOutput

Retrieves a single assessment.

Examples:

Example: Get an assessment


# Retrieves the current status and score of a PCI-DSS assessment in the payments-prod project.

resp = client.get_assessment({
  assessment_id: "1773480600000", 
  control_id: "8.2.1", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  assessment_id: "1773480600000", 
  control_id: "8.2.1", 
  created_at: Time.parse("2026-03-14T09:30:00Z"), 
  environment: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  outcome_percentage: 75.0, 
  project: "payments-prod", 
  result: "1 of 2 requirements met, 1 partially met; one open remediation task remains.", 
  status: "NEEDS_ATTENTION", 
  updated_at: Time.parse("2026-03-14T10:15:00Z"), 
}

Request syntax with placeholder values


resp = client.get_assessment({
  environment_arn: "EnvironmentArn", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
  project: "ProjectName", # required
  assessment_id: "AssessmentId", # required
})

Response structure


resp.assessment_id #=> String
resp.environment #=> String
resp.framework #=> String
resp.framework_version #=> String
resp.control_id #=> String
resp.project #=> String
resp.status #=> String, one of "SCHEDULED", "IN_PROGRESS", "NEEDS_ATTENTION", "FINISHED", "NOT_APPLICABLE", "ERROR", "USER_ERROR"
resp.result #=> String
resp.outcome_percentage #=> Float
resp.context #=> String
resp.created_at #=> Time
resp.updated_at #=> Time
resp.organization_summary.total_accounts #=> Integer
resp.organization_summary.evaluated_accounts #=> Integer
resp.organization_summary.passed_count #=> Integer
resp.organization_summary.failed_count #=> Integer
resp.organization_summary.partially_passed_count #=> Integer
resp.organization_summary.not_applicable_count #=> Integer
resp.organization_summary.failed_run_count #=> Integer
resp.organization_summary.lowest_scoring_accounts #=> Array
resp.organization_summary.lowest_scoring_accounts[0]. #=> String
resp.organization_summary.lowest_scoring_accounts[0].outcome_percentage #=> Float
resp.organization_summary.lowest_scoring_accounts[0].findings_summary #=> String
resp.trigger #=> String, one of "SCHEDULE", "DETECTED_CHANGE", "USER_ACTION"

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The control identifier. Optional. If omitted, the operation applies to the full framework.

  • :project (required, String) —

    The name of the project.

  • :assessment_id (required, String) —

    The identifier of the assessment.

Returns:

See Also:



2854
2855
2856
2857
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 2854

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

#get_assessment_report_content(params = {}) ⇒ Types::GetAssessmentReportContentOutput

Returns an assessment report. The export must have the status COMPLETED.

A completed report stays available for at least 12 hours after the export starts. If the report is no longer available, start a new export.

Examples:

Example: Get the content of a finished assessment report


resp = client.get_assessment_report_content({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  export_id: "a3f29c1d4b5e4a7c8d9e1a2b3c4d5e6f", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  content: "JVBERi0xLjQK", 
  content_type: "application/pdf", 
}

Request syntax with placeholder values


resp = client.get_assessment_report_content({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  export_id: "ExportId", # required
})

Response structure


resp.content #=> String
resp.content_type #=> String, one of "application/pdf"

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of the environment.

  • :project (required, String) —

    The project the export belongs to.

  • :export_id (required, String) —

    The identifier of an export that has the status COMPLETED.

Returns:

See Also:



2912
2913
2914
2915
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 2912

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

#get_assessment_report_export(params = {}) ⇒ Types::GetAssessmentReportExportOutput

Gets the status of an assessment report export.

Examples:

Example: Get an assessment report export


resp = client.get_assessment_report_export({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  export_id: "a3f29c1d4b5e4a7c8d9e1a2b3c4d5e6f", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  control_ids: [
    "8.2.1", 
  ], 
  created_at: Time.parse("2026-03-14T09:30:00Z"), 
  export_id: "a3f29c1d4b5e4a7c8d9e1a2b3c4d5e6f", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  status: "COMPLETED", 
  updated_at: Time.parse("2026-03-14T09:35:00Z"), 
}

Request syntax with placeholder values


resp = client.get_assessment_report_export({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  export_id: "ExportId", # required
})

Response structure


resp.export_id #=> String
resp.status #=> String, one of "QUEUED", "IN_PROGRESS", "COMPLETED", "FAILED"
resp.framework #=> String
resp.framework_version #=> String
resp.created_at #=> Time
resp.updated_at #=> Time
resp.control_ids #=> Array
resp.control_ids[0] #=> String
resp.failure_reason #=> String, one of "SYSTEM_ERROR", "ENCRYPTED_CONTENT_UNREADABLE"
resp.failure_message #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of the environment.

  • :project (required, String) —

    The project the export belongs to.

  • :export_id (required, String) —

    The identifier of the export.

Returns:

See Also:



2987
2988
2989
2990
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 2987

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

#get_chat_messages(params = {}) ⇒ Types::GetChatMessagesOutput

Gets messages for a chat session in chronological order.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: Get chat session messages


# Retrieves the messages in a chat session in chronological order to review a PCI-DSS assessment conversation.

resp = client.get_chat_messages({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  session_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE88888", 
})

resp.to_h outputs the following:
{
  messages: [
    {
      author: "user", 
      content: "Summarize the open controls in my PCI-DSS assessment.", 
      created_at: Time.parse("2026-03-14T09:30:00Z"), 
      sequence_number: 3, 
    }, 
    {
      author: "agent", 
      content: "Your payments-prod assessment has 3 open controls awaiting evidence.", 
      created_at: Time.parse("2026-03-14T09:30:05Z"), 
      sequence_number: 3, 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.get_chat_messages({
  environment_arn: "EnvironmentArn", # required
  session_id: "ChatSessionId", # required
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.messages #=> Array
resp.messages[0].author #=> String, one of "user", "agent"
resp.messages[0].content #=> String
resp.messages[0].created_at #=> Time
resp.messages[0].sequence_number #=> Integer
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :session_id (required, String) —

    The identifier of the chat session.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Returns:

See Also:



3068
3069
3070
3071
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 3068

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

#get_comment(params = {}) ⇒ Types::GetCommentOutput

Retrieves a specific comment by its identifying fields.

Examples:

Example: Get a comment on a control


# Retrieves a single comment on a control in the payments-prod PCI DSS assessment.

resp = client.get_comment({
  comment_id: "1773484200000", 
  control_id: "8.2.1", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  comment: {
    added_by: "arn:aws:iam::111122223333:role/AssuranceAuditor", 
    comment_id: "1773484200000", 
    content: "Evidence attached; the Q1 cardholder data environment scan is complete.", 
    control_id: "8.2.1", 
    created_at: Time.parse("2026-03-14T10:30:00Z"), 
    environment: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
    framework: "AWS:PCI-DSS", 
    framework_version: "4", 
    project: "payments-prod", 
    task_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE66666", 
    updated_at: Time.parse("2026-03-14T11:15:00Z"), 
  }, 
}

Request syntax with placeholder values


resp = client.get_comment({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
  comment_id: "CommentId", # required
})

Response structure


resp.comment.environment #=> String
resp.comment.project #=> String
resp.comment.framework #=> String
resp.comment.framework_version #=> String
resp.comment.control_id #=> String
resp.comment.task_id #=> String
resp.comment.comment_id #=> String
resp.comment.content #=> String
resp.comment.added_by #=> String
resp.comment.created_at #=> Time
resp.comment.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The name of the project.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The control identifier. Optional. If omitted, the operation applies to the full framework.

  • :comment_id (required, String) —

    The unique identifier of the comment.

Returns:

See Also:



3158
3159
3160
3161
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 3158

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

#get_control(params = {}) ⇒ Types::GetControlOutput

Retrieves a single leaf control within a framework version, including its title, description, and requirements.

Examples:

Example: Get a PCI DSS control


# Retrieves one control from the PCI DSS framework so the payments team can review its requirements before assessing
# payments-prod.

resp = client.get_control({
  control_id: "8.2.1", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
})

resp.to_h outputs the following:
{
  control: {
    type: "MANAGED", 
    control_id: "8.2.1", 
    control_intents: [
      "identityAuthenticationConfiguration", 
    ], 
    description: "All users are assigned a unique ID before access to system components or cardholder data is allowed. Applicability Notes This requirement is not intended to apply to user accounts within point-of-sale terminals that have access to only one card number at a time to facilitate a single transaction (such as IDs used by cashiers on point-of-sale terminals).\n\nPurpose:\nThe ability to trace actions performed on a computer system to an individual establishes accountability and traceability and is fundamental to establishing effective access controls. By ensuring each user is uniquely identified, instead of using one ID for several employees, an organization can maintain individual responsibility for actions and an effective record in the audit log per employee. In addition, this will assist with issue resolution and containment when misuse or malicious intent occurs.", 
    framework: "AWS:PCI-DSS", 
    framework_version: "4", 
    group_id: "8.", 
    requirements: [
      {
        description: "Each user with access to system components or cardholder data is assigned a unique ID that is not shared with any other user. (This does not apply to user accounts within point-of-sale terminals that have access to only one card number at a time to facilitate a single transaction.)", 
        id: "8.2.1-R1", 
      }, 
      {
        description: "A unique user ID is assigned to each user before that user is permitted access to system components or cardholder data.", 
        id: "8.2.1-R2", 
      }, 
    ], 
    status: "ACTIVE", 
    title: "User identification and related accounts for users and administrators are strictly managed throughout an accounts lifecycle.", 
    workflow_type: "automated-scan", 
  }, 
}

Request syntax with placeholder values


resp = client.get_control({
  environment_arn: "EnvironmentArn", # required
  framework: "FrameworkName", # required
  control_id: "ControlID", # required
  framework_version: "FrameworkVersion", # required
})

Response structure


resp.control.type #=> String, one of "MANAGED", "CUSTOM"
resp.control.framework #=> String
resp.control.control_id #=> String
resp.control.framework_version #=> String
resp.control.group_id #=> String
resp.control.title #=> String
resp.control.description #=> String
resp.control.requirements #=> Array
resp.control.requirements[0].id #=> String
resp.control.requirements[0].description #=> String
resp.control.control_intents #=> Array
resp.control.control_intents[0] #=> String
resp.control.workflow_type #=> String, one of "automated-scan", "document", "hybrid"
resp.control.status #=> String, one of "ACTIVE", "PENDING", "PRE_PROD"
resp.control.created_at #=> Time
resp.control.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :framework (required, String) —

    The name of the compliance framework.

  • :control_id (required, String) —

    The control identifier. Optional. If omitted, the operation applies to the full framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

Returns:

See Also:



3256
3257
3258
3259
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 3256

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

#get_control_group(params = {}) ⇒ Types::GetControlGroupOutput

Retrieves a single control group's own attributes (title, description, status) within a framework version. Use ListControls with the group's controlId to retrieve the leaf controls within it.

Examples:

Example: Get a control group


# Retrieves the authentication control group in the PCI DSS framework so the payments team can see its title and
# description before listing its controls.

resp = client.get_control_group({
  control_id: "8.", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
})

resp.to_h outputs the following:
{
  control_group: {
    type: "MANAGED", 
    control_id: "8.", 
    description: "Implement Strong Access Control Measures", 
    framework: "AWS:PCI-DSS", 
    framework_version: "4", 
    title: "Identify Users and Authenticate Access to System Components", 
  }, 
}

Request syntax with placeholder values


resp = client.get_control_group({
  environment_arn: "EnvironmentArn", # required
  framework: "FrameworkName", # required
  control_id: "ControlID", # required
  framework_version: "FrameworkVersion", # required
})

Response structure


resp.control_group.type #=> String, one of "MANAGED", "CUSTOM"
resp.control_group.framework #=> String
resp.control_group.control_id #=> String
resp.control_group.framework_version #=> String
resp.control_group.title #=> String
resp.control_group.description #=> String
resp.control_group.status #=> String, one of "ACTIVE", "PENDING", "PRE_PROD"

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :framework (required, String) —

    The name of the compliance framework.

  • :control_id (required, String) —

    The control identifier. Optional. If omitted, the operation applies to the full framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

Returns:

See Also:



3330
3331
3332
3333
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 3330

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

#get_control_status(params = {}) ⇒ Types::GetControlStatusOutput

Retrieves the effective compliance status of a control in a project. The status combines the most recent assessment of the control with the not-applicable decisions that you declare on the control or its requirements. The framework version must be enabled in the project.

Examples:

Request syntax with placeholder values


resp = client.get_control_status({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
})

Response structure


resp.control_id #=> String
resp.control_group_id #=> String
resp.status #=> String, one of "COMPLIANT", "NEEDS_ATTENTION", "NOT_APPLICABLE", "NOT_ASSESSED"
resp.outcome_percentage #=> Float
resp.applicable_requirement_count #=> Integer
resp.excluded_requirement_count #=> Integer
resp.status_override.type #=> String, one of "NOT_APPLICABLE", "NONE"
resp.status_override.justification #=> String
resp.status_override.declared_by #=> String
resp.status_override.declared_at #=> Time
resp.last_assessment_id #=> String
resp.last_assessed_at #=> Time
resp.last_assessment_status #=> String, one of "SCHEDULED", "IN_PROGRESS", "NEEDS_ATTENTION", "FINISHED", "NOT_APPLICABLE", "ERROR", "USER_ERROR"
resp.requirement_statuses #=> Array
resp.requirement_statuses[0].requirement_id #=> String
resp.requirement_statuses[0].description #=> String
resp.requirement_statuses[0].status #=> String, one of "met", "partial", "not_met", "not_applicable", "unable_to_assess"
resp.requirement_statuses[0].status_override.type #=> String, one of "NOT_APPLICABLE", "NONE"
resp.requirement_statuses[0].status_override.justification #=> String
resp.requirement_statuses[0].status_override.declared_by #=> String
resp.requirement_statuses[0].status_override.declared_at #=> Time
resp.requirement_statuses[0].rationale #=> String
resp.requirement_statuses[0].task_id #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The Amazon Resource Name (ARN) of this governance environment.

  • :project (required, String) —

    The name of the project.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The identifier of the control. The control must exist in the framework version.

Returns:

See Also:



3410
3411
3412
3413
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 3410

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

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

Retrieves a governance environment by ARN or domain. Provide exactly one of environmentArn or domain.

Examples:

Example: Get a governance environment


# Retrieves the payments team's governance environment by ARN to review its PCI-DSS assessment configuration.

resp = client.get_environment({
  lookup: {
    environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  }, 
})

resp.to_h outputs the following:
{
  environment: {
    created_at: Time.parse("2026-03-14T09:30:00Z"), 
    description: "Governance environment for the payments team's PCI-DSS assessment (Q1 scope).", 
    environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
    environment_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
    environment_name: "payments-governance", 
    environment_scope: "SINGLE_ACCOUNT", 
    status: "CREATED", 
    updated_at: Time.parse("2026-03-14T10:15:00Z"), 
  }, 
}

Request syntax with placeholder values


resp = client.get_environment({
  lookup: { # required
    environment_arn: "EnvironmentArn",
    domain: "DomainIdentifier",
  },
})

Response structure


resp.environment.environment_id #=> String
resp.environment.environment_name #=> String
resp.environment.environment_arn #=> String
resp.environment.description #=> String
resp.environment.identity_store.application_arn #=> String
resp.environment.identity_store.instance_arn #=> String
resp.environment.identity_store.region #=> String
resp.environment.identity_store.identity_center_role #=> String
resp.environment.domain_prefix #=> String
resp.environment.service_role #=> String
resp.environment.operator_role #=> String
resp.environment.kms_key_arn #=> String
resp.environment.status #=> String, one of "CREATED"
resp.environment.regions #=> Array
resp.environment.regions[0] #=> String
resp.environment.environment_scope #=> String, one of "ORGANIZATION", "SINGLE_ACCOUNT"
resp.environment.organizational_unit_ids #=> Array
resp.environment.organizational_unit_ids[0] #=> String
resp.environment.evidence_location #=> String
resp.environment.tags #=> Array
resp.environment.tags[0].key #=> String
resp.environment.tags[0].value #=> String
resp.environment.created_at #=> Time
resp.environment.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

Returns:

See Also:



3490
3491
3492
3493
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 3490

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

#get_evidence(params = {}) ⇒ Types::GetEvidenceOutput

Retrieves metadata for an evidence item.

Examples:

Example: Get evidence metadata


# Retrieves metadata for the user access review evidence in the payments-prod project.

resp = client.get_evidence({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  evidence_id: "assurance://PCI-DSS-user-access-review.pdf", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  version: 1, 
  created_at: Time.parse("2026-03-14T09:30:00Z"), 
  evidence_id: "assurance://PCI-DSS-user-access-review.pdf", 
  status: "VALID", 
  title: "PCI-DSS user access review.pdf", 
}

Request syntax with placeholder values


resp = client.get_evidence({
  environment_arn: "EnvironmentArn", # required
  evidence_id: "String", # required
  evidence_version: 1,
  project: "ProjectName", # required
})

Response structure


resp.evidence_id #=> String
resp.version #=> Integer
resp.title #=> String
resp.description #=> String
resp.created_at #=> Time
resp.updated_at #=> Time
resp.status #=> String, one of "VALID", "SCANNING", "QUARANTINED", "SCAN_FAILED", "NOT_AUTO_ANALYZED", "VALID_AUTO_ANALYZED"
resp.checksum #=> String
resp.reference #=> String
resp.linked_controls #=> Array
resp.linked_controls[0].framework #=> String
resp.linked_controls[0].framework_version #=> String
resp.linked_controls[0].control_id #=> String
resp.linked_controls[0].link_source #=> String, one of "AUTO", "MANUAL"
resp.uploaded_by #=> String
resp.link_mode #=> String, one of "AUTO", "MANUAL", "DISABLED"
resp.purpose #=> String, one of "CONTROL_EVIDENCE", "SCAN_EVIDENCE", "FRAMEWORK_SOURCE"
resp.last_auto_analysis_started_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :evidence_id (required, String) —

    The unique identifier of the evidence item.

  • :evidence_version (Integer) —

    Specifies the version. Omit to get the latest version.

  • :project (required, String) —

    The name of the project.

Returns:

See Also:



3580
3581
3582
3583
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 3580

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

#get_evidence_content(params = {}) ⇒ Types::GetEvidenceContentOutput

Returns the content of an evidence item.

Examples:

Example: Get evidence content


# Gets the file content of the user access review evidence for offline review.

resp = client.get_evidence_content({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  evidence_id: "assurance://PCI-DSS-user-access-review.pdf", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  version: 1, 
  checksum: "e5c62df5dab5c87b6a015ef3d43597074d1eec433b15f51aec63b8582d0e4ab4", 
  content: "JVBERi0xLjQK", 
  content_type: "application/pdf", 
  title: "PCI-DSS user access review.pdf", 
}

Request syntax with placeholder values


resp = client.get_evidence_content({
  environment_arn: "EnvironmentArn", # required
  evidence_id: "String", # required
  evidence_version: 1,
  project: "ProjectName", # required
})

Response structure


resp.content #=> String
resp.content_type #=> String
resp.title #=> String
resp.checksum #=> String
resp.version #=> Integer

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The Amazon Resource Name (ARN) of this governance environment.

  • :evidence_id (required, String) —

    The unique identifier of the evidence item.

  • :evidence_version (Integer) —

    The version of the evidence to get. To get the latest version, omit this parameter.

  • :project (required, String) —

    The name of the project.

Returns:

See Also:



3649
3650
3651
3652
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 3649

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

#get_framework(params = {}) ⇒ Types::GetFrameworkOutput

Retrieves a framework resource by type and key fields.

Examples:

Example: Get a framework


# Retrieves a custom PCI-DSS framework by name and version so an auditor can review its details.

resp = client.get_framework({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "payments-pci-dss", 
  framework_version: "1.0", 
})

resp.to_h outputs the following:
{
  framework: {
    type: "CUSTOM", 
    created_at: Time.parse("2026-03-14T09:30:00Z"), 
    description: "Custom control framework for the payments team PCI-DSS v4 assessment.", 
    environment: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
    framework_name: "payments-pci-dss", 
    framework_version: "1.0", 
    status: "ACTIVE", 
    title: "Payments PCI-DSS v4 Framework", 
    updated_at: Time.parse("2026-03-14T10:15:00Z"), 
  }, 
}

Request syntax with placeholder values


resp = client.get_framework({
  framework: "FrameworkName", # required
  environment_arn: "EnvironmentArn", # required
  framework_version: "FrameworkVersion", # required
})

Response structure


resp.framework.type #=> String, one of "MANAGED", "CUSTOM"
resp.framework.framework_name #=> String
resp.framework.environment #=> String
resp.framework.framework_version #=> String
resp.framework.title #=> String
resp.framework.description #=> String
resp.framework.status #=> String, one of "ACTIVE", "PENDING", "PRE_PROD"
resp.framework.created_at #=> Time
resp.framework.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :framework (required, String) —

    The framework name.

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :framework_version (required, String) —

    The framework version.

Returns:

See Also:



3719
3720
3721
3722
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 3719

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

#get_invitation(params = {}) ⇒ Types::GetInvitationOutput

Retrieves a single invitation, identified by environmentArn and inviteeAccountId. You can call this operation from the account that owns the environment or from the invited account.

Examples:

Example: Retrieve an invitation


# Retrieves the invitation extended to the payments team's member account for the governance environment running the
# PCI-DSS assessment.

resp = client.get_invitation({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  invitee_account_id: "444455556666", 
})

resp.to_h outputs the following:
{
  created_at: Time.parse("2026-03-14T09:30:00Z"), 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  invitee_account_id: "444455556666", 
  role_arn: "arn:aws:iam::444455556666:role/aws-service-role/assurance.amazonaws.com/AWSServiceRoleForAssurance", 
  status: "ACTIVE", 
  updated_at: Time.parse("2026-03-14T10:15:00Z"), 
}

Request syntax with placeholder values


resp = client.get_invitation({
  environment_arn: "EnvironmentArn", # required
  invitee_account_id: "InviteeAccountId",
})

Response structure


resp.environment_arn #=> String
resp. #=> String
resp.status #=> String, one of "PENDING", "ACTIVE", "REJECTED", "REVOKED", "EXPIRED"
resp.role_arn #=> String
resp.created_at #=> Time
resp.expires_at #=> Time
resp.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of the environment the invitation is for.

  • :invitee_account_id (String) —

    The AWS account ID of the invited account. Supply this value when you are the environment owner reading a specific invitee's invitation. Omit it when you are the invited account reading your own invitation for the environment.

Returns:

See Also:



3789
3790
3791
3792
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 3789

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

#get_permission_set(params = {}) ⇒ Types::GetPermissionSetOutput

Retrieves a permission set by ID.

Examples:

Example: Get a permission set


# Retrieves the payments auditor permission set to confirm the permissions it grants before assigning it.

resp = client.get_permission_set({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  permission_set_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE88888", 
})

resp.to_h outputs the following:
{
  permission_set: {
    name: "Payments Auditor", 
    created_at: Time.parse("2026-03-14T09:30:00Z"), 
    description: "Access for the payments compliance team to review the PCI-DSS assessment and manage its projects.", 
    permission_set_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE88888", 
    permissions: [
      "view_assessments", 
      "manage_projects", 
    ], 
    updated_at: Time.parse("2026-03-14T10:15:00Z"), 
  }, 
}

Request syntax with placeholder values


resp = client.get_permission_set({
  environment_arn: "EnvironmentArn", # required
  permission_set_id: "PermissionSetId", # required
})

Response structure


resp.permission_set.permission_set_id #=> String
resp.permission_set.name #=> String
resp.permission_set.description #=> String
resp.permission_set.permissions #=> Array
resp.permission_set.permissions[0] #=> String
resp.permission_set.created_at #=> Time
resp.permission_set.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :permission_set_id (required, String) —

    The identifier of the permission set.

Returns:

See Also:



3852
3853
3854
3855
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 3852

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

#get_project(params = {}) ⇒ Types::GetProjectOutput

Retrieves a project and all its associated resources.

Examples:

Example: Get a project


# Retrieves the payments-prod project with its resource filters.

resp = client.get_project({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  project: "payments-prod", 
  resource_filters: [
    "tag:app=payments-prod", 
    "region:us-east-1 resourcetype:rds:db", 
  ], 
}

Request syntax with placeholder values


resp = client.get_project({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
})

Response structure


resp.project #=> String
resp.resource_filters #=> Array
resp.resource_filters[0] #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The name of the project.

Returns:

See Also:



3906
3907
3908
3909
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 3906

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

#get_resource_activities_query_results(params = {}) ⇒ Types::GetResourceActivitiesQueryResultsOutput

Gets the status of a query that StartResourceActivitiesQuery started, and one page of its results. To get the next page, pass the nextToken value from the response in your next request.

Call this operation until status is COMPLETE, FAILED, or EXPIRED. The response includes results and a pagination token only when status is COMPLETE.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.get_resource_activities_query_results({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  query_id: "ResourceActivitiesQueryId", # required
  next_token: "PaginationToken",
  max_results: 1,
})

Response structure


resp.status #=> String, one of "RUNNING", "COMPLETE", "FAILED", "EXPIRED"
resp.data.entries #=> Array
resp.data.entries[0].action_detail.service #=> String
resp.data.entries[0].action_detail.api #=> String
resp.data.entries[0].action_detail.success_count #=> Integer
resp.data.entries[0].action_detail.failure_count #=> Integer
resp.data.entries[0].resource_detail.resource_type #=> String
resp.data.entries[0].resource_detail.arn #=> String
resp.data.entries[0].resource_detail.access_type #=> String, one of "WRITE", "READ"
resp.data.entries[0].resource_detail.success_count #=> Integer
resp.data.entries[0].resource_detail.failure_count #=> Integer
resp.data.entries[0].session_detail.session_id #=> String
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of the environment that the query ran in.

  • :project (required, String) —

    The project that the query ran in.

  • :query_id (required, String) —

    The ID of the query, as returned by StartResourceActivitiesQuery.

  • :next_token (String) —

    The pagination token returned by a previous request for the same queryId. Use it to retrieve the next page of results.

  • :max_results (Integer) —

    The maximum number of results to return on one page. The default is 50. If more results are available, use the nextToken value from the response to get the next page.

Returns:

See Also:



3975
3976
3977
3978
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 3975

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

#get_task(params = {}) ⇒ Types::GetTaskOutput

Retrieves a specific task by its identifying fields.

Examples:

Example: Get a task


# Retrieves the unique-user-ID task and its current status for the payments-prod PCI-DSS assessment.

resp = client.get_task({
  control_id: "8.2.1", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  project: "payments-prod", 
  task_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE66666", 
})

resp.to_h outputs the following:
{
  task: {
    control_id: "8.2.1", 
    created_at: Time.parse("2026-03-14T09:30:00Z"), 
    created_by: "Assurance", 
    description: "Replace the shared payments-prod database account with per-user IDs so every user is assigned a unique ID before access is granted.", 
    due_at: Time.parse("2026-03-21T09:30:00Z"), 
    environment: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
    framework: "AWS:PCI-DSS", 
    framework_version: "4", 
    priority: "HIGH", 
    project: "payments-prod", 
    status: "OPEN", 
    task_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE66666", 
    title: "Assign unique user IDs for payments-prod database access", 
    updated_at: Time.parse("2026-03-14T09:30:00Z"), 
  }, 
}

Request syntax with placeholder values


resp = client.get_task({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
  task_id: "TaskId", # required
})

Response structure


resp.task.environment #=> String
resp.task.project #=> String
resp.task.framework #=> String
resp.task.framework_version #=> String
resp.task.control_id #=> String
resp.task.task_id #=> String
resp.task.title #=> String
resp.task.description #=> String
resp.task.status #=> String, one of "OPEN", "PENDING", "COMPLETED", "CANCELLED"
resp.task.created_by #=> String
resp.task.due_at #=> Time
resp.task.priority #=> String, one of "HIGH", "MEDIUM", "LOW"
resp.task.created_at #=> Time
resp.task.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The name of the project.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The control identifier. Optional. If omitted, the operation applies to the full framework.

  • :task_id (required, String) —

    The identifier of the task.

Returns:

See Also:



4071
4072
4073
4074
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 4071

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

#list_assessment_annotations(params = {}) ⇒ Types::ListAssessmentAnnotationsOutput

Lists the annotations on one assessment, paginated.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List annotations for an assessment


# Lists every reviewer note recorded for a control in the payments-prod PCI-DSS assessment.

resp = client.list_assessment_annotations({
  assessment_id: "1773480600000", 
  control_id: "8.2.1", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  annotations: [
    {
      assessment_id: "1773480600000", 
      control_id: "8.2.1", 
      environment: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
      evidence_id: "assurance://PCI-DSS-user-access-review.pdf", 
      evidence_version: 1, 
      framework: "AWS:PCI-DSS", 
      framework_version: "4", 
      project: "payments-prod", 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_assessment_annotations({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
  assessment_id: "AssessmentId", # required
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.annotations #=> Array
resp.annotations[0].environment #=> String
resp.annotations[0].evidence_id #=> String
resp.annotations[0].evidence_version #=> Integer
resp.annotations[0].project #=> String
resp.annotations[0].framework #=> String
resp.annotations[0].framework_version #=> String
resp.annotations[0].control_id #=> String
resp.annotations[0].assessment_id #=> String
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The project the assessment belongs to.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The control identifier. Optional. If omitted, the operation applies to the full framework.

  • :assessment_id (required, String) —

    The assessment whose annotations are listed.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Returns:

See Also:



4175
4176
4177
4178
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 4175

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

#list_assessment_journal_records(params = {}) ⇒ Types::ListAssessmentJournalRecordsOutput

Lists assessment journal records, paginated.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List assessment journal records


# Lists the audit journal records produced during a PCI-DSS assessment run so an auditor can review each phase of the
# evaluation for the payments-prod project.

resp = client.list_assessment_journal_records({
  assessment_id: "1773480600000", 
  control_id: "8.2.1", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  records: [
    {
      content: "{\"type\":\"conclusion\",\"node\":\"evaluating\",\"text\":\"Evaluated the payments-prod cardholder data environment against the control's requirements.\"}", 
      created_at: Time.parse("2026-03-14T09:30:00Z"), 
      invocation_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE99999", 
      phase: "evaluating", 
      record_id: "00mmq4k4w0k4m2xq", 
      record_type: "narrative", 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_assessment_journal_records({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
  assessment_id: "AssessmentId", # required
  next_token: "PaginationToken",
  max_results: 1,
})

Response structure


resp.records #=> Array
resp.records[0].record_id #=> String
resp.records[0].record_type #=> String, one of "phase_start", "narrative", "thinking", "tool_start", "tool_result", "executed_scan_plan", "error"
resp.records[0].phase #=> String, one of "gathering_context", "evaluating", "auditor", "finalising", "needs_input", "failed"
resp.records[0].created_at #=> Time
resp.records[0].content #=> String
resp.records[0].invocation_id #=> String
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The name of the project.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The control identifier. Optional. If omitted, the operation applies to the full framework.

  • :assessment_id (required, String) —

    The identifier of the assessment.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

Returns:

See Also:



4276
4277
4278
4279
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 4276

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

#list_assessment_outcomes(params = {}) ⇒ Types::ListAssessmentOutcomesOutput

Returns the compliance score of a framework in a project over a time range. You can narrow the score to one control, one resource, or one control on one resource. You can also get one score per control for a resource.

The operation returns either the current score or a history of scores, depending on whether you specify a time range.

  • Current score. If you don't specify startTime or endTime, and you use the default LAST statistic, the operation returns the most recent score as a single data point. Its timestamp is the time of the assessment that produced the score. This option isn't available when you get one score per control.

  • History. If you specify startTime, endTime, or both, or you specify the MAX, MIN, or AVG statistic, the operation divides the time range into buckets of one hour or one day (set by period). It returns one data point for each bucket that has a score, newest first. Buckets with no score are left out, so match each data point to its bucket by timestamp.

Specify times in UTC. The time range includes startTime and excludes endTime.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: Daily score history for one control on one S3 bucket


# Lists how a PCI DSS control has scored a payments bucket day by day, so the team can see whether a remediation took
# effect.

resp = client.list_assessment_outcomes({
  control_id: "8.2.1", 
  end_time: Time.parse("2026-03-15T00:00:00Z"), 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  period: "ONE_DAY", 
  project: "payments-prod", 
  resource_identifier: "arn:aws:s3:::payments-prod-transaction-logs", 
  start_time: Time.parse("2026-03-12T00:00:00Z"), 
  statistic: "LAST", 
})

resp.to_h outputs the following:
{
  assessment_outcomes: [
    {
      outcomes: [
        {
          outcome_percentage: 100.0, 
        }, 
      ], 
      timestamp: Time.parse("2026-03-14T00:00:00Z"), 
    }, 
    {
      outcomes: [
        {
          outcome_percentage: 50.0, 
        }, 
      ], 
      timestamp: Time.parse("2026-03-13T00:00:00Z"), 
    }, 
  ], 
}

Example: The current score for a project, with no window named


# Reads the score the most recent assessment produced, for a dashboard tile that shows where the project stands now.

resp = client.list_assessment_outcomes({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  assessment_outcomes: [
    {
      outcomes: [
        {
          outcome_percentage: 100.0, 
        }, 
      ], 
      timestamp: Time.parse("2026-03-14T18:22:05Z"), 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_assessment_outcomes({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID",
  resource_identifier: "ResourceIdentifier",
  aggregation_level: "FRAMEWORK", # accepts FRAMEWORK, CONTROL
  start_time: Time.now,
  end_time: Time.now,
  period: "ONE_HOUR", # accepts ONE_HOUR, ONE_DAY
  statistic: "LAST", # accepts LAST, MAX, MIN, AVG
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.assessment_outcomes #=> Array
resp.assessment_outcomes[0].timestamp #=> Time
resp.assessment_outcomes[0].outcomes #=> Array
resp.assessment_outcomes[0].outcomes[0].control_id #=> String
resp.assessment_outcomes[0].outcomes[0].outcome_percentage #=> Float
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of the environment.

  • :project (required, String) —

    The project the request is scoped to.

  • :framework (required, String) —

    The name of the framework.

  • :framework_version (required, String) —

    The version of the framework.

  • :control_id (String) —

    Narrows the series to one control's score over time. Omit for the whole framework's score over time.

  • :resource_identifier (String) —

    Use this parameter to narrow the series to one resource. Specify the resource identifier that ListDiscoveredResources returns, which is its ARN if one exists, or its AWS Config resource type and resource ID (separated by a slash) otherwise. If you omit this parameter, the series reports the score for the whole project.

  • :aggregation_level (String) —

    The level of the scores in each point. Specify one of the following values:

    • FRAMEWORK – One score for the framework. This is the default.

    • CONTROL – One score for each control that has a score in the bucket. The controls can differ from one point to the next. Specify a window with startTime and endTime, or use the MAX, MIN, or AVG statistic.

    You can specify this parameter only together with resourceIdentifier, and not together with controlId.

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

    The start of the window, inclusive, in UTC. The default is 7 days before endTime. To get the most recent score instead of a series, omit both startTime and endTime.

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

    The end of the window, exclusive, in UTC. The default is the time of the request. endTime must be later than startTime. To get the most recent score instead of a series, omit both startTime and endTime.

  • :period (String) —

    The width of each time bucket. Valid values are ONE_HOUR and ONE_DAY. The default is ONE_DAY. This parameter has no effect when the response is the most recent score.

  • :statistic (String) —

    How AWS Assurance combines the scores of the assessments in a bucket. Specify one of the following values:

    • LAST – The score of the most recent assessment in the bucket. If that assessment has no score, the bucket is left out. This is the default.

    • MAX – The highest score in the bucket.

    • MIN – The lowest score in the bucket.

    • AVG – The average score in the bucket. Each assessment counts once, so assessments that run more often carry more weight.

    At CONTROL aggregation, the statistic is applied to each control separately.

  • :max_results (Integer) —

    The maximum number of points to return on one page. If you omit it, the operation uses its default page size.

  • :next_token (String) —

    The token for the next page of results, from a previous response.

Returns:

See Also:



4486
4487
4488
4489
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 4486

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

#list_assessments(params = {}) ⇒ Types::ListAssessmentsOutput

Lists assessments, paginated.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List assessments for a project


# Lists the PCI-DSS assessments recorded for the payments-prod project.

resp = client.list_assessments({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  assessments: [
    {
      assessment_id: "1773480600000", 
      control_id: "8.2.1", 
      created_at: Time.parse("2026-03-14T09:30:00Z"), 
      framework: "AWS:PCI-DSS", 
      framework_version: "4", 
      outcome_percentage: 75.0, 
      project: "payments-prod", 
      status: "NEEDS_ATTENTION", 
      updated_at: Time.parse("2026-03-14T10:15:00Z"), 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_assessments({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  filters: [
    {
      name: "framework", # required, accepts framework, framework-version, control-id, assessment-id, status
      values: ["FilterValue"], # required
    },
  ],
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.assessments #=> Array
resp.assessments[0].assessment_id #=> String
resp.assessments[0].framework #=> String
resp.assessments[0].framework_version #=> String
resp.assessments[0].control_id #=> String
resp.assessments[0].project #=> String
resp.assessments[0].status #=> String, one of "SCHEDULED", "IN_PROGRESS", "NEEDS_ATTENTION", "FINISHED", "NOT_APPLICABLE", "ERROR", "USER_ERROR"
resp.assessments[0].outcome_percentage #=> Float
resp.assessments[0].created_at #=> Time
resp.assessments[0].updated_at #=> Time
resp.assessments[0].trigger #=> String, one of "SCHEDULE", "DETECTED_CHANGE", "USER_ACTION"
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The project to list assessments for. Each request is scoped to one project.

  • :filters (Array<Types::AssessmentFilter>) —

    The response filter criteria. Optional. See AssessmentFilterName for the filterable attributes. A result must match every attribute you name, and matches if it equals any of the values you give for that attribute. Omitting filters returns every assessment in the project.

    Each criterion is matched against response attributes for exact equality. Criteria are independent, so control-id is valid without framework.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Returns:

See Also:



4589
4590
4591
4592
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 4589

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

#list_chat_sessions(params = {}) ⇒ Types::ListChatSessionsOutput

Lists chat sessions for you in a governance environment.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List chat sessions


# Lists the caller's chat sessions with the AWS Assurance agent in a governance environment.

resp = client.list_chat_sessions({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
})

resp.to_h outputs the following:
{
  sessions: [
    {
      last_message_at: Time.parse("2026-03-14T09:30:05Z"), 
      sequence_number: 3, 
      session_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE88888", 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_chat_sessions({
  environment_arn: "EnvironmentArn", # required
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.sessions #=> Array
resp.sessions[0].session_id #=> String
resp.sessions[0].last_message_at #=> Time
resp.sessions[0].sequence_number #=> Integer
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Returns:

See Also:



4657
4658
4659
4660
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 4657

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

#list_comments(params = {}) ⇒ Types::ListCommentsOutput

Lists the comments on a specific control, optionally narrowed to a task.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List comments on a control


# Lists the comments on a control, narrowed to a specific task in the PCI DSS assessment.

resp = client.list_comments({
  control_id: "8.2.1", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  filters: [
    {
      name: "task-id", 
      values: [
        "a1b2c3d4-5678-90ab-cdef-EXAMPLE66666", 
      ], 
    }, 
  ], 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  comments: [
    {
      comment_id: "1773484200000", 
      control_id: "8.2.1", 
      environment: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
      framework: "AWS:PCI-DSS", 
      framework_version: "4", 
      project: "payments-prod", 
      task_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE66666", 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_comments({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
  filters: [
    {
      name: "task-id", # required, accepts task-id
      values: ["FilterValue"], # required
    },
  ],
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.comments #=> Array
resp.comments[0].environment #=> String
resp.comments[0].project #=> String
resp.comments[0].framework #=> String
resp.comments[0].framework_version #=> String
resp.comments[0].control_id #=> String
resp.comments[0].task_id #=> String
resp.comments[0].comment_id #=> String
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The name of the project.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The control identifier. Optional. If omitted, the operation applies to the full framework.

  • :filters (Array<Types::CommentFilter>) —

    The response filter criteria. Optional. See CommentFilterName for the filterable attributes. A result must match every attribute you name, and matches if it equals any of the values you give for that attribute. Omitting filters returns every comment in the control.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Returns:

See Also:



4775
4776
4777
4778
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 4775

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

#list_connection_items(params = {}) ⇒ Types::ListConnectionItemsOutput

Lists the items that a connection can access, one level at a time, to help you find a document without knowing its URL. The list contains only items that the connection is authorized to access. If more results are available, the response includes nextToken. To get the next page, call this operation again with that token.

To list the top level, omit parentId. To list the contents of an item, such as a repository, site, library, or folder, specify its id. You can't list the contents of a FILE.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: Browse an S3 connection


# Lists the prefixes and objects at the top of an S3 connection, named by its source URI.

resp = client.list_connection_items({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  provider_config: {
    s3: {
      source_uri: "s3://payments-prod-evidence/pci-dss/", 
    }, 
  }, 
})

resp.to_h outputs the following:
{
  items: [
    {
      name: "2026", 
      id: "eyJsZXZlbCI6ImZvbGRlciJ9", 
      kind: "FOLDER", 
    }, 
    {
      name: "scan-report.xml", 
      id: "eyJsZXZlbCI6ImZpbGUifQ", 
      kind: "FILE", 
      size_bytes: 810, 
      url: "s3://payments-prod-evidence/pci-dss/scan-report.xml", 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_connection_items({
  environment_arn: "EnvironmentArn", # required
  connection_id: "ConnectionId",
  provider_config: {
    s3: {
      source_uri: "SourceUri", # required
    },
    github: {
      account: "GitHubAccount", # required
    },
    sharepoint: {
      tenant_id: "EntraTenantId", # required
    },
  },
  parent_id: "ConnectionItemId",
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.items #=> Array
resp.items[0].id #=> String
resp.items[0].kind #=> String, one of "REPOSITORY", "SITE", "LIBRARY", "FOLDER", "FILE"
resp.items[0].name #=> String
resp.items[0].url #=> String
resp.items[0].size_bytes #=> Integer
resp.items[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The Amazon Resource Name (ARN) of this governance environment.

  • :connection_id (String) —

    The ID of the GitHub or SharePoint connection to browse, as returned by ListEnvironmentConnections. An Amazon S3 connection has no ID. To browse one, use providerConfig.

    Specify either connectionId or providerConfig, but not both.

  • :provider_config (Types::ConnectionProviderKey) —

    The connection to browse, identified by what it connects to.

  • :parent_id (String) —

    The ID of the item whose contents you want to list. To list the top level, omit this parameter.

  • :max_results (Integer) —

    The maximum number of items to return on one page. If you omit it, the operation uses its default page size.

  • :next_token (String) —

    The token for the next page of results, from a previous response.

Returns:

See Also:



4889
4890
4891
4892
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 4889

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

#list_control_groups(params = {}) ⇒ Types::ListControlGroupsOutput

Lists the control groups in a framework version. Each entry is a summary without the group's child controls. To get the controls in a group, call ListControls with the group's controlId.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List control groups in a framework


# Lists the top-level control groups in the PCI DSS framework so the payments team can navigate the framework while
# scoping its payments-prod assessment.

resp = client.list_control_groups({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
})

resp.to_h outputs the following:
{
  control_groups: [
    {
      type: "MANAGED", 
      control_id: "8.", 
      description: "Implement Strong Access Control Measures", 
      framework: "AWS:PCI-DSS", 
      framework_version: "4", 
      title: "Identify Users and Authenticate Access to System Components", 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_control_groups({
  environment_arn: "EnvironmentArn", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.control_groups #=> Array
resp.control_groups[0].type #=> String, one of "MANAGED", "CUSTOM"
resp.control_groups[0].control_id #=> String
resp.control_groups[0].framework #=> String
resp.control_groups[0].framework_version #=> String
resp.control_groups[0].title #=> String
resp.control_groups[0].description #=> String
resp.control_groups[0].status #=> String, one of "ACTIVE", "PENDING", "PRE_PROD"
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Returns:

See Also:



4977
4978
4979
4980
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 4977

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

#list_control_resources(params = {}) ⇒ Types::ListControlResourcesOutput

Lists the resources that are in scope for the automated evaluation of a control. If no resource types apply to the control, the list is empty.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List resources in scope for a control


# Lists the resources discovered for the payments-prod project that a PCI DSS control is evaluated against during an
# automated scan.

resp = client.list_control_resources({
  control_id: "8.2.1", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  resources: [
    {
      account_id: "111122223333", 
      region: "global", 
      resource_identifier: "arn:aws:iam::111122223333:user/payments-operator", 
      resource_type: "iam:user", 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_control_resources({
  environment_arn: "EnvironmentArn", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
  project: "ProjectName",
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.resources #=> Array
resp.resources[0].resource_identifier #=> String
resp.resources[0].resource_type #=> String
resp.resources[0]. #=> String
resp.resources[0].region #=> String
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The Amazon Resource Name (ARN) of this governance environment.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The identifier of the control.

  • :project (String) —

    Optional project scope. When provided, only resources that match the project's resource filters are considered. When omitted, all of the environment's resources are considered.

  • :max_results (Integer) —

    The maximum number of results to return on one page. The default is 50. If more results are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results.

Returns:

See Also:



5070
5071
5072
5073
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 5070

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

#list_controls(params = {}) ⇒ Types::ListControlsOutput

Lists the leaf controls within a single control group in a framework version. Supports pagination through maxResults and nextToken.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List controls in a group


# Lists the leaf controls in the authentication group of the PCI DSS framework so the payments team can select which
# controls apply to payments-prod.

resp = client.list_controls({
  control_group_id: "8.", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
})

resp.to_h outputs the following:
{
  controls: [
    {
      type: "MANAGED", 
      control_id: "8.2.1", 
      description: "All users are assigned a unique ID before access to system components or cardholder data is allowed. Applicability Notes This requirement is not intended to apply to user accounts within point-of-sale terminals that have access to only one card number at a time to facilitate a single transaction (such as IDs used by cashiers on point-of-sale terminals).\n\nPurpose:\nThe ability to trace actions performed on a computer system to an individual establishes accountability and traceability and is fundamental to establishing effective access controls. By ensuring each user is uniquely identified, instead of using one ID for several employees, an organization can maintain individual responsibility for actions and an effective record in the audit log per employee. In addition, this will assist with issue resolution and containment when misuse or malicious intent occurs.", 
      status: "ACTIVE", 
      title: "User identification and related accounts for users and administrators are strictly managed throughout an accounts lifecycle.", 
      workflow_type: "automated-scan", 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_controls({
  environment_arn: "EnvironmentArn", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_group_id: "ControlID", # required
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.controls #=> Array
resp.controls[0].type #=> String, one of "MANAGED", "CUSTOM"
resp.controls[0].control_id #=> String
resp.controls[0].title #=> String
resp.controls[0].description #=> String
resp.controls[0].workflow_type #=> String, one of "automated-scan", "document", "hybrid"
resp.controls[0].status #=> String, one of "ACTIVE", "PENDING", "PRE_PROD"
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_group_id (required, String) —

    The control group whose controls the operation returns.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Returns:

See Also:



5161
5162
5163
5164
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 5161

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

#list_discovered_resources(params = {}) ⇒ Types::ListDiscoveredResourcesOutput

Lists the resources that are in scope for an environment or project. Results are paginated. If more results are available, use the nextToken value returned in the response to retrieve the next page.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List discovered resources


# Lists the resources found in the payments-prod project so the team can confirm PCI-DSS assessment scope.

resp = client.list_discovered_resources({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  resource_identifiers: [
    {
      account_id: "111122223333", 
      region: "us-east-1", 
      resource_identifier: "arn:aws:s3:::payments-prod-transaction-logs", 
      resource_type: "s3:bucket", 
    }, 
    {
      account_id: "111122223333", 
      region: "us-east-1", 
      resource_identifier: "arn:aws:dynamodb:us-east-1:111122223333:table/payments-prod-ledger", 
      resource_type: "dynamodb:table", 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_discovered_resources({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName",
  account_id: "AwsAccountId",
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.resource_identifiers #=> Array
resp.resource_identifiers[0].resource_identifier #=> String
resp.resource_identifiers[0].resource_type #=> String
resp.resource_identifiers[0]. #=> String
resp.resource_identifiers[0].region #=> String
resp.coverage #=> String, one of "COMPLETE", "PARTIAL"
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (String) —

    The name of the project.

  • :account_id (String) —

    The AWS account whose resources the operation returns. When set, the operation returns only resources owned by this account.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Returns:

See Also:



5251
5252
5253
5254
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 5251

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

#list_enabled_frameworks(params = {}) ⇒ Types::ListEnabledFrameworksOutput

Lists the frameworks enabled in a governance environment, optionally narrowed by filters.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List enabled frameworks for a project


# Lists the frameworks enabled for the payments-prod project to confirm PCI-DSS is active before starting an assessment.

resp = client.list_enabled_frameworks({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  enabled_frameworks: [
    {
      type: "MANAGED", 
      framework: "AWS:PCI-DSS", 
      framework_version: "4", 
      project: "payments-prod", 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_enabled_frameworks({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName",
  filters: [
    {
      name: "framework", # required, accepts framework, framework-version, project, type
      values: ["FilterValue"], # required
    },
  ],
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.enabled_frameworks #=> Array
resp.enabled_frameworks[0].framework #=> String
resp.enabled_frameworks[0].framework_version #=> String
resp.enabled_frameworks[0].assessment_mode #=> String, one of "SCHEDULED", "CONTINUOUS"
resp.enabled_frameworks[0].project #=> String
resp.enabled_frameworks[0].type #=> String, one of "MANAGED", "CUSTOM"
resp.enabled_frameworks[0].created_at #=> Time
resp.enabled_frameworks[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (String) —

    The project to list enabled frameworks for. Each request is scoped to one project.

  • :filters (Array<Types::EnabledFrameworkFilter>) —

    The response filter criteria. Optional. See EnabledFrameworkFilterName for the filterable attributes. A result must match every attribute you name, and matches if it equals any of the values you give for that attribute. Omitting filters returns every enabled framework in the environment.

    A criterion whose value matches nothing returns an empty page.

    When you supply a single-valued project criterion alongside the project parameter, both values must match. If they differ, the response is empty.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Returns:

See Also:



5350
5351
5352
5353
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 5350

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

#list_environment_connections(params = {}) ⇒ Types::ListEnvironmentConnectionsOutput

Lists the connections for a governance environment. To return only some connections, specify filters.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List all connections


# Lists all connections configured for the payments team's governance environment.

resp = client.list_environment_connections({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
})

resp.to_h outputs the following:
{
  items: [
    {
      connection_type: "s3", 
      created_at: Time.parse("2026-03-14T09:30:00Z"), 
      s3: {
        source_uri: "s3://payments-prod-evidence/pci-dss/", 
      }, 
      status: "ACTIVE", 
    }, 
  ], 
}

Example: List S3 connections only


# Lists only Amazon S3 connections by filtering on connection-type.

resp = client.list_environment_connections({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  filters: [
    {
      name: "connection-type", 
      values: [
        "s3", 
      ], 
    }, 
  ], 
})

resp.to_h outputs the following:
{
  items: [
    {
      connection_type: "s3", 
      created_at: Time.parse("2026-03-14T09:30:00Z"), 
      s3: {
        source_uri: "s3://payments-prod-evidence/pci-dss/", 
      }, 
      status: "ACTIVE", 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_environment_connections({
  environment_arn: "EnvironmentArn", # required
  filters: [
    {
      name: "connection-type", # required, accepts connection-type
      values: ["FilterValue"], # required
    },
  ],
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.items #=> Array
resp.items[0].connection_type #=> String, one of "s3", "github", "sharepoint"
resp.items[0].status #=> String, one of "ACTIVE", "PENDING"
resp.items[0].connection_id #=> String
resp.items[0].s3.source_uri #=> String
resp.items[0].s3.expected_bucket_owner #=> String
resp.items[0].github. #=> String
resp.items[0].sharepoint.tenant_id #=> String
resp.items[0].sharepoint.site_url #=> String
resp.items[0].sharepoint.sites #=> Array
resp.items[0].sharepoint.sites[0] #=> String
resp.items[0].created_at #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :filters (Array<Types::ConnectionFilter>) —

    The criteria to filter connections by. Criteria for different attributes are combined with AND, and values within one criterion are combined with OR. If you omit this parameter, the response includes every connection in the environment.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Returns:

See Also:



5472
5473
5474
5475
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 5472

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

#list_environments(params = {}) ⇒ Types::ListEnvironmentsOutput

Lists your governance environments. If more results are available, the response includes a nextToken value. To get the next page, pass that value in your next request.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List governance environments


# Lists the governance environments in the account so the payments team can find the one hosting its PCI-DSS assessment.

resp = client.list_environments({
  max_results: 10, 
})

resp.to_h outputs the following:
{
  environments: [
    {
      environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
      environment_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
      environment_name: "payments-governance", 
      status: "CREATED", 
    }, 
  ], 
}

Request syntax with placeholder values


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

Response structure


resp.environments #=> Array
resp.environments[0].environment_id #=> String
resp.environments[0].environment_name #=> String
resp.environments[0].environment_arn #=> String
resp.environments[0].status #=> String, one of "CREATED"
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Returns:

See Also:



5540
5541
5542
5543
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 5540

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

#list_evidence(params = {}) ⇒ Types::ListEvidenceOutput

Lists evidence items (paginated).

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List evidence for a project


# Lists the valid evidence items collected for the payments-prod PCI-DSS assessment.

resp = client.list_evidence({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  filters: [
    {
      name: "status", 
      values: [
        "VALID", 
      ], 
    }, 
  ], 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  evidence: [
    {
      version: 1, 
      created_at: Time.parse("2026-03-14T09:30:00Z"), 
      evidence_id: "assurance://PCI-DSS-user-access-review.pdf", 
      linked_controls: [
        {
          control_id: "8.2.1", 
          framework: "AWS:PCI-DSS", 
          framework_version: "4", 
          link_source: "AUTO", 
        }, 
      ], 
      project: "payments-prod", 
      status: "VALID", 
      title: "PCI-DSS user access review.pdf", 
      updated_at: Time.parse("2026-03-14T10:15:00Z"), 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_evidence({
  environment_arn: "EnvironmentArn", # required
  max_results: 1,
  next_token: "PaginationToken",
  project: "ProjectName", # required
  filters: [
    {
      name: "evidence-id", # required, accepts evidence-id, status, framework, framework-version, control-id, purpose, connection-type
      values: ["FilterValue"], # required
    },
  ],
})

Response structure


resp.evidence #=> Array
resp.evidence[0].evidence_id #=> String
resp.evidence[0].version #=> Integer
resp.evidence[0].title #=> String
resp.evidence[0].project #=> String
resp.evidence[0].created_at #=> Time
resp.evidence[0].updated_at #=> Time
resp.evidence[0].status #=> String, one of "VALID", "SCANNING", "QUARANTINED", "SCAN_FAILED", "NOT_AUTO_ANALYZED", "VALID_AUTO_ANALYZED"
resp.evidence[0].linked_controls #=> Array
resp.evidence[0].linked_controls[0].framework #=> String
resp.evidence[0].linked_controls[0].framework_version #=> String
resp.evidence[0].linked_controls[0].control_id #=> String
resp.evidence[0].linked_controls[0].link_source #=> String, one of "AUTO", "MANUAL"
resp.evidence[0].uploaded_by #=> String
resp.evidence[0].connection_type #=> String, one of "s3", "github", "sharepoint"
resp.evidence[0].link_mode #=> String, one of "AUTO", "MANUAL", "DISABLED"
resp.evidence[0].purpose #=> String, one of "CONTROL_EVIDENCE", "SCAN_EVIDENCE", "FRAMEWORK_SOURCE"
resp.evidence[0].last_auto_analysis_started_at #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

  • :project (required, String) —

    The project to list evidence for. Each request is scoped to one project.

  • :filters (Array<Types::EvidenceFilter>) —

    The response filter criteria. Optional. See EvidenceFilterName for the filterable attributes. A result must match every attribute you name, and matches if it equals any of the values you give for that attribute. Omitting filters returns every evidence item in scope.

    The framework, framework-version, and control-id filters match an evidence item when one of its linked controls matches all of them.

Returns:

See Also:



5663
5664
5665
5666
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 5663

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

#list_evidence_annotations(params = {}) ⇒ Types::ListEvidenceAnnotationsOutput

Lists the annotations on one version of a piece of evidence within a project, paginated.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List annotations for an evidence version


# Lists the reviewer notes attached to one version of an evidence item during a PCI-DSS review.

resp = client.list_evidence_annotations({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  evidence_id: "assurance://PCI-DSS-user-access-review.pdf", 
  evidence_version: 1, 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  annotations: [
    {
      assessment_id: "1773480600000", 
      control_id: "8.2.1", 
      environment: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
      evidence_id: "assurance://PCI-DSS-user-access-review.pdf", 
      evidence_version: 1, 
      framework: "AWS:PCI-DSS", 
      framework_version: "4", 
      project: "payments-prod", 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_evidence_annotations({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  evidence_id: "String", # required
  evidence_version: 1, # required
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.annotations #=> Array
resp.annotations[0].environment #=> String
resp.annotations[0].evidence_id #=> String
resp.annotations[0].evidence_version #=> Integer
resp.annotations[0].project #=> String
resp.annotations[0].framework #=> String
resp.annotations[0].framework_version #=> String
resp.annotations[0].control_id #=> String
resp.annotations[0].assessment_id #=> String
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The project scope for the annotation list. Each request is scoped to one project.

  • :evidence_id (required, String) —

    The identifier of the evidence whose annotations are listed.

  • :evidence_version (required, Integer) —

    The version number of the evidence whose annotations are listed. Required. The operation returns annotations for exactly one version. To retrieve annotations across all versions, call ListEvidence to get the available versions, then call this operation once for each version.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Returns:

See Also:



5762
5763
5764
5765
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 5762

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

#list_frameworks(params = {}) ⇒ Types::ListFrameworksOutput

Lists frameworks by type, with optional pagination. When type is omitted, the operation returns both MANAGED and CUSTOM frameworks.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List the managed frameworks in an environment


# Lists the AWS-managed frameworks available in a governance environment before starting an assessment. Omit the type
# filter to page through custom frameworks as well.

resp = client.list_frameworks({
  type: "MANAGED", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
})

resp.to_h outputs the following:
{
  frameworks: [
    {
      type: "MANAGED", 
      framework: "AWS:PCI-DSS", 
      framework_version: "4", 
      status: "ACTIVE", 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_frameworks({
  type: "MANAGED", # accepts MANAGED, CUSTOM
  environment_arn: "EnvironmentArn", # required
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.frameworks #=> Array
resp.frameworks[0].type #=> String, one of "MANAGED", "CUSTOM"
resp.frameworks[0].framework #=> String
resp.frameworks[0].environment #=> String
resp.frameworks[0].framework_version #=> String
resp.frameworks[0].title #=> String
resp.frameworks[0].status #=> String, one of "ACTIVE", "PENDING", "PRE_PROD"
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :type (String) —

    The optional filter. Values are MANAGED, CUSTOM, or omit for both.

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Returns:

See Also:



5841
5842
5843
5844
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 5841

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

#list_inbound_invitations(params = {}) ⇒ Types::ListInboundInvitationsOutput

Lists the invitations addressed to your account, across all environments. This operation returns only the invitations sent to you. You can optionally filter by status.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List invitations addressed to your account


# Lists pending invitations addressed to the payments team's member account across all governance environments.

resp = client.list_inbound_invitations({
  status: "PENDING", 
})

resp.to_h outputs the following:
{
  invitation_summaries: [
    {
      environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
      expires_at: Time.parse("2026-03-21T09:30:00Z"), 
      status: "PENDING", 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_inbound_invitations({
  status: "PENDING", # accepts PENDING, ACTIVE, REJECTED, REVOKED, EXPIRED
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.invitation_summaries #=> Array
resp.invitation_summaries[0].environment_arn #=> String
resp.invitation_summaries[0].status #=> String, one of "PENDING", "ACTIVE", "REJECTED", "REVOKED", "EXPIRED"
resp.invitation_summaries[0].expires_at #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :status (String) —

    The lifecycle state to filter results by. When specified, the operation returns only invitations in this state.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Returns:

See Also:



5912
5913
5914
5915
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 5912

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

#list_outbound_invitations(params = {}) ⇒ Types::ListOutboundInvitationsOutput

Lists the invitations that you extended from an environment you own. Supports pagination and an optional status filter.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List invitations from an owned environment


# Lists the invitations the payments team extended from its governance environment to customer accounts.

resp = client.list_outbound_invitations({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  status: "ACTIVE", 
})

resp.to_h outputs the following:
{
  invitation_summaries: [
    {
      invitee_account_id: "444455556666", 
      status: "ACTIVE", 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_outbound_invitations({
  environment_arn: "EnvironmentArn", # required
  status: "PENDING", # accepts PENDING, ACTIVE, REJECTED, REVOKED, EXPIRED
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.invitation_summaries #=> Array
resp.invitation_summaries[0]. #=> String
resp.invitation_summaries[0].status #=> String, one of "PENDING", "ACTIVE", "REJECTED", "REVOKED", "EXPIRED"
resp.invitation_summaries[0].expires_at #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :status (String) —

    The lifecycle state to filter results by. When specified, the operation returns only invitations in this state.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Returns:

See Also:



5986
5987
5988
5989
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 5986

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

#list_permission_set_assignments(params = {}) ⇒ Types::ListPermissionSetAssignmentsOutput

Lists permission set assignments for an environment.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List permission set assignments


# Lists the permission set assignments in the environment to audit who has access to the payments-prod project during the
# PCI-DSS assessment.

resp = client.list_permission_set_assignments({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
})

resp.to_h outputs the following:
{
  assignments: [
    {
      assignment_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE99999", 
      created_at: Time.parse("2026-03-14T09:30:00Z"), 
      permission_set_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE88888", 
      principal_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE12345", 
      principal_type: "USER", 
      scope_id: "payments-prod", 
      scope_type: "PROJECT", 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_permission_set_assignments({
  environment_arn: "EnvironmentArn", # required
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.assignments #=> Array
resp.assignments[0].assignment_id #=> String
resp.assignments[0].principal_type #=> String, one of "USER", "GROUP"
resp.assignments[0].principal_id #=> String
resp.assignments[0].permission_set_id #=> String
resp.assignments[0].scope_type #=> String, one of "ENVIRONMENT", "PROJECT"
resp.assignments[0].scope_id #=> String
resp.assignments[0].created_at #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Returns:

See Also:



6063
6064
6065
6066
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 6063

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

#list_permission_sets(params = {}) ⇒ Types::ListPermissionSetsOutput

Lists permission sets for an environment.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List permission sets


# Lists the permission sets defined in the environment to review who can be granted access during the PCI-DSS assessment.

resp = client.list_permission_sets({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
})

resp.to_h outputs the following:
{
  permission_sets: [
    {
      name: "Payments Auditor", 
      permission_count: 2, 
      permission_set_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE88888", 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_permission_sets({
  environment_arn: "EnvironmentArn", # required
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.permission_sets #=> Array
resp.permission_sets[0].permission_set_id #=> String
resp.permission_sets[0].name #=> String
resp.permission_sets[0].permission_count #=> Integer
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Returns:

See Also:



6131
6132
6133
6134
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 6131

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

#list_projects(params = {}) ⇒ Types::ListProjectsOutput

Lists all projects within a governance environment.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List projects


# Lists the projects in the governance environment so the payments team can find its payments-prod project.

resp = client.list_projects({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  max_results: 25, 
})

resp.to_h outputs the following:
{
  projects: [
    {
      project: "payments-prod", 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_projects({
  environment_arn: "EnvironmentArn", # required
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.projects #=> Array
resp.projects[0].project #=> String
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Returns:

See Also:



6196
6197
6198
6199
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 6196

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

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

Lists tags for a resource.

Examples:

Example: List tags for a governance environment


# Lists the tags currently applied to the governance environment.

resp = client.list_tags_for_resource({
  resource_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
})

resp.to_h outputs the following:
{
  tags: [
    {
      key: "compliance-program", 
      value: "pci-dss", 
    }, 
    {
      key: "team", 
      value: "payments", 
    }, 
  ], 
}

Request syntax with placeholder values


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

Response structure


resp.tags #=> Array
resp.tags[0].key #=> String
resp.tags[0].value #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :resource_arn (required, String) —

    The Amazon Resource Name (ARN) of the resource.

Returns:

See Also:



6249
6250
6251
6252
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 6249

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

#list_task_history(params = {}) ⇒ Types::ListTaskHistoryOutput

Lists task history across assessments for a given task, ordered by most recent first.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List a task's history


# Lists the history of the unique-user-ID task to show how it progressed across the payments-prod PCI-DSS assessments.

resp = client.list_task_history({
  control_id: "8.2.1", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  project: "payments-prod", 
  task_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE66666", 
})

resp.to_h outputs the following:
{
  history: [
    {
      comment: "Updated fields: status", 
      modified_by: "Customer", 
      updated_at: Time.parse("2026-03-15T14:45:00Z"), 
    }, 
    {
      comment: "Created task: Assign unique user IDs for payments-prod database access", 
      modified_by: "Assessment 1773480600000", 
      updated_at: Time.parse("2026-03-14T09:30:00Z"), 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_task_history({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
  task_id: "TaskId", # required
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.history #=> Array
resp.history[0].comment #=> String
resp.history[0].modified_by #=> String
resp.history[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The name of the project.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The control identifier. Optional. If omitted, the operation applies to the full framework.

  • :task_id (required, String) —

    The identifier of the task.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Returns:

See Also:



6349
6350
6351
6352
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 6349

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

#list_tasks(params = {}) ⇒ Types::ListTasksOutput

Lists all tasks within a governance environment.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Example: List open tasks in a project


# Lists the open tasks in the payments-prod project so the team can see the remaining PCI-DSS remediation work.

resp = client.list_tasks({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  filters: [
    {
      name: "status", 
      values: [
        "OPEN", 
      ], 
    }, 
  ], 
  max_results: 20, 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  tasks: [
    {
      control_id: "8.2.1", 
      created_by: "Assurance", 
      due_at: Time.parse("2026-03-21T09:30:00Z"), 
      environment: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
      framework: "AWS:PCI-DSS", 
      framework_version: "4", 
      priority: "HIGH", 
      project: "payments-prod", 
      status: "OPEN", 
      task_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE66666", 
      title: "Assign unique user IDs for payments-prod database access", 
    }, 
  ], 
}

Request syntax with placeholder values


resp = client.list_tasks({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  filters: [
    {
      name: "framework", # required, accepts framework, framework-version, control-id, task-id, status, priority, assessment-id
      values: ["FilterValue"], # required
    },
  ],
  max_results: 1,
  next_token: "PaginationToken",
})

Response structure


resp.tasks #=> Array
resp.tasks[0].environment #=> String
resp.tasks[0].project #=> String
resp.tasks[0].framework #=> String
resp.tasks[0].framework_version #=> String
resp.tasks[0].control_id #=> String
resp.tasks[0].task_id #=> String
resp.tasks[0].title #=> String
resp.tasks[0].status #=> String, one of "OPEN", "PENDING", "COMPLETED", "CANCELLED"
resp.tasks[0].created_by #=> String
resp.tasks[0].assessment_id #=> String
resp.tasks[0].due_at #=> Time
resp.tasks[0].priority #=> String, one of "HIGH", "MEDIUM", "LOW"
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The project to list tasks for. Each request is scoped to one project.

  • :filters (Array<Types::TaskFilter>) —

    The response filter criteria. Optional. See TaskFilterName for the filterable attributes. A result must match every attribute you name, and matches if it equals any of the values you give for that attribute. Omitting filters returns every task in the project.

    A single-valued criterion for framework, framework-version, or control-id narrows the results when every broader component is also supplied. When a broader component is absent, the criterion is applied to the returned results.

    An assessment-id criterion returns the task history for that assessment. It accepts one value and requires single-valued framework, framework-version, and control-id criteria alongside it.

  • :max_results (Integer) —

    The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • :next_token (String) —

    The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Returns:

See Also:



6470
6471
6472
6473
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 6470

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

#publish_framework(params = {}) ⇒ Types::PublishFrameworkOutput

Publishes a custom framework, transitioning its status from PENDING to ACTIVE. You can enable only ACTIVE frameworks on an environment.

Examples:

Example: Publish a custom framework


# Publishes a custom PCI-DSS framework so it can be enabled on the governance environment.

resp = client.publish_framework({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "payments-pci-dss", 
  framework_version: "1.0", 
})

resp.to_h outputs the following:
{
  framework: {
    type: "CUSTOM", 
    created_at: Time.parse("2026-03-14T09:30:00Z"), 
    description: "Custom control framework for the payments team PCI-DSS v4 assessment.", 
    environment: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
    framework_name: "payments-pci-dss", 
    framework_version: "1.0", 
    status: "ACTIVE", 
    title: "Payments PCI-DSS v4 Framework", 
    updated_at: Time.parse("2026-03-14T10:15:00Z"), 
  }, 
}

Request syntax with placeholder values


resp = client.publish_framework({
  environment_arn: "EnvironmentArn", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
})

Response structure


resp.framework.type #=> String, one of "MANAGED", "CUSTOM"
resp.framework.framework_name #=> String
resp.framework.environment #=> String
resp.framework.framework_version #=> String
resp.framework.title #=> String
resp.framework.description #=> String
resp.framework.status #=> String, one of "ACTIVE", "PENDING", "PRE_PROD"
resp.framework.created_at #=> Time
resp.framework.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

Returns:

See Also:



6541
6542
6543
6544
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 6541

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

#put_control_status_override(params = {}) ⇒ Types::PutControlStatusOverrideOutput

Marks a control, or one of its requirements, as not applicable to a project, or makes it applicable again. The decision applies only to the specified project and framework version, which must be enabled in the project.

Marking a control or requirement not applicable cancels its open remediation tasks. Making it applicable again doesn't reopen them.

If another request changes the same control at the same time, you receive a ConflictException. Call GetControlStatus before you retry.

Examples:

Request syntax with placeholder values


resp = client.put_control_status_override({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
  requirement_id: "RequirementId",
  type: "NOT_APPLICABLE", # required, accepts NOT_APPLICABLE, NONE
  justification: "Justification",
})

Response structure


resp.status_override.type #=> String, one of "NOT_APPLICABLE", "NONE"
resp.status_override.justification #=> String
resp.status_override.declared_by #=> String
resp.status_override.declared_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The Amazon Resource Name (ARN) of this governance environment.

  • :project (required, String) —

    The name of the project.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The identifier of the control. The control must exist in the framework version.

  • :requirement_id (String) —

    The identifier of a requirement of the control. Specify it to declare or remove a decision on that requirement only. Omit it to apply the decision to the whole control. If the requirement doesn't belong to the control, AWS Assurance returns a ValidationException.

  • :type (required, String) —

    The decision to declare. Specify one of the following values:

    • NOT_APPLICABLE – Excludes the control or requirement from the project's outcome. Requires a justification. If a decision already exists, the new justification replaces it, and AWS Assurance updates declaredBy and declaredAt.

    • NONE – Removes the current decision on the specified control or requirement. If you remove the decision on a control, the decisions on its individual requirements stay in place. A requirement stays not applicable while its control is not applicable.

  • :justification (String) —

    The reason that the control or requirement doesn't apply to the project. AWS Assurance keeps it as evidence for the decision. Required when type is NOT_APPLICABLE, and must contain 1–1,024 characters that aren't all whitespace. Omit it when type is NONE.

Returns:

See Also:



6629
6630
6631
6632
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 6629

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

#put_evidence(params = {}) ⇒ Types::PutEvidenceOutput

Adds evidence to support a compliance assessment. To add a new version of existing evidence, specify evidenceId.

Provide either the file content in content or a link to the document in reference, but not both.

Examples:

Example: Add evidence for an assessment


# Adds a user access review as evidence for the payments-prod PCI-DSS assessment.

resp = client.put_evidence({
  content: "JVBERi0xLjQK", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  project: "payments-prod", 
  title: "PCI-DSS user access review.pdf", 
})

resp.to_h outputs the following:
{
  version: 1, 
  evidence_id: "assurance://PCI-DSS-user-access-review.pdf", 
}

Request syntax with placeholder values


resp = client.put_evidence({
  environment_arn: "EnvironmentArn", # required
  content: "data",
  title: "EvidenceTitle",
  description: "EvidenceDescription",
  evidence_id: "String",
  content_mime_type: "String",
  project: "ProjectName", # required
  reference: "EvidenceReference",
  connection_id: "ConnectionId",
  control_references: [
    {
      framework: "FrameworkName", # required
      framework_version: "FrameworkVersion", # required
      control_id: "ControlID", # required
    },
  ],
  link_mode: "AUTO", # accepts AUTO, MANUAL, DISABLED
  purpose: "CONTROL_EVIDENCE", # accepts CONTROL_EVIDENCE, SCAN_EVIDENCE, FRAMEWORK_SOURCE
})

Response structure


resp.evidence_id #=> String
resp.version #=> Integer

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The Amazon Resource Name (ARN) of this governance environment.

  • :content (String, StringIO, File) —

    The file content. Required for a direct upload. You can't specify both content and reference.

  • :title (String) —

    The title of the evidence. When you create new evidence, AWS Assurance derives the evidence ID from the title, in the form assurance://{sanitized-title}.

    Required when you specify content. Optional when you specify reference. If you omit it, AWS Assurance uses the name of the referenced document.

  • :description (String) —

    The optional description of the evidence.

  • :evidence_id (String) —

    The ID of existing evidence. Specify it to add a new version of that evidence. Omit it to create new evidence.

  • :content_mime_type (String) —

    The declared Multipurpose Internet Mail Extensions (MIME) type of the file, for example application/pdf. AWS Assurance checks the declared type against the actual file content. For the list of registered types, see Media Types on the IANA website.

  • :project (required, String) —

    Project scope for the evidence.

  • :reference (String) —

    A link to the document. You can't specify both reference and content. Supported formats:

    • For a file in GitHub, a link in the form https://github.com/{owner" target="_parent" title="owner">https://github.com/{owner</a>">owner">https://github.com/{owner/repo/blob/ref/path.

    • For a document in SharePoint, any link to the document in the form https://{tenant" target="_parent" title="tenant">https://{tenant</a>">tenant">https://{tenant.sharepoint.com/path, including a sharing link.

    • For an object in Amazon S3, a URI in the form s3://bucket/key. The bucket must be the evidence bucket configured for the environment.

  • :connection_id (String) —

    The ID of the connection to read reference through, as returned by ListEnvironmentConnections. Each new version of the document uses this connection too.

    Use this parameter only with reference.

    If you omit this parameter, the operation uses the single connection that can read the document. If the environment has more than one connection to the same provider, specify this parameter.

  • :control_references (Array<Types::ControlReference>) —

    The controls to link the evidence to when you add it. You can specify control links only when purpose is CONTROL_EVIDENCE.

  • :link_mode (String) —

    Specifies whether AWS Assurance analyzes the evidence and links it to relevant controls. A link shows that the evidence is relevant to a control, not that you meet the control. An assessment determines whether you meet the control. Specify one of the following values:

    • AUTO – AWS Assurance analyzes the evidence and adds control links.

    • MANUAL – AWS Assurance doesn't analyze the evidence. You add control links yourself.

    Automatic linking is available only to some accounts during the preview. If you omit this parameter, the default is AUTO for those accounts and MANUAL for all other accounts. Evidence whose purpose isn't CONTROL_EVIDENCE always has the mode DISABLED, which means that it can't be linked to controls. You can't specify AUTO for that evidence.

  • :purpose (String) —

    What the evidence is for. Specify one of the following values:

    • CONTROL_EVIDENCE – Evidence that supports controls.

    • FRAMEWORK_SOURCE – The document that you create a custom framework from. AWS Assurance never links this evidence to controls.

    You can't specify SCAN_EVIDENCE. If you omit this parameter, a new version keeps the purpose of the existing evidence, and new evidence uses CONTROL_EVIDENCE. You can't change the purpose in a new version.

Returns:

See Also:



6791
6792
6793
6794
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 6791

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

#register_organization_delegated_admin(params = {}) ⇒ Types::RegisterOrganizationDelegatedAdminOutput

Registers a member account of your organization as the delegated administrator for AWS Assurance. The delegated administrator can then manage organization-scoped environments together with the management account.

Only the management account of the organization can call this operation.

Examples:

Example: Register a delegated administrator


# Registers a member account as the AWS Assurance delegated administrator so it can help run the payments team's PCI-DSS
# assessment across the organization.

resp = client.register_organization_delegated_admin({
  account_id: "444455556666", 
})

resp.to_h outputs the following:
{
  account_id: "444455556666", 
  organization_id: "o-example12345", 
}

Request syntax with placeholder values


resp = client.register_organization_delegated_admin({
  account_id: "AwsAccountId", # required
})

Response structure


resp. #=> String
resp.organization_id #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :account_id (required, String) —

    The 12-digit AWS account ID of the member account to register as the delegated administrator. The account must be an active member of the caller's organization.

Returns:

See Also:



6845
6846
6847
6848
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 6845

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

#reject_invitation(params = {}) ⇒ Struct

Rejects (declines) a pending invitation. Call this operation from the invited account. This operation is idempotent—re-rejecting an already REJECTED invitation has no effect.

Examples:

Example: Reject an invitation


# Declines a pending invitation to connect the account to the governance environment running the PCI-DSS assessment.

resp = client.reject_invitation({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


resp = client.reject_invitation({
  environment_arn: "EnvironmentArn", # required
})

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of the environment that sent the invitation.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



6882
6883
6884
6885
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 6882

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

#revoke_permission_set(params = {}) ⇒ Struct

Revokes a permission set assignment.

Examples:

Example: Revoke a permission set assignment


# Revokes the auditor's permission set assignment on the payments-prod project once the PCI-DSS assessment work is done.

resp = client.revoke_permission_set({
  assignment_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE99999", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


resp = client.revoke_permission_set({
  environment_arn: "EnvironmentArn", # required
  assignment_id: "AssignmentId", # required
})

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :assignment_id (required, String) —

    The unique identifier of the permission set assignment.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



6922
6923
6924
6925
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 6922

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

#start_assessment(params = {}) ⇒ Types::StartAssessmentOutput

Begins a new assessment for a control or framework.

Examples:

Example: Start a PCI-DSS assessment


# Begins a PCI-DSS 4.0 assessment for a control in the payments-prod project.

resp = client.start_assessment({
  control_id: "8.2.1", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  assessment_id: "1773480600000", 
}

Request syntax with placeholder values


resp = client.start_assessment({
  environment_arn: "EnvironmentArn", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID",
  project: "ProjectName", # required
  context: "StartAssessmentInputContextString",
})

Response structure


resp.assessment_id #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (String) —

    The control identifier. Optional. If omitted, the operation applies to the full framework.

  • :project (required, String) —

    The name of the project.

  • :context (String) —

    The optional user-provided context or guidance for the assessment evaluation.

Returns:

See Also:



6990
6991
6992
6993
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 6990

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

#start_assessment_report_export(params = {}) ⇒ Types::StartAssessmentReportExportOutput

Starts preparing an assessment report for a framework in a project. To check progress, call GetAssessmentReportExport until the export status is COMPLETED. Then call GetAssessmentReportContent to get the report.

If an export for the same scope is already in progress, this operation returns the identifier of that export instead of starting a new one.

Examples:

Example: Start an assessment report export


resp = client.start_assessment_report_export({
  control_ids: [
    "8.2.1", 
  ], 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
  export_id: "a3f29c1d4b5e4a7c8d9e1a2b3c4d5e6f", 
}

Request syntax with placeholder values


resp = client.start_assessment_report_export({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_ids: ["ControlID"],
})

Response structure


resp.export_id #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of the environment.

  • :project (required, String) —

    The project the request is scoped to.

  • :framework (required, String) —

    The name of the framework to report on.

  • :framework_version (required, String) —

    The version of the framework.

  • :control_ids (Array<String>) —

    The control to include in the report. To report on the whole framework, omit this parameter.

Returns:

See Also:



7059
7060
7061
7062
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 7059

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

#start_resource_activities_query(params = {}) ⇒ Types::StartResourceActivitiesQueryOutput

Starts a query of the AWS API calls that an artificial intelligence (AI) agent on Amazon Bedrock AgentCore Runtime made. Use the results to audit which resources the agent touched in your account. Returns a query ID. To check the status of the query and get its results, call GetResourceActivitiesQueryResults.

The agent runtime that you query must be in your AWS account.

Examples:

Request syntax with placeholder values


resp = client.start_resource_activities_query({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  actor_arn: "ResourceArn", # required
  start_time: Time.now,
  end_time: Time.now,
  aggregation_levels: ["ACTION"], # accepts ACTION, RESOURCE, SESSION
  filters: [
    {
      name: "sessionId", # required, accepts sessionId
      values: ["AgentSessionId"], # required
    },
  ],
})

Response structure


resp.query_id #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of the environment to query in.

  • :project (required, String) —

    The project to query in.

  • :actor_arn (required, String) —

    The ARN of the agent runtime whose activity to query. The agent runtime must be in your AWS account.

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

    The start of the time range to query, inclusive. The default is 24 hours before the request.

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

    The end of the time range to query, exclusive. The default is the time of the request.

  • :aggregation_levels (Array<String>) —

    The ways to group the results. By default, the results include every grouping. Valid values:

    • ACTION – Call counts for each AWS service and API action.

    • RESOURCE – Call counts for each resource.

    • SESSION – The agent sessions in the time range.

  • :filters (Array<Types::ResourceActivitiesFilter>) —

    The filters to apply to the results. A result must match every filter. Within one filter, a result must match at least one of the values. If you don't specify any filters, the query returns all activity in the time range.

Returns:

See Also:



7135
7136
7137
7138
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 7135

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

#tag_resource(params = {}) ⇒ Struct

Adds or overwrites tags on a resource.

Examples:

Example: Tag a governance environment


# Applies compliance-program and team tags to the governance environment so the payments team can track it alongside their
# other resources.

resp = client.tag_resource({
  resource_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  tags: [
    {
      key: "compliance-program", 
      value: "pci-dss", 
    }, 
    {
      key: "team", 
      value: "payments", 
    }, 
  ], 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


resp = client.tag_resource({
  resource_arn: "ResourceArn", # required
  tags: [ # required
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
})

Parameters:

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

    ({})

Options Hash (params):

  • :resource_arn (required, String) —

    The Amazon Resource Name (ARN) of the resource.

  • :tags (required, Array<Types::Tag>) —

    The tags attached to the resource, as key-value pairs.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



7190
7191
7192
7193
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 7190

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

#untag_resource(params = {}) ⇒ Struct

Removes tags from a resource.

Examples:

Example: Remove a tag from a governance environment


# Removes the team tag from the governance environment when ownership of the environment changes.

resp = client.untag_resource({
  resource_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  tag_keys: [
    "team", 
  ], 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


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

Parameters:

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

    ({})

Options Hash (params):

  • :resource_arn (required, String) —

    The Amazon Resource Name (ARN) of the resource.

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

    The keys of the tags to remove from the resource.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



7232
7233
7234
7235
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 7232

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

#update_comment(params = {}) ⇒ Struct

Modifies the content of an existing comment.

Examples:

Example: Update a comment on a control


# Revises an existing reviewer note on a control after the requested evidence is attached.

resp = client.update_comment({
  comment_id: "1773484200000", 
  content: "Evidence attached; the Q1 cardholder data environment scan is complete.", 
  control_id: "8.2.1", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


resp = client.update_comment({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
  comment_id: "CommentId", # required
  content: "CommentContent",
})

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The name of the project.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The control identifier. Optional. If omitted, the operation applies to the full framework.

  • :comment_id (required, String) —

    The unique identifier of the comment.

  • :content (String) —

    The replacement free-text content of the comment.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



7298
7299
7300
7301
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 7298

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

#update_control(params = {}) ⇒ Struct

Updates a custom control. Supply only the fields you want to change; the operation leaves omitted fields unchanged.

Examples:

Example: Update a control


# Revises the description of a custom control in the payments team's draft framework, before it is published, to clarify
# what the payments-prod assessment will check for.

resp = client.update_control({
  control_id: "PAY-1.1", 
  description: "Requires cardholder data at rest to be encrypted with a customer-managed KMS key.", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "payments-pci-dss", 
  framework_version: "1.0", 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


resp = client.update_control({
  environment_arn: "EnvironmentArn", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
  parent_control_id: "ControlID",
  title: "ControlTitle",
  description: "ControlDescription",
  requirements: [
    {
      id: "RequirementId", # required
      description: "RequirementDescription", # required
    },
  ],
  display_order: 1,
  control_intents: ["ControlIntent"],
  workflow_type: "automated-scan", # accepts automated-scan, document, hybrid
})

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The control identifier. Optional. If omitted, the operation applies to the full framework.

  • :parent_control_id (String) —

    The identifier of the parent control group.

  • :title (String) —

    The new display name for the control. Omit to leave it unchanged.

  • :description (String) —

    The new description for the control. Omit to leave it unchanged.

  • :requirements (Array<Types::Requirement>) —

    The replacement set of requirements. Supplying this replaces the control's existing requirements in full; omit to leave them unchanged.

  • :display_order (Integer) —

    The ordering key that determines the display sequence within the framework.

  • :control_intents (Array<String>) —

    The technical control intents that classify how an assessment evaluates this leaf control. Supplying at least one intent makes the control eligible for automated scanning. Leaf controls only.

  • :workflow_type (String) —

    The optional evaluation workflow type. When omitted and controlIntents are present, the service defaults this to automated-scan. Leaf controls only.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



7392
7393
7394
7395
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 7392

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

#update_control_group(params = {}) ⇒ Struct

Updates a control group.

Examples:

Example: Update a control group


# Renames a control group in the payments team's draft custom framework, before it is published, so its title reflects the
# payments-prod scope.

resp = client.update_control_group({
  control_id: "PAY-1", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "payments-pci-dss", 
  framework_version: "1.0", 
  title: "Payments data protection (payments-prod)", 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


resp = client.update_control_group({
  environment_arn: "EnvironmentArn", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
  title: "ControlTitle",
  description: "ControlDescription",
  display_order: 1,
})

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The control identifier. Optional. If omitted, the operation applies to the full framework.

  • :title (String) —

    The new display name for the control group. Omit to leave it unchanged.

  • :description (String) —

    The new description for the control group. Omit to leave it unchanged.

  • :display_order (Integer) —

    The ordering key that determines the display sequence within the framework.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



7459
7460
7461
7462
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 7459

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

#update_environment(params = {}) ⇒ Struct

Updates a governance environment.

Examples:

Example: Update a governance environment


# Updates the description of the payments team's governance environment.

resp = client.update_environment({
  description: "Governance environment for the payments team's PCI-DSS assessment (Q1 scope).", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


resp = client.update_environment({
  environment_arn: "EnvironmentArn", # required
  description: "EnvironmentDescription",
  identity_store: {
    config: {
      instance_arn: "IdentityCenterInstanceArn", # required
      identity_center_role: "IamRoleArn", # required
    },
    disabled: false,
  },
  operator_role: "IamRoleArn",
  kms_key_arn: "OptionalKmsKeyArn",
  regions: ["AwsRegion"],
  environment_scope: "ORGANIZATION", # accepts ORGANIZATION, SINGLE_ACCOUNT
  organizational_unit_ids: {
    organizational_unit_ids: ["OrganizationalUnitId"],
    cleared: false,
  },
})

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :description (String) —

    A description of the environment.

  • :identity_store (Types::IdentityStoreUpdate) —

    The update to the identity store configuration. You can provide a new configuration or disable the identity store.

  • :operator_role (String) —

    The IAM role that AWS Assurance assumes to issue temporary credentials to operators who use your application. The role's trust policy must allow the AWS Assurance service principal to call sts:AssumeRole.

  • :kms_key_arn (String) —

    The ARN of the AWS KMS key that encrypts evidence. To change the key, specify a new ARN. To remove the key, specify an empty string.

  • :regions (Array<String>) —

    The AWS Regions to evaluate across. Replaces existing list. Send empty list to revert to all generally available Regions in the partition.

  • :environment_scope (String) —

    The set of AWS accounts this environment evaluates.

    ORGANIZATION: convert the environment into an organization environment. Only valid when the environment is owned by the organization's management account and AWS Organizations trusted access for AWS Assurance is enabled; you must be in that organization. Idempotent when the scope is already ORGANIZATION.

    SINGLE_ACCOUNT: revert the environment to evaluating only its own account. This operation is idempotent when the scope is already SINGLE_ACCOUNT. After this change, the environment no longer evaluates organization member accounts.

    null or omitted: leaves the environment's scope unchanged.

  • :organizational_unit_ids (Types::OrganizationalUnitIdsUpdate) —

    The replacement organizational unit scope for the environment. Provide a replacement list of organizational units, or set cleared to evaluate the entire organization. Only valid on an organization environment, or together with a scope change to ORGANIZATION. Null or omitted leaves organizational unit scoping unchanged.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



7554
7555
7556
7557
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 7554

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

#update_evidence(params = {}) ⇒ Struct

Updates evidence metadata and manages control links (add or remove) and re-analysis without creating a new evidence version.

Examples:

Example: Link evidence to a control


# Links the user access review evidence to a PCI-DSS control in the payments-prod project.

resp = client.update_evidence({
  add_control_reference_links: [
    {
      control_id: "8.2.1", 
      framework: "AWS:PCI-DSS", 
      framework_version: "4", 
    }, 
  ], 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  evidence_id: "assurance://PCI-DSS-user-access-review.pdf", 
  project: "payments-prod", 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


resp = client.update_evidence({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  evidence_id: "UpdateEvidenceInputEvidenceIdString", # required
  title: "EvidenceTitle",
  description: "EvidenceDescription",
  add_control_reference_links: [
    {
      framework: "FrameworkName", # required
      framework_version: "FrameworkVersion", # required
      control_id: "ControlID", # required
    },
  ],
  remove_control_reference_links: [
    {
      framework: "FrameworkName", # required
      framework_version: "FrameworkVersion", # required
      control_id: "ControlID", # required
    },
  ],
  link_mode: "AUTO", # accepts AUTO, MANUAL, DISABLED
})

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The name of the project.

  • :evidence_id (required, String) —

    The unique identifier of the evidence item.

  • :title (String) —

    The optional new title.

  • :description (String) —

    The optional new description.

  • :add_control_reference_links (Array<Types::ControlReference>) —

    The control links to add.

  • :remove_control_reference_links (Array<Types::ControlReference>) —

    The control links to remove. AWS Assurance doesn't suggest removed links again.

  • :link_mode (String) —

    Controls whether AWS Assurance analyzes the latest version of the evidence again and suggests new control links. Specify one of the following values:

    • AUTO – Starts an analysis. The analysis only adds links. It keeps existing links, and it doesn't suggest links that you removed.

    • MANUAL – Doesn't run an analysis. This is the default if you omit this parameter.

    You can't specify DISABLED. If an analysis that started less than 10 minutes ago is still running, AWS Assurance returns a ConflictException. Other changes in the same request might already be applied, so it's safe to retry.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



7653
7654
7655
7656
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 7653

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

#update_framework(params = {}) ⇒ Types::UpdateFrameworkOutput

Updates the title or description of a custom framework. You cannot change its name or version. You can update only custom frameworks; managed frameworks are read-only.

Examples:

Example: Update a custom framework


# Updates the title and description of a custom PCI-DSS framework.

resp = client.update_framework({
  description: "Updated custom control framework for the payments team PCI-DSS v4 assessment.", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "payments-pci-dss", 
  framework_version: "1.0", 
  title: "Payments PCI-DSS v4 Framework (2026)", 
})

resp.to_h outputs the following:
{
  framework: {
    type: "CUSTOM", 
    created_at: Time.parse("2026-03-14T09:30:00Z"), 
    description: "Updated custom control framework for the payments team PCI-DSS v4 assessment.", 
    environment: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
    framework_name: "payments-pci-dss", 
    framework_version: "1.0", 
    status: "ACTIVE", 
    title: "Payments PCI-DSS v4 Framework (2026)", 
    updated_at: Time.parse("2026-03-14T11:00:00Z"), 
  }, 
}

Request syntax with placeholder values


resp = client.update_framework({
  environment_arn: "EnvironmentArn", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  title: "FrameworkTitle",
  description: "FrameworkDescription",
})

Response structure


resp.framework.type #=> String, one of "MANAGED", "CUSTOM"
resp.framework.framework_name #=> String
resp.framework.environment #=> String
resp.framework.framework_version #=> String
resp.framework.title #=> String
resp.framework.description #=> String
resp.framework.status #=> String, one of "ACTIVE", "PENDING", "PRE_PROD"
resp.framework.created_at #=> Time
resp.framework.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :title (String) —

    The human-readable title of the framework.

  • :description (String) —

    A description of the framework.

Returns:

See Also:



7735
7736
7737
7738
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 7735

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

#update_permission_set(params = {}) ⇒ Struct

Updates an existing permission set. Omitted fields are left unchanged. Returns no content; retrieve the updated attributes with GetPermissionSet.

Examples:

Example: Update a permission set


# Upgrades the payments auditor permission set from reviewing assessments to running them.

resp = client.update_permission_set({
  description: "Access for the payments compliance team to run the PCI-DSS assessment and manage its projects.", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  permission_set_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE88888", 
  permissions: [
    "run_assessments", 
    "manage_projects", 
  ], 
})

resp.to_h outputs the following:
{
}

Request syntax with placeholder values


resp = client.update_permission_set({
  environment_arn: "EnvironmentArn", # required
  permission_set_id: "PermissionSetId", # required
  name: "PermissionSetName",
  description: "PermissionSetDescription",
  permissions: ["Permission"],
})

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :permission_set_id (required, String) —

    The identifier of the permission set.

  • :name (String) —

    The name of the permission set.

  • :description (String) —

    A description of the permission set.

  • :permissions (Array<String>) —

    The permissions granted by the permission set.

Returns:

  • (Struct) —

    Returns an empty response.

See Also:



7794
7795
7796
7797
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 7794

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

#update_project(params = {}) ⇒ Types::UpdateProjectOutput

Updates an existing project. Omit any field to leave it unchanged.

Examples:

Example: Update a project


# Broadens the payments-prod project's scope to also include the account's S3 buckets during the PCI-DSS assessment.

resp = client.update_project({
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  project: "payments-prod", 
  resource_filters: [
    "tag:app=payments-prod", 
    "region:us-east-1 resourcetype:rds:db", 
    "region:us-east-1 resourcetype:s3:bucket", 
  ], 
})

resp.to_h outputs the following:
{
  project: "payments-prod", 
  resource_filters: [
    "tag:app=payments-prod", 
    "region:us-east-1 resourcetype:rds:db", 
    "region:us-east-1 resourcetype:s3:bucket", 
  ], 
}

Request syntax with placeholder values


resp = client.update_project({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  resource_filters: ["ResourceFilter"],
})

Response structure


resp.project #=> String
resp.resource_filters #=> Array
resp.resource_filters[0] #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The name of the project.

  • :resource_filters (Array<String>) —

    The filters that determine which resources are in scope.

Returns:

See Also:



7858
7859
7860
7861
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 7858

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

#update_task(params = {}) ⇒ Types::UpdateTaskOutput

Updates an existing task.

Examples:

Example: Mark a task complete


# Marks the task complete after the payments team replaces the shared database account with per-user IDs.

resp = client.update_task({
  control_id: "8.2.1", 
  environment_arn: "arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
  framework: "AWS:PCI-DSS", 
  framework_version: "4", 
  project: "payments-prod", 
  status: "COMPLETED", 
  task_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE66666", 
})

resp.to_h outputs the following:
{
  task: {
    control_id: "8.2.1", 
    created_at: Time.parse("2026-03-14T09:30:00Z"), 
    created_by: "Assurance", 
    description: "Replace the shared payments-prod database account with per-user IDs so every user is assigned a unique ID before access is granted.", 
    due_at: Time.parse("2026-03-21T09:30:00Z"), 
    environment: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", 
    framework: "AWS:PCI-DSS", 
    framework_version: "4", 
    priority: "HIGH", 
    project: "payments-prod", 
    status: "COMPLETED", 
    task_id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE66666", 
    title: "Assign unique user IDs for payments-prod database access", 
    updated_at: Time.parse("2026-03-15T14:45:00Z"), 
  }, 
}

Request syntax with placeholder values


resp = client.update_task({
  environment_arn: "EnvironmentArn", # required
  project: "ProjectName", # required
  framework: "FrameworkName", # required
  framework_version: "FrameworkVersion", # required
  control_id: "ControlID", # required
  assessment_id: "AssessmentId",
  task_id: "TaskId", # required
  status: "OPEN", # accepts OPEN, PENDING, COMPLETED, CANCELLED
  due_at: Time.now,
  priority: "HIGH", # accepts HIGH, MEDIUM, LOW
})

Response structure


resp.task.environment #=> String
resp.task.project #=> String
resp.task.framework #=> String
resp.task.framework_version #=> String
resp.task.control_id #=> String
resp.task.task_id #=> String
resp.task.title #=> String
resp.task.description #=> String
resp.task.status #=> String, one of "OPEN", "PENDING", "COMPLETED", "CANCELLED"
resp.task.created_by #=> String
resp.task.due_at #=> Time
resp.task.priority #=> String, one of "HIGH", "MEDIUM", "LOW"
resp.task.created_at #=> Time
resp.task.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :environment_arn (required, String) —

    The ARN of this governance environment.

  • :project (required, String) —

    The name of the project.

  • :framework (required, String) —

    The name of the compliance framework.

  • :framework_version (required, String) —

    The version of the compliance framework.

  • :control_id (required, String) —

    The control identifier. Optional. If omitted, the operation applies to the full framework.

  • :assessment_id (String) —

    The identifier of the assessment.

  • :task_id (required, String) —

    The identifier of the task.

  • :status (String) —

    The lifecycle state to set on the task.

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

    The new deadline for the task.

  • :priority (String) —

    The relative priority of the item.

Returns:

See Also:



7971
7972
7973
7974
# File 'gems/aws-sdk-assurance/lib/aws-sdk-assurance/client.rb', line 7971

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