# WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws module CloudHSMV2 class Client < ::Seahorse::Client::Base include ::Aws::ClientStubs # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudHSMV2/Client.html#initialize-instance_method def self.new: ( ?credentials: untyped, ?region: String, ?access_key_id: String, ?active_endpoint_cache: bool, ?adaptive_retry_wait_to_fill: bool, ?client_side_monitoring: bool, ?client_side_monitoring_client_id: String, ?client_side_monitoring_host: String, ?client_side_monitoring_port: Integer, ?client_side_monitoring_publisher: untyped, ?convert_params: bool, ?correct_clock_skew: bool, ?defaults_mode: String, ?disable_host_prefix_injection: bool, ?disable_request_compression: bool, ?endpoint: String, ?endpoint_cache_max_entries: Integer, ?endpoint_cache_max_threads: Integer, ?endpoint_cache_poll_interval: Integer, ?endpoint_discovery: bool, ?ignore_configured_endpoint_urls: bool, ?log_formatter: untyped, ?log_level: Symbol, ?logger: untyped, ?max_attempts: Integer, ?profile: String, ?request_min_compression_size_bytes: Integer, ?retry_backoff: Proc, ?retry_base_delay: Float, ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer), ?retry_limit: Integer, ?retry_max_delay: Integer, ?retry_mode: ("legacy" | "standard" | "adaptive"), ?sdk_ua_app_id: String, ?secret_access_key: String, ?session_token: String, ?simple_json: bool, ?stub_responses: untyped, ?token_provider: untyped, ?use_dualstack_endpoint: bool, ?use_fips_endpoint: bool, ?validate_params: bool, ?endpoint_provider: untyped, ?http_proxy: String, ?http_open_timeout: (Float | Integer), ?http_read_timeout: (Float | Integer), ?http_idle_timeout: (Float | Integer), ?http_continue_timeout: (Float | Integer), ?ssl_timeout: (Float | Integer | nil), ?http_wire_trace: bool, ?ssl_verify_peer: bool, ?ssl_ca_bundle: String, ?ssl_ca_directory: String, ?ssl_ca_store: String, ?on_chunk_received: Proc, ?on_chunk_sent: Proc, ?raise_response_errors: bool ) -> instance | (?Hash[Symbol, untyped]) -> instance interface _CopyBackupToRegionResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::CopyBackupToRegionResponse] def destination_backup: () -> Types::DestinationBackup end # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudHSMV2/Client.html#copy_backup_to_region-instance_method def copy_backup_to_region: ( destination_region: ::String, backup_id: ::String, ?tag_list: Array[ { key: ::String, value: ::String }, ] ) -> _CopyBackupToRegionResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CopyBackupToRegionResponseSuccess interface _CreateClusterResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::CreateClusterResponse] def cluster: () -> Types::Cluster end # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudHSMV2/Client.html#create_cluster-instance_method def create_cluster: ( ?backup_retention_policy: { type: ("DAYS")?, value: ::String? }, hsm_type: ::String, ?source_backup_id: ::String, subnet_ids: Array[::String], ?tag_list: Array[ { key: ::String, value: ::String }, ] ) -> _CreateClusterResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateClusterResponseSuccess interface _CreateHsmResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::CreateHsmResponse] def hsm: () -> Types::Hsm end # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudHSMV2/Client.html#create_hsm-instance_method def create_hsm: ( cluster_id: ::String, availability_zone: ::String, ?ip_address: ::String ) -> _CreateHsmResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateHsmResponseSuccess interface _DeleteBackupResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::DeleteBackupResponse] def backup: () -> Types::Backup end # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudHSMV2/Client.html#delete_backup-instance_method def delete_backup: ( backup_id: ::String ) -> _DeleteBackupResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteBackupResponseSuccess interface _DeleteClusterResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::DeleteClusterResponse] def cluster: () -> Types::Cluster end # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudHSMV2/Client.html#delete_cluster-instance_method def delete_cluster: ( cluster_id: ::String ) -> _DeleteClusterResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteClusterResponseSuccess interface _DeleteHsmResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::DeleteHsmResponse] def hsm_id: () -> ::String end # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudHSMV2/Client.html#delete_hsm-instance_method def delete_hsm: ( cluster_id: ::String, ?hsm_id: ::String, ?eni_id: ::String, ?eni_ip: ::String ) -> _DeleteHsmResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteHsmResponseSuccess interface _DescribeBackupsResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::DescribeBackupsResponse] def backups: () -> ::Array[Types::Backup] def next_token: () -> ::String end # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudHSMV2/Client.html#describe_backups-instance_method def describe_backups: ( ?next_token: ::String, ?max_results: ::Integer, ?filters: Hash[::String, Array[::String]], ?sort_ascending: bool ) -> _DescribeBackupsResponseSuccess | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeBackupsResponseSuccess interface _DescribeClustersResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::DescribeClustersResponse] def clusters: () -> ::Array[Types::Cluster] def next_token: () -> ::String end # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudHSMV2/Client.html#describe_clusters-instance_method def describe_clusters: ( ?filters: Hash[::String, Array[::String]], ?next_token: ::String, ?max_results: ::Integer ) -> _DescribeClustersResponseSuccess | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeClustersResponseSuccess interface _InitializeClusterResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::InitializeClusterResponse] def state: () -> ("CREATE_IN_PROGRESS" | "UNINITIALIZED" | "INITIALIZE_IN_PROGRESS" | "INITIALIZED" | "ACTIVE" | "UPDATE_IN_PROGRESS" | "DELETE_IN_PROGRESS" | "DELETED" | "DEGRADED") def state_message: () -> ::String end # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudHSMV2/Client.html#initialize_cluster-instance_method def initialize_cluster: ( cluster_id: ::String, signed_cert: ::String, trust_anchor: ::String ) -> _InitializeClusterResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _InitializeClusterResponseSuccess interface _ListTagsResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsResponse] def tag_list: () -> ::Array[Types::Tag] def next_token: () -> ::String end # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudHSMV2/Client.html#list_tags-instance_method def list_tags: ( resource_id: ::String, ?next_token: ::String, ?max_results: ::Integer ) -> _ListTagsResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsResponseSuccess interface _ModifyBackupAttributesResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::ModifyBackupAttributesResponse] def backup: () -> Types::Backup end # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudHSMV2/Client.html#modify_backup_attributes-instance_method def modify_backup_attributes: ( backup_id: ::String, never_expires: bool ) -> _ModifyBackupAttributesResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ModifyBackupAttributesResponseSuccess interface _ModifyClusterResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::ModifyClusterResponse] def cluster: () -> Types::Cluster end # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudHSMV2/Client.html#modify_cluster-instance_method def modify_cluster: ( backup_retention_policy: { type: ("DAYS")?, value: ::String? }, cluster_id: ::String ) -> _ModifyClusterResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ModifyClusterResponseSuccess interface _RestoreBackupResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::RestoreBackupResponse] def backup: () -> Types::Backup end # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudHSMV2/Client.html#restore_backup-instance_method def restore_backup: ( backup_id: ::String ) -> _RestoreBackupResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RestoreBackupResponseSuccess interface _TagResourceResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse] end # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudHSMV2/Client.html#tag_resource-instance_method def tag_resource: ( resource_id: ::String, tag_list: Array[ { key: ::String, value: ::String }, ] ) -> _TagResourceResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess interface _UntagResourceResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceResponse] end # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudHSMV2/Client.html#untag_resource-instance_method def untag_resource: ( resource_id: ::String, tag_key_list: Array[::String] ) -> _UntagResourceResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess end end end