Class: Aws::Resiliencehubv2::Client

Inherits:
Seahorse::Client::Base
  • Object
show all
Includes:
ClientStubs
Defined in:
lib/aws-sdk-resiliencehubv2/client.rb,
sig/client.rbs

Overview

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

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

Defined Under Namespace

Modules: _CreateAssertionResponseSuccess, _CreateInputSourceResponseSuccess, _CreatePolicyResponseSuccess, _CreateReportResponseSuccess, _CreateServiceFunctionResourcesResponseSuccess, _CreateServiceFunctionResponseSuccess, _CreateServiceResponseSuccess, _CreateSystemResponseSuccess, _CreateUserJourneyResponseSuccess, _DeleteAssertionResponseSuccess, _DeleteInputSourceResponseSuccess, _DeletePolicyResponseSuccess, _DeleteServiceFunctionResourcesResponseSuccess, _DeleteServiceFunctionResponseSuccess, _DeleteServiceResponseSuccess, _DeleteSystemResponseSuccess, _DeleteUserJourneyResponseSuccess, _GetFailureModeFindingResponseSuccess, _GetPolicyResponseSuccess, _GetServiceResponseSuccess, _GetSystemResponseSuccess, _GetUserJourneyResponseSuccess, _ImportAppResponseSuccess, _ImportPolicyResponseSuccess, _ListAssertionsResponseSuccess, _ListDependenciesResponseSuccess, _ListFailureModeAssessmentsResponseSuccess, _ListFailureModeFindingsResponseSuccess, _ListInputSourcesResponseSuccess, _ListPoliciesResponseSuccess, _ListReportsResponseSuccess, _ListResourcesResponseSuccess, _ListServiceEventsResponseSuccess, _ListServiceFunctionsResponseSuccess, _ListServiceTopologyEdgesResponseSuccess, _ListServicesResponseSuccess, _ListSystemEventsResponseSuccess, _ListSystemsResponseSuccess, _ListTagsForResourceResponseSuccess, _ListUserJourneysResponseSuccess, _StartFailureModeAssessmentResponseSuccess, _TagResourceResponseSuccess, _UntagResourceResponseSuccess, _UpdateAssertionResponseSuccess, _UpdateDependencyResponseSuccess, _UpdateFailureModeFindingResponseSuccess, _UpdatePolicyResponseSuccess, _UpdateServiceFunctionResponseSuccess, _UpdateServiceResponseSuccess, _UpdateSystemResponseSuccess, _UpdateUserJourneyResponseSuccess

Class Attribute Summary collapse

API Operations collapse

Class Method Summary collapse

Instance Method Summary collapse

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.

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

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

  • :disable_host_prefix_injection (Boolean) — default: false

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

  • :disable_request_compression (Boolean) — default: false

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

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

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

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

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

  • :endpoint_cache_max_threads (Integer) — default: 10

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

  • :endpoint_cache_poll_interval (Integer) — default: 60

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

  • :endpoint_discovery (Boolean) — default: false

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

  • :ignore_configured_endpoint_urls (Boolean)

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

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

    The log formatter.

  • :log_level (Symbol) — default: :info

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

  • :logger (Logger)

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

  • :max_attempts (Integer) — default: 3

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

  • :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: "legacy"

    Specifies which retry algorithm to use. Values are:

    • legacy - The pre-existing retry behavior. This is the default value if no retry mode is provided.

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

    • 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::Resiliencehubv2::EndpointProvider)

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



471
472
473
# File 'lib/aws-sdk-resiliencehubv2/client.rb', line 471

def initialize(*args)
  super
end

Class Attribute Details

.identifierObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



3599
3600
3601
# File 'lib/aws-sdk-resiliencehubv2/client.rb', line 3599

def identifier
  @identifier
end

Class Method Details

.errors_moduleObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



3602
3603
3604
# File 'lib/aws-sdk-resiliencehubv2/client.rb', line 3602

def errors_module
  Errors
end

Instance Method Details

#build_request(operation_name, params = {}) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

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


3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
# File 'lib/aws-sdk-resiliencehubv2/client.rb', line 3453

def build_request(operation_name, params = {})
  handlers = @handlers.for(operation_name)
  tracer = config.telemetry_provider.tracer_provider.tracer(
    Aws::Telemetry.module_to_tracer_name('Aws::Resiliencehubv2')
  )
  context = Seahorse::Client::RequestContext.new(
    operation_name: operation_name,
    operation: config.api.operation(operation_name),
    client: self,
    params: params,
    config: config,
    tracer: tracer
  )
  context[:gem_name] = 'aws-sdk-resiliencehubv2'
  context[:gem_version] = '1.1.0'
  Seahorse::Client::Request.new(handlers, context)
end

#create_assertion(params = {}) ⇒ Types::CreateAssertionResponse

Creates a resilience assertion for a service.

Examples:

Request syntax with placeholder values


resp = client.create_assertion({
  service_arn: "Arn", # required
  text: "AssertionText", # required
  client_token: "ClientToken",
})

Response structure


resp.assertion.service_arn #=> String
resp.assertion.assertion_id #=> String
resp.assertion.text #=> String
resp.assertion.source #=> String, one of "AI_GENERATED", "USER"
resp.assertion.created_at #=> Time
resp.assertion.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :text (required, String)

    The text content of the assertion.

  • :client_token (String)

    Idempotency token.

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

Returns:

See Also:



86
# File 'sig/client.rbs', line 86

def create_assertion: (

#create_input_source(params = {}) ⇒ Types::CreateInputSourceResponse

Creates an input source for a service.

Examples:

Request syntax with placeholder values


resp = client.create_input_source({
  service_arn: "Arn", # required
  resource_configuration: { # required
    resource_tags: [
      {
        key: "TagKey", # required
        values: ["TagValue"], # required
      },
    ],
    cfn_stack_arn: "Arn",
    tf_state_file_url: "S3Url",
    eks: {
      cluster_arn: "Arn", # required
      namespaces: ["EksNamespace"], # required
    },
    design_file_s3_url: "S3Url",
  },
  client_token: "ClientToken",
})

Response structure


resp.service_arn #=> String
resp.input_source_id #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :resource_configuration (required, Types::ResourceConfiguration)

    Resource configuration for an input source. Provide exactly one field.

  • :client_token (String)

    Idempotency token.

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

Returns:

See Also:



99
# File 'sig/client.rbs', line 99

def create_input_source: (

#create_policy(params = {}) ⇒ Types::CreatePolicyResponse

Creates a resilience policy that defines availability and disaster recovery requirements.

Examples:

Request syntax with placeholder values


resp = client.create_policy({
  name: "EntityName", # required
  description: "LongDescription",
  availability_slo: {
    target: 1.0,
  },
  multi_az: {
    rto_in_minutes: 1,
    rpo_in_minutes: 1,
    disaster_recovery_approach: "ACTIVE_ACTIVE", # accepts ACTIVE_ACTIVE, HOT_STANDBY, WARM_STANDBY, PILOT_LIGHT, BACKUP_AND_RESTORE
  },
  multi_region: {
    rto_in_minutes: 1,
    rpo_in_minutes: 1,
    disaster_recovery_approach: "ACTIVE_ACTIVE", # accepts ACTIVE_ACTIVE, HOT_STANDBY, WARM_STANDBY, PILOT_LIGHT, BACKUP_AND_RESTORE
  },
  data_recovery: {
    time_between_backups_in_minutes: 1,
  },
  kms_key_id: "KmsKeyId",
  tags: {
    "TagKey" => "TagValue",
  },
  client_token: "ClientToken",
})

Response structure


resp.policy.policy_arn #=> String
resp.policy.name #=> String
resp.policy.description #=> String
resp.policy.availability_slo.target #=> Float
resp.policy.multi_az.rto_in_minutes #=> Integer
resp.policy.multi_az.rpo_in_minutes #=> Integer
resp.policy.multi_az.disaster_recovery_approach #=> String, one of "ACTIVE_ACTIVE", "HOT_STANDBY", "WARM_STANDBY", "PILOT_LIGHT", "BACKUP_AND_RESTORE"
resp.policy.multi_region.rto_in_minutes #=> Integer
resp.policy.multi_region.rpo_in_minutes #=> Integer
resp.policy.multi_region.disaster_recovery_approach #=> String, one of "ACTIVE_ACTIVE", "HOT_STANDBY", "WARM_STANDBY", "PILOT_LIGHT", "BACKUP_AND_RESTORE"
resp.policy.data_recovery.time_between_backups_in_minutes #=> Integer
resp.policy.kms_key_id #=> String
resp.policy.tags #=> Hash
resp.policy.tags["TagKey"] #=> String
resp.policy.associated_service_count #=> Integer
resp.policy.created_at #=> Time
resp.policy.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :name (required, String)

    Resource name (used in ARN — no spaces allowed).

  • :description (String)

    Resource description for services and policies.

  • :availability_slo (Types::AvailabilitySlo)

    The availability SLO for the resilience policy.

  • :multi_az (Types::MultiAzTargets)

    The multi-AZ disaster recovery targets for the resilience policy.

  • :multi_region (Types::MultiRegionTargets)

    The multi-Region disaster recovery targets for the resilience policy.

  • :data_recovery (Types::DataRecoveryTargets)

    The data recovery targets for the resilience policy.

  • :kms_key_id (String)

    KMS key identifier — accepts key ID, key ARN, alias name, or alias ARN.

  • :tags (Hash<String,String>)

    Resource tags.

  • :client_token (String)

    Idempotency token.

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

Returns:

See Also:



125
# File 'sig/client.rbs', line 125

def create_policy: (

#create_report(params = {}) ⇒ Types::CreateReportResponse

On-demand report creation. Idempotent — duplicate requests with same clientToken return existing result.

Examples:

Request syntax with placeholder values


resp = client.create_report({
  service_arn: "Arn", # required
  report_type: "FAILURE_MODE", # required, accepts FAILURE_MODE
  client_token: "ClientToken",
})

Response structure


resp.report_generation_result.report_type #=> String, one of "FAILURE_MODE"
resp.report_generation_result.status #=> String, one of "PENDING", "SUCCEEDED", "FAILED"
resp.report_generation_result.service_arn #=> String
resp.report_generation_result.assessment_id #=> String
resp.report_generation_result.created_at #=> Time
resp.report_generation_result.report_output.s3_report_output.s3_object_key #=> String
resp.report_generation_result.report_output.failed_report_output.error_code #=> String, one of "INSUFFICIENT_PERMISSIONS", "CONFIGURATION_ERROR", "INTERNAL_ERROR"
resp.report_generation_result.report_output.failed_report_output.error_message #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :report_type (required, String)

    The type of report to generate.

  • :client_token (String)

    Idempotency token.

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

Returns:

See Also:



155
# File 'sig/client.rbs', line 155

def create_report: (

#create_service(params = {}) ⇒ Types::CreateServiceResponse

Creates a service.

Examples:

Request syntax with placeholder values


resp = client.create_service({
  name: "EntityName", # required
  description: "LongDescription",
  associated_systems: [
    {
      system_arn: "Arn", # required
      system_name: "EntityName",
      user_journey_ids: ["UserJourneyId"],
    },
  ],
  policy_arn: "Arn",
  regions: ["AwsRegion"], # required
  permission_model: { # required
    invoker_role_name: "IamRoleName", # required
    cross_account_roles: [
      {
        cross_account_role_arn: "IamRoleArn", # required
        external_id: "CrossAccountRoleExternalIdString",
      },
    ],
  },
  dependency_discovery: "ENABLED", # accepts ENABLED, DISABLED
  report_configuration: {
    report_outputs: [ # required
      {
        s3: {
          bucket_path: "S3BucketPath", # required
          bucket_owner: "AwsAccountId", # required
        },
      },
    ],
  },
  kms_key_id: "KmsKeyId",
  tags: {
    "TagKey" => "TagValue",
  },
  client_token: "ClientToken",
})

Response structure


resp.service.service_arn #=> String
resp.service.name #=> String
resp.service.description #=> String
resp.service.associated_systems #=> Array
resp.service.associated_systems[0].system_arn #=> String
resp.service.associated_systems[0].system_name #=> String
resp.service.associated_systems[0].user_journey_ids #=> Array
resp.service.associated_systems[0].user_journey_ids[0] #=> String
resp.service.policy_arn #=> String
resp.service.regions #=> Array
resp.service.regions[0] #=> String
resp.service.permission_model.invoker_role_name #=> String
resp.service.permission_model. #=> Array
resp.service.permission_model.[0]. #=> String
resp.service.permission_model.[0].external_id #=> String
resp.service.dependency_discovery.status #=> String, one of "ENABLED", "INITIALIZING", "DISABLED"
resp.service.dependency_discovery.updated_at #=> Time
resp.service.dependency_discovery.eligible_resource_count #=> Integer
resp.service.dependency_discovery.message #=> String
resp.service.effective_policy_values.availability_slo.value #=> Float
resp.service.effective_policy_values.availability_slo.policy_name #=> String
resp.service.effective_policy_values.availability_slo.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_az_rto.value #=> Integer
resp.service.effective_policy_values.multi_az_rto.policy_name #=> String
resp.service.effective_policy_values.multi_az_rto.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_az_rpo.value #=> Integer
resp.service.effective_policy_values.multi_az_rpo.policy_name #=> String
resp.service.effective_policy_values.multi_az_rpo.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_az_dr_approach.value #=> String
resp.service.effective_policy_values.multi_az_dr_approach.policy_name #=> String
resp.service.effective_policy_values.multi_az_dr_approach.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_region_rto.value #=> Integer
resp.service.effective_policy_values.multi_region_rto.policy_name #=> String
resp.service.effective_policy_values.multi_region_rto.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_region_rpo.value #=> Integer
resp.service.effective_policy_values.multi_region_rpo.policy_name #=> String
resp.service.effective_policy_values.multi_region_rpo.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_region_dr_approach.value #=> String
resp.service.effective_policy_values.multi_region_dr_approach.policy_name #=> String
resp.service.effective_policy_values.multi_region_dr_approach.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.data_recovery_time_between_backups.value #=> Integer
resp.service.effective_policy_values.data_recovery_time_between_backups.policy_name #=> String
resp.service.effective_policy_values.data_recovery_time_between_backups.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.achievability.availability_slo #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.service.achievability.multi_az_rto_rpo #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.service.achievability.multi_region_rto_rpo #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.service.achievability.data_recovery_time_between_backups #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.service.report_configuration.report_outputs #=> Array
resp.service.report_configuration.report_outputs[0].s3.bucket_path #=> String
resp.service.report_configuration.report_outputs[0].s3.bucket_owner #=> String
resp.service.kms_key_id #=> String
resp.service.tags #=> Hash
resp.service.tags["TagKey"] #=> String
resp.service.estimated_assessment_cost.amount #=> Float
resp.service.estimated_assessment_cost.currency #=> String, one of "USD"
resp.service.resource_discovery.status #=> String, one of "RUNNING", "SUCCEEDED", "FAILED", "COMPLETED_WITH_FAILURES", "NOT_STARTED"
resp.service.resource_discovery.last_run_at #=> Time
resp.service.resource_discovery.error_code #=> String, one of "INVALID_PERMISSIONS", "STACK_NOT_FOUND", "CLUSTER_NOT_FOUND", "STATE_FILE_NOT_FOUND", "ACCESS_DENIED", "UNSUPPORTED_CLUSTER", "INTERNAL_ERROR"
resp.service.resource_discovery.error_message #=> String
resp.service.assessment_status #=> String, one of "NOT_STARTED", "PENDING", "IN_PROGRESS", "FAILED", "SUCCESS"
resp.service.rerun_assessment #=> Boolean
resp.service.open_findings_count #=> Integer
resp.service.resolved_findings_count #=> Integer
resp.service.organization_id #=> String
resp.service.ou_id #=> String
resp.service. #=> String
resp.service.created_at #=> Time
resp.service.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :name (required, String)

    Resource name (used in ARN — no spaces allowed).

  • :description (String)

    Resource description for services and policies.

  • :associated_systems (Array<Types::AssociatedSystem>)

    The systems to associate with the service.

  • :policy_arn (String)

    ARN identifier.

  • :regions (required, Array<String>)

    The AWS Regions where the service operates.

  • :permission_model (required, Types::PermissionModel)

    The permission model for the service.

  • :dependency_discovery (String)

    Caller-settable values for dependency discovery. INITIALIZING is system-managed.

  • :report_configuration (Types::ServiceReportConfiguration)

    Configuration for automatic report generation on a Service.

  • :kms_key_id (String)

    KMS key identifier — accepts key ID, key ARN, alias name, or alias ARN.

  • :tags (Hash<String,String>)

    Resource tags.

  • :client_token (String)

    Idempotency token.

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

Returns:

See Also:



167
# File 'sig/client.rbs', line 167

def create_service: (

#create_service_function(params = {}) ⇒ Types::CreateServiceFunctionResponse

Creates a service function within a service.

Examples:

Request syntax with placeholder values


resp = client.create_service_function({
  name: "EntityLabel", # required
  service_arn: "Arn", # required
  description: "EntityDescription",
  criticality: "PRIMARY", # required, accepts PRIMARY, SUPPLEMENTAL
  client_token: "ClientToken",
})

Response structure


resp.service_function.service_arn #=> String
resp.service_function.service_function_id #=> String
resp.service_function.name #=> String
resp.service_function.description #=> String
resp.service_function.criticality #=> String, one of "PRIMARY", "SUPPLEMENTAL"
resp.service_function.resource_count #=> Integer
resp.service_function.source #=> String, one of "AI_GENERATED", "USER"
resp.service_function.created_at #=> Time
resp.service_function.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :name (required, String)

    Entity label (not part of ARN — spaces allowed).

  • :service_arn (required, String)

    ARN identifier.

  • :description (String)

    Resource description.

  • :criticality (required, String)

    The criticality level of the service function.

  • :client_token (String)

    Idempotency token.

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

Returns:

See Also:



201
# File 'sig/client.rbs', line 201

def create_service_function: (

#create_service_function_resources(params = {}) ⇒ Types::CreateServiceFunctionResourcesResponse

Associates resources with a service function.

Examples:

Request syntax with placeholder values


resp = client.create_service_function_resources({
  service_arn: "Arn", # required
  service_function_id: "EntityId", # required
  resources: ["String"], # required
})

Response structure


resp.service_arn #=> String
resp.service_function_id #=> String
resp.resources #=> Array
resp.resources[0] #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :service_function_id (required, String)

    The identifier of the service function to associate resources with.

  • :resources (required, Array<String>)

    The list of resources to associate with the service function.

Returns:

See Also:



217
# File 'sig/client.rbs', line 217

def create_service_function_resources: (

#create_system(params = {}) ⇒ Types::CreateSystemResponse

Creates a system that represents a logical grouping of services.

Examples:

Request syntax with placeholder values


resp = client.create_system({
  name: "EntityName", # required
  description: "EntityDescription",
  sharing_enabled: false,
  kms_key_id: "KmsKeyId",
  tags: {
    "TagKey" => "TagValue",
  },
  client_token: "ClientToken",
})

Response structure


resp.system.system_arn #=> String
resp.system.system_id #=> String
resp.system.name #=> String
resp.system.description #=> String
resp.system.sharing_enabled #=> Boolean
resp.system.tags #=> Hash
resp.system.tags["TagKey"] #=> String
resp.system.kms_key_id #=> String
resp.system.organization_id #=> String
resp.system.ou_id #=> String
resp.system.created_at #=> Time
resp.system.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :name (required, String)

    Resource name (used in ARN — no spaces allowed).

  • :description (String)

    Resource description.

  • :sharing_enabled (Boolean)

    Indicates whether cross-account sharing is enabled for the system.

  • :kms_key_id (String)

    KMS key identifier — accepts key ID, key ARN, alias name, or alias ARN.

  • :tags (Hash<String,String>)

    Resource tags.

  • :client_token (String)

    Idempotency token.

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

Returns:

See Also:



229
# File 'sig/client.rbs', line 229

def create_system: (

#create_user_journey(params = {}) ⇒ Types::CreateUserJourneyResponse

Creates a user journey within a system.

Examples:

Request syntax with placeholder values


resp = client.create_user_journey({
  system_arn: "Arn", # required
  name: "EntityLabel", # required
  description: "EntityDescription",
  policy_arn: "Arn",
  client_token: "ClientToken",
})

Response structure


resp.user_journey.user_journey_id #=> String
resp.user_journey.name #=> String
resp.user_journey.description #=> String
resp.user_journey.policy_arn #=> String
resp.user_journey.created_at #=> Time
resp.user_journey.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :system_arn (required, String)

    ARN identifier.

  • :name (required, String)

    Entity label (not part of ARN — spaces allowed).

  • :description (String)

    Resource description.

  • :policy_arn (String)

    ARN identifier.

  • :client_token (String)

    Idempotency token.

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

Returns:

See Also:



244
# File 'sig/client.rbs', line 244

def create_user_journey: (

#delete_assertion(params = {}) ⇒ Types::DeleteAssertionResponse

Deletes a resilience assertion from a service.

Examples:

Request syntax with placeholder values


resp = client.delete_assertion({
  service_arn: "Arn", # required
  assertion_id: "Uuid", # required
})

Response structure


resp.assertion_id #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :assertion_id (required, String)

    The unique identifier of the assertion to delete.

Returns:

See Also:



258
# File 'sig/client.rbs', line 258

def delete_assertion: (

#delete_input_source(params = {}) ⇒ Types::DeleteInputSourceResponse

Deletes an input source.

Examples:

Request syntax with placeholder values


resp = client.delete_input_source({
  service_arn: "Arn", # required
  input_source_id: "InputSourceId", # required
})

Response structure


resp.service_arn #=> String
resp.input_source_id #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :input_source_id (required, String)

    The identifier of the input source to delete.

Returns:

See Also:



270
# File 'sig/client.rbs', line 270

def delete_input_source: (

#delete_policy(params = {}) ⇒ Types::DeletePolicyResponse

Deletes a resilience policy.

Examples:

Request syntax with placeholder values


resp = client.delete_policy({
  policy_arn: "Arn", # required
})

Response structure


resp.policy_arn #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :policy_arn (required, String)

    ARN identifier.

Returns:

See Also:



281
# File 'sig/client.rbs', line 281

def delete_policy: (

#delete_service(params = {}) ⇒ Types::DeleteServiceResponse

Deletes a service.

Examples:

Request syntax with placeholder values


resp = client.delete_service({
  service_arn: "Arn", # required
})

Response structure


resp.service_arn #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

Returns:

See Also:



291
# File 'sig/client.rbs', line 291

def delete_service: (

#delete_service_function(params = {}) ⇒ Types::DeleteServiceFunctionResponse

Deletes a service function.

Examples:

Request syntax with placeholder values


resp = client.delete_service_function({
  service_arn: "Arn", # required
  service_function_id: "EntityId", # required
})

Response structure


resp.service_function_id #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :service_function_id (required, String)

    The identifier of the service function to delete.

Returns:

See Also:



301
# File 'sig/client.rbs', line 301

def delete_service_function: (

#delete_service_function_resources(params = {}) ⇒ Types::DeleteServiceFunctionResourcesResponse

Removes resources from a service function.

Examples:

Request syntax with placeholder values


resp = client.delete_service_function_resources({
  service_arn: "Arn", # required
  service_function_id: "EntityId", # required
  resources: ["String"], # required
})

Response structure


resp.service_arn #=> String
resp.service_function_id #=> String
resp.resources #=> Array
resp.resources[0] #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :service_function_id (required, String)

    The identifier of the service function to remove resources from.

  • :resources (required, Array<String>)

    The list of resources to remove from the service function.

Returns:

See Also:



314
# File 'sig/client.rbs', line 314

def delete_service_function_resources: (

#delete_system(params = {}) ⇒ Types::DeleteSystemResponse

Deletes a system.

Examples:

Request syntax with placeholder values


resp = client.delete_system({
  system_arn: "Arn", # required
})

Response structure


resp.system_arn #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :system_arn (required, String)

    ARN identifier.

Returns:

See Also:



326
# File 'sig/client.rbs', line 326

def delete_system: (

#delete_user_journey(params = {}) ⇒ Types::DeleteUserJourneyResponse

Deletes a user journey.

Examples:

Request syntax with placeholder values


resp = client.delete_user_journey({
  system_arn: "Arn", # required
  user_journey_id: "UserJourneyId", # required
})

Response structure


resp.user_journey_id #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :system_arn (required, String)

    ARN identifier.

  • :user_journey_id (required, String)

    The identifier of the user journey to delete.

Returns:

See Also:



336
# File 'sig/client.rbs', line 336

def delete_user_journey: (

#get_failure_mode_finding(params = {}) ⇒ Types::GetFailureModeFindingResponse

Retrieves a finding by findingId.

Examples:

Request syntax with placeholder values


resp = client.get_failure_mode_finding({
  finding_id: "Uuid", # required
  service_arn: "Arn", # required
})

Response structure


resp.finding.finding_id #=> String
resp.finding.name #=> String
resp.finding.description #=> String
resp.finding.failure_category #=> String, one of "SHARED_FATE", "EXCESSIVE_LOAD", "EXCESSIVE_LATENCY", "MISCONFIGURATION_AND_BUGS", "SINGLE_POINT_OF_FAILURE"
resp.finding.status #=> String, one of "OPEN", "RESOLVED", "IRRELEVANT"
resp.finding.reasoning #=> String
resp.finding.comment #=> String
resp.finding.severity #=> String, one of "LOW", "MEDIUM", "HIGH"
resp.finding.service_functions #=> Array
resp.finding.service_functions[0] #=> String
resp.finding.policy_component #=> String, one of "AVAILABILITY_SLO", "MULTI_AZ_DISASTER_RECOVERY", "MULTI_REGION_DISASTER_RECOVERY", "DATA_RECOVERY"
resp.finding.infrastructure_and_code_recommendations #=> Array
resp.finding.infrastructure_and_code_recommendations[0].suggested_changes #=> Array
resp.finding.infrastructure_and_code_recommendations[0].suggested_changes[0] #=> String
resp.finding.observability_recommendations #=> Array
resp.finding.observability_recommendations[0].suggested_changes #=> Array
resp.finding.observability_recommendations[0].suggested_changes[0] #=> String
resp.finding.testing_recommendations #=> Array
resp.finding.testing_recommendations[0].suggested_changes #=> Array
resp.finding.testing_recommendations[0].suggested_changes[0] #=> String
resp.finding.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :finding_id (required, String)

    The unique identifier of the finding to retrieve.

  • :service_arn (required, String)

    ARN identifier.

Returns:

See Also:



347
# File 'sig/client.rbs', line 347

def get_failure_mode_finding: (

#get_policy(params = {}) ⇒ Types::GetPolicyResponse

Retrieves a resilience policy by ARN.

Examples:

Request syntax with placeholder values


resp = client.get_policy({
  policy_arn: "Arn", # required
})

Response structure


resp.policy.policy_arn #=> String
resp.policy.name #=> String
resp.policy.description #=> String
resp.policy.availability_slo.target #=> Float
resp.policy.multi_az.rto_in_minutes #=> Integer
resp.policy.multi_az.rpo_in_minutes #=> Integer
resp.policy.multi_az.disaster_recovery_approach #=> String, one of "ACTIVE_ACTIVE", "HOT_STANDBY", "WARM_STANDBY", "PILOT_LIGHT", "BACKUP_AND_RESTORE"
resp.policy.multi_region.rto_in_minutes #=> Integer
resp.policy.multi_region.rpo_in_minutes #=> Integer
resp.policy.multi_region.disaster_recovery_approach #=> String, one of "ACTIVE_ACTIVE", "HOT_STANDBY", "WARM_STANDBY", "PILOT_LIGHT", "BACKUP_AND_RESTORE"
resp.policy.data_recovery.time_between_backups_in_minutes #=> Integer
resp.policy.kms_key_id #=> String
resp.policy.tags #=> Hash
resp.policy.tags["TagKey"] #=> String
resp.policy.associated_service_count #=> Integer
resp.policy.created_at #=> Time
resp.policy.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :policy_arn (required, String)

    ARN identifier.

Returns:

See Also:



358
# File 'sig/client.rbs', line 358

def get_policy: (

#get_service(params = {}) ⇒ Types::GetServiceResponse

Retrieves a service by ARN.

The following waiters are defined for this operation (see #wait_until for detailed usage):

* service_assessment_completed
* service_resource_discovery_completed

Examples:

Request syntax with placeholder values


resp = client.get_service({
  service_arn: "Arn", # required
})

Response structure


resp.service.service_arn #=> String
resp.service.name #=> String
resp.service.description #=> String
resp.service.associated_systems #=> Array
resp.service.associated_systems[0].system_arn #=> String
resp.service.associated_systems[0].system_name #=> String
resp.service.associated_systems[0].user_journey_ids #=> Array
resp.service.associated_systems[0].user_journey_ids[0] #=> String
resp.service.policy_arn #=> String
resp.service.regions #=> Array
resp.service.regions[0] #=> String
resp.service.permission_model.invoker_role_name #=> String
resp.service.permission_model. #=> Array
resp.service.permission_model.[0]. #=> String
resp.service.permission_model.[0].external_id #=> String
resp.service.dependency_discovery.status #=> String, one of "ENABLED", "INITIALIZING", "DISABLED"
resp.service.dependency_discovery.updated_at #=> Time
resp.service.dependency_discovery.eligible_resource_count #=> Integer
resp.service.dependency_discovery.message #=> String
resp.service.effective_policy_values.availability_slo.value #=> Float
resp.service.effective_policy_values.availability_slo.policy_name #=> String
resp.service.effective_policy_values.availability_slo.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_az_rto.value #=> Integer
resp.service.effective_policy_values.multi_az_rto.policy_name #=> String
resp.service.effective_policy_values.multi_az_rto.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_az_rpo.value #=> Integer
resp.service.effective_policy_values.multi_az_rpo.policy_name #=> String
resp.service.effective_policy_values.multi_az_rpo.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_az_dr_approach.value #=> String
resp.service.effective_policy_values.multi_az_dr_approach.policy_name #=> String
resp.service.effective_policy_values.multi_az_dr_approach.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_region_rto.value #=> Integer
resp.service.effective_policy_values.multi_region_rto.policy_name #=> String
resp.service.effective_policy_values.multi_region_rto.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_region_rpo.value #=> Integer
resp.service.effective_policy_values.multi_region_rpo.policy_name #=> String
resp.service.effective_policy_values.multi_region_rpo.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_region_dr_approach.value #=> String
resp.service.effective_policy_values.multi_region_dr_approach.policy_name #=> String
resp.service.effective_policy_values.multi_region_dr_approach.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.data_recovery_time_between_backups.value #=> Integer
resp.service.effective_policy_values.data_recovery_time_between_backups.policy_name #=> String
resp.service.effective_policy_values.data_recovery_time_between_backups.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.achievability.availability_slo #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.service.achievability.multi_az_rto_rpo #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.service.achievability.multi_region_rto_rpo #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.service.achievability.data_recovery_time_between_backups #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.service.report_configuration.report_outputs #=> Array
resp.service.report_configuration.report_outputs[0].s3.bucket_path #=> String
resp.service.report_configuration.report_outputs[0].s3.bucket_owner #=> String
resp.service.kms_key_id #=> String
resp.service.tags #=> Hash
resp.service.tags["TagKey"] #=> String
resp.service.estimated_assessment_cost.amount #=> Float
resp.service.estimated_assessment_cost.currency #=> String, one of "USD"
resp.service.resource_discovery.status #=> String, one of "RUNNING", "SUCCEEDED", "FAILED", "COMPLETED_WITH_FAILURES", "NOT_STARTED"
resp.service.resource_discovery.last_run_at #=> Time
resp.service.resource_discovery.error_code #=> String, one of "INVALID_PERMISSIONS", "STACK_NOT_FOUND", "CLUSTER_NOT_FOUND", "STATE_FILE_NOT_FOUND", "ACCESS_DENIED", "UNSUPPORTED_CLUSTER", "INTERNAL_ERROR"
resp.service.resource_discovery.error_message #=> String
resp.service.assessment_status #=> String, one of "NOT_STARTED", "PENDING", "IN_PROGRESS", "FAILED", "SUCCESS"
resp.service.rerun_assessment #=> Boolean
resp.service.open_findings_count #=> Integer
resp.service.resolved_findings_count #=> Integer
resp.service.organization_id #=> String
resp.service.ou_id #=> String
resp.service. #=> String
resp.service.created_at #=> Time
resp.service.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

Returns:

See Also:



368
# File 'sig/client.rbs', line 368

def get_service: (

#get_system(params = {}) ⇒ Types::GetSystemResponse

Retrieves a system by ARN.

Examples:

Request syntax with placeholder values


resp = client.get_system({
  system_arn: "Arn", # required
})

Response structure


resp.system.system_arn #=> String
resp.system.system_id #=> String
resp.system.name #=> String
resp.system.description #=> String
resp.system.sharing_enabled #=> Boolean
resp.system.tags #=> Hash
resp.system.tags["TagKey"] #=> String
resp.system.kms_key_id #=> String
resp.system.organization_id #=> String
resp.system.ou_id #=> String
resp.system.created_at #=> Time
resp.system.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :system_arn (required, String)

    ARN identifier.

Returns:

See Also:



378
# File 'sig/client.rbs', line 378

def get_system: (

#get_user_journey(params = {}) ⇒ Types::GetUserJourneyResponse

Retrieves a user journey.

Examples:

Request syntax with placeholder values


resp = client.get_user_journey({
  system_arn: "Arn", # required
  user_journey_id: "UserJourneyId", # required
})

Response structure


resp.user_journey.user_journey_id #=> String
resp.user_journey.name #=> String
resp.user_journey.description #=> String
resp.user_journey.policy_arn #=> String
resp.user_journey.created_at #=> Time
resp.user_journey.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :system_arn (required, String)

    ARN identifier.

  • :user_journey_id (required, String)

    The identifier of the user journey to retrieve.

Returns:

See Also:



388
# File 'sig/client.rbs', line 388

def get_user_journey: (

#import_app(params = {}) ⇒ Types::ImportAppResponse

Imports a V1 app into the V2 resource model, creating a service with the same name.

Examples:

Request syntax with placeholder values


resp = client.import_app({
  v1_app_arn: "Arn", # required
  policy_arn: "Arn",
  kms_key_id: "KmsKeyId",
  skip_manually_added_resources: false,
  associated_systems: [
    {
      system_arn: "Arn", # required
      system_name: "EntityName",
      user_journey_ids: ["UserJourneyId"],
    },
  ],
  tags: {
    "TagKey" => "TagValue",
  },
  client_token: "ClientToken",
})

Response structure


resp.service.service_arn #=> String
resp.service.name #=> String
resp.service.description #=> String
resp.service.associated_systems #=> Array
resp.service.associated_systems[0].system_arn #=> String
resp.service.associated_systems[0].system_name #=> String
resp.service.associated_systems[0].user_journey_ids #=> Array
resp.service.associated_systems[0].user_journey_ids[0] #=> String
resp.service.policy_arn #=> String
resp.service.regions #=> Array
resp.service.regions[0] #=> String
resp.service.permission_model.invoker_role_name #=> String
resp.service.permission_model. #=> Array
resp.service.permission_model.[0]. #=> String
resp.service.permission_model.[0].external_id #=> String
resp.service.dependency_discovery.status #=> String, one of "ENABLED", "INITIALIZING", "DISABLED"
resp.service.dependency_discovery.updated_at #=> Time
resp.service.dependency_discovery.eligible_resource_count #=> Integer
resp.service.dependency_discovery.message #=> String
resp.service.effective_policy_values.availability_slo.value #=> Float
resp.service.effective_policy_values.availability_slo.policy_name #=> String
resp.service.effective_policy_values.availability_slo.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_az_rto.value #=> Integer
resp.service.effective_policy_values.multi_az_rto.policy_name #=> String
resp.service.effective_policy_values.multi_az_rto.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_az_rpo.value #=> Integer
resp.service.effective_policy_values.multi_az_rpo.policy_name #=> String
resp.service.effective_policy_values.multi_az_rpo.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_az_dr_approach.value #=> String
resp.service.effective_policy_values.multi_az_dr_approach.policy_name #=> String
resp.service.effective_policy_values.multi_az_dr_approach.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_region_rto.value #=> Integer
resp.service.effective_policy_values.multi_region_rto.policy_name #=> String
resp.service.effective_policy_values.multi_region_rto.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_region_rpo.value #=> Integer
resp.service.effective_policy_values.multi_region_rpo.policy_name #=> String
resp.service.effective_policy_values.multi_region_rpo.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_region_dr_approach.value #=> String
resp.service.effective_policy_values.multi_region_dr_approach.policy_name #=> String
resp.service.effective_policy_values.multi_region_dr_approach.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.data_recovery_time_between_backups.value #=> Integer
resp.service.effective_policy_values.data_recovery_time_between_backups.policy_name #=> String
resp.service.effective_policy_values.data_recovery_time_between_backups.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.achievability.availability_slo #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.service.achievability.multi_az_rto_rpo #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.service.achievability.multi_region_rto_rpo #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.service.achievability.data_recovery_time_between_backups #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.service.report_configuration.report_outputs #=> Array
resp.service.report_configuration.report_outputs[0].s3.bucket_path #=> String
resp.service.report_configuration.report_outputs[0].s3.bucket_owner #=> String
resp.service.kms_key_id #=> String
resp.service.tags #=> Hash
resp.service.tags["TagKey"] #=> String
resp.service.estimated_assessment_cost.amount #=> Float
resp.service.estimated_assessment_cost.currency #=> String, one of "USD"
resp.service.resource_discovery.status #=> String, one of "RUNNING", "SUCCEEDED", "FAILED", "COMPLETED_WITH_FAILURES", "NOT_STARTED"
resp.service.resource_discovery.last_run_at #=> Time
resp.service.resource_discovery.error_code #=> String, one of "INVALID_PERMISSIONS", "STACK_NOT_FOUND", "CLUSTER_NOT_FOUND", "STATE_FILE_NOT_FOUND", "ACCESS_DENIED", "UNSUPPORTED_CLUSTER", "INTERNAL_ERROR"
resp.service.resource_discovery.error_message #=> String
resp.service.assessment_status #=> String, one of "NOT_STARTED", "PENDING", "IN_PROGRESS", "FAILED", "SUCCESS"
resp.service.rerun_assessment #=> Boolean
resp.service.open_findings_count #=> Integer
resp.service.resolved_findings_count #=> Integer
resp.service.organization_id #=> String
resp.service.ou_id #=> String
resp.service. #=> String
resp.service.created_at #=> Time
resp.service.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :v1_app_arn (required, String)

    ARN identifier.

  • :policy_arn (String)

    ARN identifier.

  • :kms_key_id (String)

    KMS key identifier — accepts key ID, key ARN, alias name, or alias ARN.

  • :skip_manually_added_resources (Boolean)

    Whether to skip manually added resources during import.

  • :associated_systems (Array<Types::AssociatedSystem>)

    The systems to associate with the imported service.

  • :tags (Hash<String,String>)

    Resource tags.

  • :client_token (String)

    Idempotency token.

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

Returns:

See Also:



399
# File 'sig/client.rbs', line 399

def import_app: (

#import_policy(params = {}) ⇒ Types::ImportPolicyResponse

Imports a V1 policy into V2, mapping RTO/RPO values from V1 scenarios.

Examples:

Request syntax with placeholder values


resp = client.import_policy({
  v1_policy_arn: "Arn", # required
  kms_key_id: "KmsKeyId",
  availability_slo: {
    target: 1.0,
  },
  multi_az_disaster_recovery_approach: "ACTIVE_ACTIVE", # accepts ACTIVE_ACTIVE, HOT_STANDBY, WARM_STANDBY, PILOT_LIGHT, BACKUP_AND_RESTORE
  multi_region_disaster_recovery_approach: "ACTIVE_ACTIVE", # accepts ACTIVE_ACTIVE, HOT_STANDBY, WARM_STANDBY, PILOT_LIGHT, BACKUP_AND_RESTORE
  tags: {
    "TagKey" => "TagValue",
  },
  client_token: "ClientToken",
})

Response structure


resp.policy.policy_arn #=> String
resp.policy.name #=> String
resp.policy.description #=> String
resp.policy.availability_slo.target #=> Float
resp.policy.multi_az.rto_in_minutes #=> Integer
resp.policy.multi_az.rpo_in_minutes #=> Integer
resp.policy.multi_az.disaster_recovery_approach #=> String, one of "ACTIVE_ACTIVE", "HOT_STANDBY", "WARM_STANDBY", "PILOT_LIGHT", "BACKUP_AND_RESTORE"
resp.policy.multi_region.rto_in_minutes #=> Integer
resp.policy.multi_region.rpo_in_minutes #=> Integer
resp.policy.multi_region.disaster_recovery_approach #=> String, one of "ACTIVE_ACTIVE", "HOT_STANDBY", "WARM_STANDBY", "PILOT_LIGHT", "BACKUP_AND_RESTORE"
resp.policy.data_recovery.time_between_backups_in_minutes #=> Integer
resp.policy.kms_key_id #=> String
resp.policy.tags #=> Hash
resp.policy.tags["TagKey"] #=> String
resp.policy.associated_service_count #=> Integer
resp.policy.created_at #=> Time
resp.policy.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :v1_policy_arn (required, String)

    ARN identifier.

  • :kms_key_id (String)

    KMS key identifier — accepts key ID, key ARN, alias name, or alias ARN.

  • :availability_slo (Types::AvailabilitySlo)

    The availability SLO to set on the imported policy.

  • :multi_az_disaster_recovery_approach (String)

    The multi-AZ disaster recovery approach for the imported policy.

  • :multi_region_disaster_recovery_approach (String)

    The multi-Region disaster recovery approach for the imported policy.

  • :tags (Hash<String,String>)

    Resource tags.

  • :client_token (String)

    Idempotency token.

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

Returns:

See Also:



421
# File 'sig/client.rbs', line 421

def import_policy: (

#list_assertions(params = {}) ⇒ Types::ListAssertionsResponse

Lists resilience assertions for a service.

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

Examples:

Request syntax with placeholder values


resp = client.list_assertions({
  service_arn: "Arn", # required
  source: "AI_GENERATED", # accepts AI_GENERATED, USER
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.assertions #=> Array
resp.assertions[0].service_arn #=> String
resp.assertions[0].assertion_id #=> String
resp.assertions[0].text #=> String
resp.assertions[0].source #=> String, one of "AI_GENERATED", "USER"
resp.assertions[0].created_at #=> Time
resp.assertions[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :source (String)

    Filter assertions by source type.

  • :max_results (Integer)

    Pagination page size.

  • :next_token (String)

    Pagination token.

Returns:

See Also:



440
# File 'sig/client.rbs', line 440

def list_assertions: (

#list_dependencies(params = {}) ⇒ Types::ListDependenciesResponse

Lists dependencies discovered for services.

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

Examples:

Request syntax with placeholder values


resp = client.list_dependencies({
  service_arn: "Arn",
  query_range_start_time: Time.now,
  query_range_end_time: Time.now,
  query_range_granularity: "HOURLY", # accepts HOURLY, DAILY
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.dependency_summaries #=> Array
resp.dependency_summaries[0].dependency_id #=> String
resp.dependency_summaries[0].service_arn #=> String
resp.dependency_summaries[0].dependency_name #=> String
resp.dependency_summaries[0].dns_name #=> String
resp.dependency_summaries[0].location #=> String
resp.dependency_summaries[0].last_detected_time #=> Time
resp.dependency_summaries[0].source_regions #=> Array
resp.dependency_summaries[0].source_regions[0] #=> String
resp.dependency_summaries[0].provider #=> String
resp.dependency_summaries[0].query_range.start_time #=> Time
resp.dependency_summaries[0].query_range.end_time #=> Time
resp.dependency_summaries[0].query_range.granularity #=> String, one of "HOURLY", "DAILY"
resp.dependency_summaries[0].query_range.data_points #=> Array
resp.dependency_summaries[0].query_range.data_points[0].timestamp #=> Time
resp.dependency_summaries[0].query_range.data_points[0].query_count #=> Integer
resp.dependency_summaries[0].criticality #=> String, one of "HARD", "SOFT", "UNKNOWN"
resp.dependency_summaries[0].comment #=> String
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (String)

    ARN identifier.

  • :query_range_start_time (Time, DateTime, Date, Integer, String)

    The start time for the dependency query range.

  • :query_range_end_time (Time, DateTime, Date, Integer, String)

    The end time for the dependency query range.

  • :query_range_granularity (String)

    The granularity for the dependency query range.

  • :max_results (Integer)

    Pagination page size.

  • :next_token (String)

    Pagination token.

Returns:

See Also:



454
# File 'sig/client.rbs', line 454

def list_dependencies: (

#list_failure_mode_assessments(params = {}) ⇒ Types::ListFailureModeAssessmentsResponse

Lists failure mode assessments.

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

The following waiters are defined for this operation (see #wait_until for detailed usage):

* failure_mode_assessment_success

Examples:

Request syntax with placeholder values


resp = client.list_failure_mode_assessments({
  service_arn: "Arn", # required
  assessment_statuses: ["NOT_STARTED"], # accepts NOT_STARTED, PENDING, IN_PROGRESS, FAILED, SUCCESS
  started_after: Time.now,
  ended_before: Time.now,
  sort_by: "STARTED_AT", # accepts STARTED_AT
  sort_order: "ASC", # accepts ASC, DESC
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.assessment_summaries #=> Array
resp.assessment_summaries[0].assessment_id #=> String
resp.assessment_summaries[0].service_arn #=> String
resp.assessment_summaries[0].assessment_status #=> String, one of "NOT_STARTED", "PENDING", "IN_PROGRESS", "FAILED", "SUCCESS"
resp.assessment_summaries[0].assessment_step #=> String, one of "TOPOLOGY_GENERATION", "INPUT_VALIDATION", "DESIGN_ANALYSIS", "TOPOLOGY_ENHANCEMENT", "SERVICE_FUNCTION_GENERATION", "POLICY_VALIDATION", "RESILIENCE_ASSESSMENT", "FAILURE_MODE_FINDINGS_CONSOLIDATION", "FAILURE_MODE_FINDINGS_ENRICHMENT"
resp.assessment_summaries[0].total_findings #=> Integer
resp.assessment_summaries[0].started_at #=> Time
resp.assessment_summaries[0].ended_at #=> Time
resp.assessment_summaries[0].error_message #=> String
resp.assessment_summaries[0].error_code #=> String, one of "INVALID_PERMISSIONS", "CMK_ACCESS_DENIED", "AGENT_ERROR", "INTERNAL_ERROR", "DESIGN_FILE_ACCESS_DENIED"
resp.assessment_summaries[0].assessment_cost.amount #=> Float
resp.assessment_summaries[0].assessment_cost.currency #=> String, one of "USD"
resp.assessment_summaries[0].billable_assessment_unit_count #=> Integer
resp.assessment_summaries[0].achievability.availability_slo #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.assessment_summaries[0].achievability.multi_az_rto_rpo #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.assessment_summaries[0].achievability.multi_region_rto_rpo #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.assessment_summaries[0].achievability.data_recovery_time_between_backups #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :assessment_statuses (Array<String>)

    Specifies the assessment statuses to include in the results.

  • :started_after (Time, DateTime, Date, Integer, String)

    Specifies that only assessments that started at or after this timestamp appear in the results.

  • :ended_before (Time, DateTime, Date, Integer, String)

    Specifies that only assessments that ended at or before this timestamp appear in the results.

  • :sort_by (String)

    The field to use for sorting failure mode assessments.

  • :sort_order (String)

    The sort order for results.

  • :max_results (Integer)

    Pagination page size.

  • :next_token (String)

    Pagination token.

Returns:

See Also:



470
# File 'sig/client.rbs', line 470

def list_failure_mode_assessments: (

#list_failure_mode_findings(params = {}) ⇒ Types::ListFailureModeFindingsResponse

List findings.

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

Examples:

Request syntax with placeholder values


resp = client.list_failure_mode_findings({
  service_arn: "Arn", # required
  severity: "LOW", # accepts LOW, MEDIUM, HIGH
  failure_category: "SHARED_FATE", # accepts SHARED_FATE, EXCESSIVE_LOAD, EXCESSIVE_LATENCY, MISCONFIGURATION_AND_BUGS, SINGLE_POINT_OF_FAILURE
  status: "OPEN", # accepts OPEN, RESOLVED, IRRELEVANT
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.findings_summary #=> Array
resp.findings_summary[0].service_arn #=> String
resp.findings_summary[0].finding_id #=> String
resp.findings_summary[0].name #=> String
resp.findings_summary[0].description #=> String
resp.findings_summary[0].failure_category #=> String, one of "SHARED_FATE", "EXCESSIVE_LOAD", "EXCESSIVE_LATENCY", "MISCONFIGURATION_AND_BUGS", "SINGLE_POINT_OF_FAILURE"
resp.findings_summary[0].severity #=> String, one of "LOW", "MEDIUM", "HIGH"
resp.findings_summary[0].status #=> String, one of "OPEN", "RESOLVED", "IRRELEVANT"
resp.findings_summary[0].policy_component #=> String, one of "AVAILABILITY_SLO", "MULTI_AZ_DISASTER_RECOVERY", "MULTI_REGION_DISASTER_RECOVERY", "DATA_RECOVERY"
resp.findings_summary[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :severity (String)

    Filter findings by severity.

  • :failure_category (String)

    Filter findings by failure category.

  • :status (String)

    Filter findings by status.

  • :max_results (Integer)

    Pagination page size.

  • :next_token (String)

    Pagination token.

Returns:

See Also:



488
# File 'sig/client.rbs', line 488

def list_failure_mode_findings: (

#list_input_sources(params = {}) ⇒ Types::ListInputSourcesResponse

Lists input sources for a service.

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

Examples:

Request syntax with placeholder values


resp = client.list_input_sources({
  service_arn: "Arn", # required
  type: "CFN_STACK", # accepts CFN_STACK, TAGS, EKS, TERRAFORM, DESIGN_FILE, MONITORING
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.input_source_summaries #=> Array
resp.input_source_summaries[0].input_source_id #=> String
resp.input_source_summaries[0].type #=> String, one of "CFN_STACK", "TAGS", "EKS", "TERRAFORM", "DESIGN_FILE", "MONITORING"
resp.input_source_summaries[0].resource_tags #=> Array
resp.input_source_summaries[0].resource_tags[0].key #=> String
resp.input_source_summaries[0].resource_tags[0].values #=> Array
resp.input_source_summaries[0].resource_tags[0].values[0] #=> String
resp.input_source_summaries[0].cfn_stack_arn #=> String
resp.input_source_summaries[0].tf_state_file_url #=> String
resp.input_source_summaries[0].eks.cluster_arn #=> String
resp.input_source_summaries[0].eks.namespaces #=> Array
resp.input_source_summaries[0].eks.namespaces[0] #=> String
resp.input_source_summaries[0].design_file_s3_url #=> String
resp.input_source_summaries[0].created_at #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :type (String)

    Filter input sources by type.

  • :max_results (Integer)

    Pagination page size.

  • :next_token (String)

    Pagination token.

Returns:

See Also:



504
# File 'sig/client.rbs', line 504

def list_input_sources: (

#list_policies(params = {}) ⇒ Types::ListPoliciesResponse

Lists resilience policies.

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

Examples:

Request syntax with placeholder values


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

Response structure


resp.policy_summaries #=> Array
resp.policy_summaries[0].policy_arn #=> String
resp.policy_summaries[0].name #=> String
resp.policy_summaries[0].availability_slo.target #=> Float
resp.policy_summaries[0].multi_az.rto_in_minutes #=> Integer
resp.policy_summaries[0].multi_az.rpo_in_minutes #=> Integer
resp.policy_summaries[0].multi_az.disaster_recovery_approach #=> String, one of "ACTIVE_ACTIVE", "HOT_STANDBY", "WARM_STANDBY", "PILOT_LIGHT", "BACKUP_AND_RESTORE"
resp.policy_summaries[0].multi_region.rto_in_minutes #=> Integer
resp.policy_summaries[0].multi_region.rpo_in_minutes #=> Integer
resp.policy_summaries[0].multi_region.disaster_recovery_approach #=> String, one of "ACTIVE_ACTIVE", "HOT_STANDBY", "WARM_STANDBY", "PILOT_LIGHT", "BACKUP_AND_RESTORE"
resp.policy_summaries[0].data_recovery.time_between_backups_in_minutes #=> Integer
resp.policy_summaries[0].associated_service_count #=> Integer
resp.policy_summaries[0].created_at #=> Time
resp.policy_summaries[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :max_results (Integer)

    Pagination page size.

  • :next_token (String)

    Pagination token.

Returns:

See Also:



518
# File 'sig/client.rbs', line 518

def list_policies: (

#list_reports(params = {}) ⇒ Types::ListReportsResponse

List reports for a service, or all reports owned by the account if serviceArn is not provided.

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

The following waiters are defined for this operation (see #wait_until for detailed usage):

* report_succeeded

Examples:

Request syntax with placeholder values


resp = client.list_reports({
  service_arn: "Arn",
  report_type: "FAILURE_MODE", # accepts FAILURE_MODE
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.report_generation_results #=> Array
resp.report_generation_results[0].report_type #=> String, one of "FAILURE_MODE"
resp.report_generation_results[0].status #=> String, one of "PENDING", "SUCCEEDED", "FAILED"
resp.report_generation_results[0].service_arn #=> String
resp.report_generation_results[0].assessment_id #=> String
resp.report_generation_results[0].created_at #=> Time
resp.report_generation_results[0].report_output.s3_report_output.s3_object_key #=> String
resp.report_generation_results[0].report_output.failed_report_output.error_code #=> String, one of "INSUFFICIENT_PERMISSIONS", "CONFIGURATION_ERROR", "INTERNAL_ERROR"
resp.report_generation_results[0].report_output.failed_report_output.error_message #=> String
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (String)

    Optional. If not provided, lists all reports owned by the account.

  • :report_type (String)

    Filter reports by type.

  • :max_results (Integer)

    Pagination page size.

  • :next_token (String)

    Pagination token.

Returns:

See Also:



530
# File 'sig/client.rbs', line 530

def list_reports: (

#list_resources(params = {}) ⇒ Types::ListResourcesResponse

List resources.

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

Examples:

Request syntax with placeholder values


resp = client.list_resources({
  service_arn: "Arn", # required
  service_function_id: "EntityId",
  aws_region: "AwsRegion",
  resource_types: ["ResourceTypeFilter"],
  billable: false,
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.service_function_id #=> String
resp.service_resources #=> Array
resp.service_resources[0].resource_identifier #=> String
resp.service_resources[0].input_source.identifier #=> String
resp.service_resources[0].input_source.type #=> String, one of "CFN_STACK", "TAGS", "EKS", "TERRAFORM", "DESIGN_FILE", "MONITORING"
resp.service_resources[0].resource.identifier #=> String
resp.service_resources[0].resource.aws_region #=> String
resp.service_resources[0].resource. #=> String
resp.service_resources[0].resource.resource_type #=> String
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :service_function_id (String)

    Filter resources by service function identifier.

  • :aws_region (String)

    Filter resources by AWS Region.

  • :resource_types (Array<String>)

    The CloudFormation resource types to include in the response.

  • :billable (Boolean)

    Specifies whether to filter non-billable resources. When true (the default), the operation returns only billable resources.

  • :max_results (Integer)

    Pagination page size.

  • :next_token (String)

    Pagination token.

Returns:

See Also:



545
# File 'sig/client.rbs', line 545

def list_resources: (

#list_service_events(params = {}) ⇒ Types::ListServiceEventsResponse

Lists events for a service.

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

Examples:

Request syntax with placeholder values


resp = client.list_service_events({
  service_arn: "Arn", # required
  event_types: ["SERVICE_CREATED"], # accepts SERVICE_CREATED, SERVICE_DELETED, SERVICE_SYSTEM_ASSOCIATED, SERVICE_SYSTEM_DISASSOCIATED, SERVICE_RESOURCES_ASSOCIATED, SERVICE_RESOURCES_DISASSOCIATED, SERVICE_WORKFLOW_UPDATED, SERVICE_INPUT_SOURCES_UPDATED, SERVICE_POLICY_ASSOCIATED, SERVICE_POLICY_DISASSOCIATED, SERVICE_FUNCTION_CREATED, SERVICE_FUNCTION_UPDATED, SERVICE_FUNCTION_DELETED, SERVICE_FUNCTION_RESOURCES_ADDED, SERVICE_FUNCTION_RESOURCES_REMOVED, SERVICE_ACHIEVABILITY_UPDATED, ASSERTION_CREATED, ASSERTION_UPDATED, ASSERTION_DELETED
  start_time: Time.now,
  end_time: Time.now,
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.events #=> Array
resp.events[0].event_id #=> String
resp.events[0].timestamp #=> Time
resp.events[0].event_type #=> String, one of "SERVICE_CREATED", "SERVICE_DELETED", "SERVICE_SYSTEM_ASSOCIATED", "SERVICE_SYSTEM_DISASSOCIATED", "SERVICE_RESOURCES_ASSOCIATED", "SERVICE_RESOURCES_DISASSOCIATED", "SERVICE_WORKFLOW_UPDATED", "SERVICE_INPUT_SOURCES_UPDATED", "SERVICE_POLICY_ASSOCIATED", "SERVICE_POLICY_DISASSOCIATED", "SERVICE_FUNCTION_CREATED", "SERVICE_FUNCTION_UPDATED", "SERVICE_FUNCTION_DELETED", "SERVICE_FUNCTION_RESOURCES_ADDED", "SERVICE_FUNCTION_RESOURCES_REMOVED", "SERVICE_ACHIEVABILITY_UPDATED", "ASSERTION_CREATED", "ASSERTION_UPDATED", "ASSERTION_DELETED"
resp.events[0].service_arn #=> String
resp.events[0].actor.type #=> String, one of "USER", "SYSTEM"
resp.events[0].actor.principal_id #=> String
resp.events[0].actor. #=> String
resp.events[0].actor.user_name #=> String
resp.events[0].event_details.title #=> String
resp.events[0].event_details.description #=> String
resp.events[0].event_details..service_system_associated.system_name #=> String
resp.events[0].event_details..service_system_associated.system_arn #=> String
resp.events[0].event_details..service_system_disassociated.system_id #=> String
resp.events[0].event_details..service_system_disassociated.system_name #=> String
resp.events[0].event_details..service_system_disassociated.system_arn #=> String
resp.events[0].event_details..service_resources_associated.resource_count #=> Integer
resp.events[0].event_details..service_resources_associated.resource_types #=> Array
resp.events[0].event_details..service_resources_associated.resource_types[0] #=> String
resp.events[0].event_details..service_resources_disassociated.resource_count #=> Integer
resp.events[0].event_details..service_resources_disassociated.resource_types #=> Array
resp.events[0].event_details..service_resources_disassociated.resource_types[0] #=> String
resp.events[0].event_details..service_workflow_updated.service_function_id #=> String
resp.events[0].event_details..service_workflow_updated.service_function_name #=> String
resp.events[0].event_details..service_policy_associated.policy_name #=> String
resp.events[0].event_details..service_policy_associated.policy_arn #=> String
resp.events[0].event_details..service_policy_disassociated.policy_name #=> String
resp.events[0].event_details..service_policy_disassociated.policy_arn #=> String
resp.events[0].event_details..service_function_created.service_function_id #=> String
resp.events[0].event_details..service_function_created.service_function_name #=> String
resp.events[0].event_details..service_function_updated.service_function_id #=> String
resp.events[0].event_details..service_function_updated.service_function_name #=> String
resp.events[0].event_details..service_function_updated.resources_added #=> Array
resp.events[0].event_details..service_function_updated.resources_added[0] #=> String
resp.events[0].event_details..service_function_updated.resources_removed #=> Array
resp.events[0].event_details..service_function_updated.resources_removed[0] #=> String
resp.events[0].event_details..service_function_deleted.service_function_id #=> String
resp.events[0].event_details..service_function_deleted.service_function_name #=> String
resp.events[0].event_details..service_function_resources_added.service_function_id #=> String
resp.events[0].event_details..service_function_resources_added.service_function_name #=> String
resp.events[0].event_details..service_function_resources_added.resources_added #=> Array
resp.events[0].event_details..service_function_resources_added.resources_added[0] #=> String
resp.events[0].event_details..service_function_resources_removed.service_function_id #=> String
resp.events[0].event_details..service_function_resources_removed.service_function_name #=> String
resp.events[0].event_details..service_function_resources_removed.resources_removed #=> Array
resp.events[0].event_details..service_function_resources_removed.resources_removed[0] #=> String
resp.events[0].event_details..service_achievability_updated.assessment_id #=> String
resp.events[0].event_details..service_achievability_updated.availability_slo #=> String
resp.events[0].event_details..service_achievability_updated.multi_az_rto_rpo #=> String
resp.events[0].event_details..service_achievability_updated.multi_region_rto_rpo #=> String
resp.events[0].event_details..assertion_created.assertion_id #=> String
resp.events[0].event_details..assertion_created.assertion_name #=> String
resp.events[0].event_details..assertion_updated.assertion_id #=> String
resp.events[0].event_details..assertion_updated.assertion_name #=> String
resp.events[0].event_details..assertion_deleted.assertion_id #=> String
resp.events[0].event_details..assertion_deleted.assertion_name #=> String
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :event_types (Array<String>)

    Filter events by type.

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

    The start time for filtering events.

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

    The end time for filtering events.

  • :max_results (Integer)

    Pagination page size.

  • :next_token (String)

    Pagination token.

Returns:

See Also:



562
# File 'sig/client.rbs', line 562

def list_service_events: (

#list_service_functions(params = {}) ⇒ Types::ListServiceFunctionsResponse

Lists service functions for a service.

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

Examples:

Request syntax with placeholder values


resp = client.list_service_functions({
  service_arn: "Arn", # required
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.service_functions #=> Array
resp.service_functions[0].service_arn #=> String
resp.service_functions[0].service_function_id #=> String
resp.service_functions[0].name #=> String
resp.service_functions[0].description #=> String
resp.service_functions[0].criticality #=> String, one of "PRIMARY", "SUPPLEMENTAL"
resp.service_functions[0].resource_count #=> Integer
resp.service_functions[0].source #=> String, one of "AI_GENERATED", "USER"
resp.service_functions[0].created_at #=> Time
resp.service_functions[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :max_results (Integer)

    Pagination page size.

  • :next_token (String)

    Pagination token.

Returns:

See Also:



578
# File 'sig/client.rbs', line 578

def list_service_functions: (

#list_service_topology_edges(params = {}) ⇒ Types::ListServiceTopologyEdgesResponse

Lists topology edges for a service.

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

Examples:

Request syntax with placeholder values


resp = client.list_service_topology_edges({
  service_arn: "Arn", # required
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.service_topology_edge_summaries #=> Array
resp.service_topology_edge_summaries[0].source_resource_identifier #=> String
resp.service_topology_edge_summaries[0].destination_resource_identifier #=> String
resp.service_topology_edge_summaries[0].source_region #=> String
resp.service_topology_edge_summaries[0].destination_region #=> String
resp.service_topology_edge_summaries[0]. #=> String
resp.service_topology_edge_summaries[0]. #=> String
resp.service_topology_edge_summaries[0].properties #=> Array
resp.service_topology_edge_summaries[0].properties[0].topology_type #=> String, one of "CONTAINMENT", "DATA_FLOW", "OBSERVABILITY", "PERMISSIONS"
resp.service_topology_edge_summaries[0].properties[0].label #=> String
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :max_results (Integer)

    Pagination page size.

  • :next_token (String)

    Pagination token.

Returns:

See Also:



591
# File 'sig/client.rbs', line 591

def list_service_topology_edges: (

#list_services(params = {}) ⇒ Types::ListServicesResponse

Lists services.

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

Examples:

Request syntax with placeholder values


resp = client.list_services({
  system_arn: "Arn",
  user_journey_id: "UserJourneyId",
  ou_id: "OuId",
  account_id: "AccountId",
  assessment_status: "NOT_STARTED", # accepts NOT_STARTED, PENDING, IN_PROGRESS, FAILED, SUCCESS
  policy_arn: "Arn",
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.service_summaries #=> Array
resp.service_summaries[0].service_arn #=> String
resp.service_summaries[0].name #=> String
resp.service_summaries[0].associated_systems #=> Array
resp.service_summaries[0].associated_systems[0].system_arn #=> String
resp.service_summaries[0].associated_systems[0].system_name #=> String
resp.service_summaries[0].associated_systems[0].user_journey_ids #=> Array
resp.service_summaries[0].associated_systems[0].user_journey_ids[0] #=> String
resp.service_summaries[0].regions #=> Array
resp.service_summaries[0].regions[0] #=> String
resp.service_summaries[0].policy_arn #=> String
resp.service_summaries[0].assessment_status #=> String, one of "NOT_STARTED", "PENDING", "IN_PROGRESS", "FAILED", "SUCCESS"
resp.service_summaries[0].open_findings_count #=> Integer
resp.service_summaries[0].resolved_findings_count #=> Integer
resp.service_summaries[0].dependency_discovery.status #=> String, one of "ENABLED", "INITIALIZING", "DISABLED"
resp.service_summaries[0].dependency_discovery.updated_at #=> Time
resp.service_summaries[0].dependency_discovery.eligible_resource_count #=> Integer
resp.service_summaries[0].dependency_discovery.message #=> String
resp.service_summaries[0].achievability.availability_slo #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.service_summaries[0].achievability.multi_az_rto_rpo #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.service_summaries[0].achievability.multi_region_rto_rpo #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.service_summaries[0].achievability.data_recovery_time_between_backups #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.service_summaries[0].organization_id #=> String
resp.service_summaries[0].ou_id #=> String
resp.service_summaries[0]. #=> String
resp.service_summaries[0].created_at #=> Time
resp.service_summaries[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :system_arn (String)

    ARN identifier.

  • :user_journey_id (String)

    Filter services by user journey identifier.

  • :ou_id (String)

    Filter services by organizational unit (OU) identifier.

  • :account_id (String)

    Filter services by AWS account ID.

  • :assessment_status (String)

    Filter services by assessment status.

  • :policy_arn (String)

    ARN identifier.

  • :max_results (Integer)

    Pagination page size.

  • :next_token (String)

    Pagination token.

Returns:

See Also:



604
# File 'sig/client.rbs', line 604

def list_services: (

#list_system_events(params = {}) ⇒ Types::ListSystemEventsResponse

Lists events for a system.

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

Examples:

Request syntax with placeholder values


resp = client.list_system_events({
  system_arn: "Arn", # required
  event_types: ["SYSTEM_CREATED"], # accepts SYSTEM_CREATED, SYSTEM_DELETED, SYSTEM_USER_JOURNEY_CREATED, SYSTEM_USER_JOURNEY_UPDATED, SYSTEM_USER_JOURNEY_DELETED, SYSTEM_SERVICE_ASSOCIATED, SYSTEM_SERVICE_DISASSOCIATED, SYSTEM_POLICY_ASSOCIATED, SYSTEM_POLICY_DISASSOCIATED
  start_time: Time.now,
  end_time: Time.now,
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.events #=> Array
resp.events[0].event_id #=> String
resp.events[0].timestamp #=> Time
resp.events[0].event_type #=> String, one of "SYSTEM_CREATED", "SYSTEM_DELETED", "SYSTEM_USER_JOURNEY_CREATED", "SYSTEM_USER_JOURNEY_UPDATED", "SYSTEM_USER_JOURNEY_DELETED", "SYSTEM_SERVICE_ASSOCIATED", "SYSTEM_SERVICE_DISASSOCIATED", "SYSTEM_POLICY_ASSOCIATED", "SYSTEM_POLICY_DISASSOCIATED"
resp.events[0].system_arn #=> String
resp.events[0].actor.type #=> String, one of "USER", "SYSTEM"
resp.events[0].actor.principal_id #=> String
resp.events[0].actor. #=> String
resp.events[0].actor.user_name #=> String
resp.events[0].event_details.title #=> String
resp.events[0].event_details.description #=> String
resp.events[0].event_details..system_user_journey_created.user_journey_name #=> String
resp.events[0].event_details..system_user_journey_created.associated_services #=> Array
resp.events[0].event_details..system_user_journey_created.associated_services[0].service_id #=> String
resp.events[0].event_details..system_user_journey_created.associated_services[0].service_name #=> String
resp.events[0].event_details..system_user_journey_updated.user_journey_name #=> String
resp.events[0].event_details..system_user_journey_updated.changes.journey_description.old_value #=> String
resp.events[0].event_details..system_user_journey_updated.changes.journey_description.new_value #=> String
resp.events[0].event_details..system_user_journey_updated.changes.associated_services.added #=> Array
resp.events[0].event_details..system_user_journey_updated.changes.associated_services.added[0].service_id #=> String
resp.events[0].event_details..system_user_journey_updated.changes.associated_services.added[0].service_name #=> String
resp.events[0].event_details..system_user_journey_updated.changes.associated_services.removed #=> Array
resp.events[0].event_details..system_user_journey_updated.changes.associated_services.removed[0].service_id #=> String
resp.events[0].event_details..system_user_journey_updated.changes.associated_services.removed[0].service_name #=> String
resp.events[0].event_details..system_user_journey_deleted.user_journey_name #=> String
resp.events[0].event_details..system_user_journey_deleted.associated_services_at_deletion #=> Array
resp.events[0].event_details..system_user_journey_deleted.associated_services_at_deletion[0].service_id #=> String
resp.events[0].event_details..system_user_journey_deleted.associated_services_at_deletion[0].service_name #=> String
resp.events[0].event_details..system_service_associated.service_name #=> String
resp.events[0].event_details..system_service_associated.service_arn #=> String
resp.events[0].event_details..system_service_associated.user_journeys #=> Array
resp.events[0].event_details..system_service_associated.user_journeys[0] #=> String
resp.events[0].event_details..system_service_disassociated.service_name #=> String
resp.events[0].event_details..system_service_disassociated.service_arn #=> String
resp.events[0].event_details..system_service_disassociated.user_journeys_affected #=> Array
resp.events[0].event_details..system_service_disassociated.user_journeys_affected[0] #=> String
resp.events[0].event_details..system_service_disassociated.comment #=> String
resp.events[0].event_details..system_policy_associated.policy_name #=> String
resp.events[0].event_details..system_policy_associated.policy_arn #=> String
resp.events[0].event_details..system_policy_disassociated.policy_name #=> String
resp.events[0].event_details..system_policy_disassociated.policy_arn #=> String
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :system_arn (required, String)

    ARN identifier.

  • :event_types (Array<String>)

    Filter events by type.

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

    The start time for filtering events.

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

    The end time for filtering events.

  • :max_results (Integer)

    Pagination page size.

  • :next_token (String)

    Pagination token.

Returns:

See Also:



622
# File 'sig/client.rbs', line 622

def list_system_events: (

#list_systems(params = {}) ⇒ Types::ListSystemsResponse

Lists systems.

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

Examples:

Request syntax with placeholder values


resp = client.list_systems({
  ou_id: "OuId",
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.system_summaries #=> Array
resp.system_summaries[0].system_id #=> String
resp.system_summaries[0].name #=> String
resp.system_summaries[0].system_arn #=> String
resp.system_summaries[0].user_journeys_count #=> Integer
resp.system_summaries[0].services_count #=> Integer
resp.system_summaries[0].organization_id #=> String
resp.system_summaries[0].ou_id #=> String
resp.system_summaries[0].created_at #=> Time
resp.system_summaries[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :ou_id (String)

    Filter systems by organizational unit (OU) identifier.

  • :max_results (Integer)

    Pagination page size.

  • :next_token (String)

    Pagination token.

Returns:

See Also:



638
# File 'sig/client.rbs', line 638

def list_systems: (

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

Lists the tags for a resource.

Examples:

Request syntax with placeholder values


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

Response structure


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

Parameters:

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

    ({})

Options Hash (params):

  • :resource_arn (required, String)

    ARN identifier.

Returns:

See Also:



650
# File 'sig/client.rbs', line 650

def list_tags_for_resource: (

#list_user_journeys(params = {}) ⇒ Types::ListUserJourneysResponse

Lists user journeys for a system.

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

Examples:

Request syntax with placeholder values


resp = client.list_user_journeys({
  system_arn: "Arn", # required
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.user_journey_summaries #=> Array
resp.user_journey_summaries[0].user_journey_id #=> String
resp.user_journey_summaries[0].name #=> String
resp.user_journey_summaries[0].created_at #=> Time
resp.user_journey_summaries[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :system_arn (required, String)

    ARN identifier.

  • :max_results (Integer)

    Pagination page size.

  • :next_token (String)

    Pagination token.

Returns:

See Also:



661
# File 'sig/client.rbs', line 661

def list_user_journeys: (

#start_failure_mode_assessment(params = {}) ⇒ Types::StartFailureModeAssessmentResponse

Starts a failure mode assessment.

Examples:

Request syntax with placeholder values


resp = client.start_failure_mode_assessment({
  service_arn: "Arn", # required
  client_token: "ClientToken",
})

Response structure


resp.assessment_id #=> String
resp.service_arn #=> String
resp.assessment_status #=> String, one of "NOT_STARTED", "PENDING", "IN_PROGRESS", "FAILED", "SUCCESS"
resp.started_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :client_token (String)

    Idempotency token.

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

Returns:

See Also:



676
# File 'sig/client.rbs', line 676

def start_failure_mode_assessment: (

#tag_resource(params = {}) ⇒ Struct

Adds tags to a resource.

Examples:

Request syntax with placeholder values


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

Parameters:

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

    ({})

Options Hash (params):

  • :resource_arn (required, String)

    ARN identifier.

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

    Resource tags.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



686
# File 'sig/client.rbs', line 686

def tag_resource: (

#untag_resource(params = {}) ⇒ Struct

Removes tags from a resource.

Examples:

Request syntax with placeholder values


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

Parameters:

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

    ({})

Options Hash (params):

  • :resource_arn (required, String)

    ARN identifier.

  • :tag_keys (required, Array<String>)

    The tag keys to remove from the resource.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



696
# File 'sig/client.rbs', line 696

def untag_resource: (

#update_assertion(params = {}) ⇒ Types::UpdateAssertionResponse

Updates a resilience assertion.

Examples:

Request syntax with placeholder values


resp = client.update_assertion({
  service_arn: "Arn", # required
  assertion_id: "Uuid", # required
  text: "AssertionText",
})

Response structure


resp.assertion.service_arn #=> String
resp.assertion.assertion_id #=> String
resp.assertion.text #=> String
resp.assertion.source #=> String, one of "AI_GENERATED", "USER"
resp.assertion.created_at #=> Time
resp.assertion.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :assertion_id (required, String)

    The unique identifier of the assertion to update.

  • :text (String)

    The updated text content of the assertion.

Returns:

See Also:



707
# File 'sig/client.rbs', line 707

def update_assertion: (

#update_dependency(params = {}) ⇒ Types::UpdateDependencyResponse

Updates a dependency classification.

Examples:

Request syntax with placeholder values


resp = client.update_dependency({
  service_arn: "Arn", # required
  dependency_id: "Uuid", # required
  criticality: "HARD", # accepts HARD, SOFT, UNKNOWN
  comment: "String",
})

Response structure


resp.dependency_id #=> String
resp.dependency_name #=> String
resp.location #=> String
resp.criticality #=> String, one of "HARD", "SOFT", "UNKNOWN"
resp.comment #=> String
resp.provider #=> String
resp.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :dependency_id (required, String)

    The identifier of the dependency to update.

  • :criticality (String)

    The updated criticality level of the dependency.

  • :comment (String)

    A comment about the dependency.

Returns:

See Also:



725
# File 'sig/client.rbs', line 725

def update_dependency: (

#update_failure_mode_finding(params = {}) ⇒ Types::UpdateFailureModeFindingResponse

Updates an existing finding.

Examples:

Request syntax with placeholder values


resp = client.update_failure_mode_finding({
  finding_id: "Uuid", # required
  status: "OPEN", # required, accepts OPEN, RESOLVED, IRRELEVANT
  service_arn: "Arn", # required
  comment: "UpdateFailureModeFindingRequestCommentString",
})

Response structure


resp.finding.finding_id #=> String
resp.finding.name #=> String
resp.finding.description #=> String
resp.finding.failure_category #=> String, one of "SHARED_FATE", "EXCESSIVE_LOAD", "EXCESSIVE_LATENCY", "MISCONFIGURATION_AND_BUGS", "SINGLE_POINT_OF_FAILURE"
resp.finding.status #=> String, one of "OPEN", "RESOLVED", "IRRELEVANT"
resp.finding.reasoning #=> String
resp.finding.comment #=> String
resp.finding.severity #=> String, one of "LOW", "MEDIUM", "HIGH"
resp.finding.service_functions #=> Array
resp.finding.service_functions[0] #=> String
resp.finding.policy_component #=> String, one of "AVAILABILITY_SLO", "MULTI_AZ_DISASTER_RECOVERY", "MULTI_REGION_DISASTER_RECOVERY", "DATA_RECOVERY"
resp.finding.infrastructure_and_code_recommendations #=> Array
resp.finding.infrastructure_and_code_recommendations[0].suggested_changes #=> Array
resp.finding.infrastructure_and_code_recommendations[0].suggested_changes[0] #=> String
resp.finding.observability_recommendations #=> Array
resp.finding.observability_recommendations[0].suggested_changes #=> Array
resp.finding.observability_recommendations[0].suggested_changes[0] #=> String
resp.finding.testing_recommendations #=> Array
resp.finding.testing_recommendations[0].suggested_changes #=> Array
resp.finding.testing_recommendations[0].suggested_changes[0] #=> String
resp.finding.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :finding_id (required, String)

    The identifier of the finding to update.

  • :status (required, String)

    The new status for the finding.

  • :service_arn (required, String)

    ARN identifier.

  • :comment (String)

    A comment about the finding update.

Returns:

See Also:



738
# File 'sig/client.rbs', line 738

def update_failure_mode_finding: (

#update_policy(params = {}) ⇒ Types::UpdatePolicyResponse

Updates an existing resilience policy.

Examples:

Request syntax with placeholder values


resp = client.update_policy({
  policy_arn: "Arn", # required
  description: "LongDescription",
  availability_slo: {
    target: 1.0,
  },
  multi_az: {
    rto_in_minutes: 1,
    rpo_in_minutes: 1,
    disaster_recovery_approach: "ACTIVE_ACTIVE", # accepts ACTIVE_ACTIVE, HOT_STANDBY, WARM_STANDBY, PILOT_LIGHT, BACKUP_AND_RESTORE
  },
  multi_region: {
    rto_in_minutes: 1,
    rpo_in_minutes: 1,
    disaster_recovery_approach: "ACTIVE_ACTIVE", # accepts ACTIVE_ACTIVE, HOT_STANDBY, WARM_STANDBY, PILOT_LIGHT, BACKUP_AND_RESTORE
  },
  data_recovery: {
    time_between_backups_in_minutes: 1,
  },
})

Response structure


resp.policy.policy_arn #=> String
resp.policy.name #=> String
resp.policy.description #=> String
resp.policy.availability_slo.target #=> Float
resp.policy.multi_az.rto_in_minutes #=> Integer
resp.policy.multi_az.rpo_in_minutes #=> Integer
resp.policy.multi_az.disaster_recovery_approach #=> String, one of "ACTIVE_ACTIVE", "HOT_STANDBY", "WARM_STANDBY", "PILOT_LIGHT", "BACKUP_AND_RESTORE"
resp.policy.multi_region.rto_in_minutes #=> Integer
resp.policy.multi_region.rpo_in_minutes #=> Integer
resp.policy.multi_region.disaster_recovery_approach #=> String, one of "ACTIVE_ACTIVE", "HOT_STANDBY", "WARM_STANDBY", "PILOT_LIGHT", "BACKUP_AND_RESTORE"
resp.policy.data_recovery.time_between_backups_in_minutes #=> Integer
resp.policy.kms_key_id #=> String
resp.policy.tags #=> Hash
resp.policy.tags["TagKey"] #=> String
resp.policy.associated_service_count #=> Integer
resp.policy.created_at #=> Time
resp.policy.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :policy_arn (required, String)

    ARN identifier.

  • :description (String)

    Resource description for services and policies.

  • :availability_slo (Types::AvailabilitySlo)

    The updated availability SLO for the policy.

  • :multi_az (Types::MultiAzTargets)

    The updated multi-AZ disaster recovery targets for the policy.

  • :multi_region (Types::MultiRegionTargets)

    The updated multi-Region disaster recovery targets for the policy.

  • :data_recovery (Types::DataRecoveryTargets)

    The updated data recovery targets for the policy.

Returns:

See Also:



751
# File 'sig/client.rbs', line 751

def update_policy: (

#update_service(params = {}) ⇒ Types::UpdateServiceResponse

Updates an existing service.

Examples:

Request syntax with placeholder values


resp = client.update_service({
  service_arn: "Arn", # required
  description: "LongDescription",
  associated_systems: [
    {
      system_arn: "Arn", # required
      system_name: "EntityName",
      user_journey_ids: ["UserJourneyId"],
    },
  ],
  policy_arn: "Arn",
  regions: ["AwsRegion"],
  permission_model: {
    invoker_role_name: "IamRoleName", # required
    cross_account_roles: [
      {
        cross_account_role_arn: "IamRoleArn", # required
        external_id: "CrossAccountRoleExternalIdString",
      },
    ],
  },
  dependency_discovery: "ENABLED", # accepts ENABLED, DISABLED
  report_configuration: {
    report_outputs: [ # required
      {
        s3: {
          bucket_path: "S3BucketPath", # required
          bucket_owner: "AwsAccountId", # required
        },
      },
    ],
  },
})

Response structure


resp.service.service_arn #=> String
resp.service.name #=> String
resp.service.description #=> String
resp.service.associated_systems #=> Array
resp.service.associated_systems[0].system_arn #=> String
resp.service.associated_systems[0].system_name #=> String
resp.service.associated_systems[0].user_journey_ids #=> Array
resp.service.associated_systems[0].user_journey_ids[0] #=> String
resp.service.policy_arn #=> String
resp.service.regions #=> Array
resp.service.regions[0] #=> String
resp.service.permission_model.invoker_role_name #=> String
resp.service.permission_model. #=> Array
resp.service.permission_model.[0]. #=> String
resp.service.permission_model.[0].external_id #=> String
resp.service.dependency_discovery.status #=> String, one of "ENABLED", "INITIALIZING", "DISABLED"
resp.service.dependency_discovery.updated_at #=> Time
resp.service.dependency_discovery.eligible_resource_count #=> Integer
resp.service.dependency_discovery.message #=> String
resp.service.effective_policy_values.availability_slo.value #=> Float
resp.service.effective_policy_values.availability_slo.policy_name #=> String
resp.service.effective_policy_values.availability_slo.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_az_rto.value #=> Integer
resp.service.effective_policy_values.multi_az_rto.policy_name #=> String
resp.service.effective_policy_values.multi_az_rto.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_az_rpo.value #=> Integer
resp.service.effective_policy_values.multi_az_rpo.policy_name #=> String
resp.service.effective_policy_values.multi_az_rpo.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_az_dr_approach.value #=> String
resp.service.effective_policy_values.multi_az_dr_approach.policy_name #=> String
resp.service.effective_policy_values.multi_az_dr_approach.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_region_rto.value #=> Integer
resp.service.effective_policy_values.multi_region_rto.policy_name #=> String
resp.service.effective_policy_values.multi_region_rto.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_region_rpo.value #=> Integer
resp.service.effective_policy_values.multi_region_rpo.policy_name #=> String
resp.service.effective_policy_values.multi_region_rpo.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.multi_region_dr_approach.value #=> String
resp.service.effective_policy_values.multi_region_dr_approach.policy_name #=> String
resp.service.effective_policy_values.multi_region_dr_approach.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.effective_policy_values.data_recovery_time_between_backups.value #=> Integer
resp.service.effective_policy_values.data_recovery_time_between_backups.policy_name #=> String
resp.service.effective_policy_values.data_recovery_time_between_backups.source #=> String, one of "SELF", "CROSS_ACCOUNT"
resp.service.achievability.availability_slo #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.service.achievability.multi_az_rto_rpo #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.service.achievability.multi_region_rto_rpo #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.service.achievability.data_recovery_time_between_backups #=> String, one of "ACHIEVABLE", "NOT_ACHIEVABLE"
resp.service.report_configuration.report_outputs #=> Array
resp.service.report_configuration.report_outputs[0].s3.bucket_path #=> String
resp.service.report_configuration.report_outputs[0].s3.bucket_owner #=> String
resp.service.kms_key_id #=> String
resp.service.tags #=> Hash
resp.service.tags["TagKey"] #=> String
resp.service.estimated_assessment_cost.amount #=> Float
resp.service.estimated_assessment_cost.currency #=> String, one of "USD"
resp.service.resource_discovery.status #=> String, one of "RUNNING", "SUCCEEDED", "FAILED", "COMPLETED_WITH_FAILURES", "NOT_STARTED"
resp.service.resource_discovery.last_run_at #=> Time
resp.service.resource_discovery.error_code #=> String, one of "INVALID_PERMISSIONS", "STACK_NOT_FOUND", "CLUSTER_NOT_FOUND", "STATE_FILE_NOT_FOUND", "ACCESS_DENIED", "UNSUPPORTED_CLUSTER", "INTERNAL_ERROR"
resp.service.resource_discovery.error_message #=> String
resp.service.assessment_status #=> String, one of "NOT_STARTED", "PENDING", "IN_PROGRESS", "FAILED", "SUCCESS"
resp.service.rerun_assessment #=> Boolean
resp.service.open_findings_count #=> Integer
resp.service.resolved_findings_count #=> Integer
resp.service.organization_id #=> String
resp.service.ou_id #=> String
resp.service. #=> String
resp.service.created_at #=> Time
resp.service.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :description (String)

    Resource description for services and policies.

  • :associated_systems (Array<Types::AssociatedSystem>)

    The updated systems to associate with the service.

  • :policy_arn (String)

    ARN identifier.

  • :regions (Array<String>)

    The updated AWS Regions where the service operates.

  • :permission_model (Types::PermissionModel)

    The updated permission model for the service.

  • :dependency_discovery (String)

    Caller-settable values for dependency discovery. INITIALIZING is system-managed.

  • :report_configuration (Types::ServiceReportConfiguration)

    Configuration for automatic report generation on a Service.

Returns:

See Also:



778
# File 'sig/client.rbs', line 778

def update_service: (

#update_service_function(params = {}) ⇒ Types::UpdateServiceFunctionResponse

Updates a service function.

Examples:

Request syntax with placeholder values


resp = client.update_service_function({
  service_arn: "Arn", # required
  service_function_id: "EntityId", # required
  name: "EntityLabel",
  description: "EntityDescription",
  criticality: "PRIMARY", # accepts PRIMARY, SUPPLEMENTAL
})

Response structure


resp.service_function.service_arn #=> String
resp.service_function.service_function_id #=> String
resp.service_function.name #=> String
resp.service_function.description #=> String
resp.service_function.criticality #=> String, one of "PRIMARY", "SUPPLEMENTAL"
resp.service_function.resource_count #=> Integer
resp.service_function.source #=> String, one of "AI_GENERATED", "USER"
resp.service_function.created_at #=> Time
resp.service_function.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :service_arn (required, String)

    ARN identifier.

  • :service_function_id (required, String)

    The identifier of the service function to update.

  • :name (String)

    Entity label (not part of ARN — spaces allowed).

  • :description (String)

    Resource description.

  • :criticality (String)

    The updated criticality level of the service function.

Returns:

See Also:



809
# File 'sig/client.rbs', line 809

def update_service_function: (

#update_system(params = {}) ⇒ Types::UpdateSystemResponse

Updates an existing system.

Examples:

Request syntax with placeholder values


resp = client.update_system({
  system_arn: "Arn", # required
  description: "EntityDescription",
  sharing_enabled: false,
})

Response structure


resp.system.system_arn #=> String
resp.system.system_id #=> String
resp.system.name #=> String
resp.system.description #=> String
resp.system.sharing_enabled #=> Boolean
resp.system.tags #=> Hash
resp.system.tags["TagKey"] #=> String
resp.system.kms_key_id #=> String
resp.system.organization_id #=> String
resp.system.ou_id #=> String
resp.system.created_at #=> Time
resp.system.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :system_arn (required, String)

    ARN identifier.

  • :description (String)

    Resource description.

  • :sharing_enabled (Boolean)

    Whether cross-account sharing is enabled for the system.

Returns:

See Also:



823
# File 'sig/client.rbs', line 823

def update_system: (

#update_user_journey(params = {}) ⇒ Types::UpdateUserJourneyResponse

Updates an existing user journey.

Examples:

Request syntax with placeholder values


resp = client.update_user_journey({
  system_arn: "Arn", # required
  user_journey_id: "UserJourneyId", # required
  name: "EntityLabel",
  description: "EntityDescription",
  policy_arn: "Arn",
})

Response structure


resp.user_journey.user_journey_id #=> String
resp.user_journey.name #=> String
resp.user_journey.description #=> String
resp.user_journey.policy_arn #=> String
resp.user_journey.created_at #=> Time
resp.user_journey.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :system_arn (required, String)

    ARN identifier.

  • :user_journey_id (required, String)

    The identifier of the user journey to update.

  • :name (String)

    Entity label (not part of ARN — spaces allowed).

  • :description (String)

    Resource description.

  • :policy_arn (String)

    ARN identifier.

Returns:

See Also:



835
# File 'sig/client.rbs', line 835

def update_user_journey: (

#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean

Polls an API operation until a resource enters a desired state.

Basic Usage

A waiter will call an API operation until:

  • It is successful
  • It enters a terminal state
  • It makes the maximum number of attempts

In between attempts, the waiter will sleep.

# polls in a loop, sleeping between attempts
client.wait_until(waiter_name, params)

Configuration

You can configure the maximum number of polling attempts, and the delay (in seconds) between each polling attempt. You can pass configuration as the final arguments hash.

# poll for ~25 seconds
client.wait_until(waiter_name, params, {
  max_attempts: 5,
  delay: 5,
})

Callbacks

You can be notified before each polling attempt and before each delay. If you throw :success or :failure from these callbacks, it will terminate the waiter.

started_at = Time.now
client.wait_until(waiter_name, params, {

  # disable max attempts
  max_attempts: nil,

  # poll for 1 hour, instead of a number of attempts
  before_wait: -> (attempts, response) do
    throw :failure if Time.now - started_at > 3600
  end
})

Handling Errors

When a waiter is unsuccessful, it will raise an error. All of the failure errors extend from Waiters::Errors::WaiterFailed.

begin
  client.wait_until(...)
rescue Aws::Waiters::Errors::WaiterFailed
  # resource did not enter the desired state in time
end

Valid Waiters

The following table lists the valid waiter names, the operations they call, and the default :delay and :max_attempts values.

waiter_name params :delay :max_attempts
failure_mode_assessment_success #list_failure_mode_assessments 30 5
report_succeeded #list_reports 30 5
service_assessment_completed #get_service 30 5
service_resource_discovery_completed #get_service 30 5

Parameters:

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

    ({})

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

    ({})

Options Hash (options):

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

Yields:

  • (w.waiter)

Returns:

  • (Boolean)

    Returns true if the waiter was successful.

Raises:

  • (Errors::FailureStateError)

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

  • (Errors::TooManyAttemptsError)

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

  • (Errors::UnexpectedError)

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

  • (Errors::NoSuchWaiterError)

    Raised when you request to wait for an unknown state.



845
# File 'sig/client.rbs', line 845

def wait_until: (:failure_mode_assessment_success waiter_name,

#waiter_namesObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Deprecated.


3570
3571
3572
# File 'lib/aws-sdk-resiliencehubv2/client.rb', line 3570

def waiter_names
  waiters.keys
end