Class: Aws::MainframeModernization::Client

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

Overview

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

client = Aws::MainframeModernization::Client.new(
  region: region_name,
  credentials: credentials,
  # ...
)

For details on configuring region and credentials see the developer guide.

See #initialize for a full list of supported configuration options.

Instance Attribute Summary

Attributes inherited from Seahorse::Client::Base

#config, #handlers

API Operations collapse

Instance Method Summary collapse

Methods included from ClientStubs

#api_requests, #stub_data, #stub_responses

Methods inherited from Seahorse::Client::Base

add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins

Methods included from Seahorse::Client::HandlerBuilder

#handle, #handle_request, #handle_response

Constructor Details

#initialize(options) ⇒ Client

Returns a new instance of Client.

Parameters:

  • options (Hash)

Options Hash (options):

  • :credentials (required, Aws::CredentialProvider)

    Your AWS credentials. This can be an 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, and :session_token options.
    • ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
    • ~/.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::InstanceProfileCredentails 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)
  • :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.

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

    Set to true to disable SDK automatically adding host prefix to default service endpoint when available.

  • :endpoint (String)

    The client endpoint is normally constructed from the :region option. You should only configure an :endpoint when connecting to test or custom endpoints. This should be a valid HTTP(S) URI.

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

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

  • :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 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 - An experimental retry mode that includes all the functionality of standard mode along with automatic client side throttling. This is a provisional mode that may change behavior in the future.

  • :secret_access_key (String)
  • :session_token (String)
  • :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.

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

  • :http_proxy (URI::HTTP, String)

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

  • :http_open_timeout (Float) — default: 15

    The number of seconds to wait when opening a HTTP session before raising a Timeout::Error.

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

  • :ssl_timeout (Float) — default: nil

    Sets the SSL timeout in seconds.

  • :http_wire_trace (Boolean) — default: false

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

  • :ssl_verify_peer (Boolean) — default: true

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

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



348
349
350
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 348

def initialize(*args)
  super
end

Instance Method Details

#cancel_batch_job_execution(params = {}) ⇒ Struct

Cancels the running of a specific batch job execution.

Examples:

Request syntax with placeholder values


resp = client.cancel_batch_job_execution({
  application_id: "Identifier", # required
  execution_id: "Identifier", # required
})

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The unique identifier of the application.

  • :execution_id (required, String)

    The unique identifier of the batch job execution.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



375
376
377
378
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 375

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

#create_application(params = {}) ⇒ Types::CreateApplicationResponse

Creates a new application with given parameters. Requires an existing environment and application definition file.

Examples:

Request syntax with placeholder values


resp = client.create_application({
  client_token: "String",
  definition: { # required
    content: "StringFree65000",
    s3_location: "String2000",
  },
  description: "EntityDescription",
  engine_type: "microfocus", # required, accepts microfocus, bluage
  name: "EntityName", # required
  tags: {
    "TagKey" => "TagValue",
  },
})

Response structure


resp.application_arn #=> String
resp.application_id #=> String
resp.application_version #=> Integer

Parameters:

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

    ({})

Options Hash (params):

  • :client_token (String)

    Unique, case-sensitive identifier the service generates to ensure the idempotency of the request to create an application. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.

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

  • :definition (required, Types::Definition)

    The application definition for this application. You can specify either inline JSON or an S3 bucket location.

  • :description (String)

    The description of the application.

  • :engine_type (required, String)

    The type of the target platform for this application.

  • :name (required, String)

    The unique identifier of the application.

  • :tags (Hash<String,String>)

    A list of tags to apply to the application.

Returns:

See Also:



442
443
444
445
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 442

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

#create_data_set_import_task(params = {}) ⇒ Types::CreateDataSetImportTaskResponse

Starts a data set import task for a specific application.

Examples:

Request syntax with placeholder values


resp = client.create_data_set_import_task({
  application_id: "Identifier", # required
  client_token: "String",
  import_config: { # required
    data_sets: [
      {
        data_set: { # required
          dataset_name: "String", # required
          dataset_org: { # required
            gdg: {
              limit: 1,
              roll_disposition: "String",
            },
            vsam: {
              alternate_keys: [
                {
                  allow_duplicates: false,
                  length: 1, # required
                  name: "String",
                  offset: 1, # required
                },
              ],
              compressed: false,
              encoding: "String",
              format: "String", # required
              primary_key: {
                length: 1, # required
                name: "String",
                offset: 1, # required
              },
            },
          },
          record_length: { # required
            max: 1, # required
            min: 1, # required
          },
          relative_path: "String",
          storage_type: "String",
        },
        external_location: { # required
          s3_location: "String2000",
        },
      },
    ],
    s3_location: "String2000",
  },
})

Response structure


resp.task_id #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The unique identifier of the application for which you want to import data sets.

  • :client_token (String)

    Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create a data set import. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.

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

  • :import_config (required, Types::DataSetImportConfig)

    The data set import task configuration.

Returns:

See Also:



529
530
531
532
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 529

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

#create_deployment(params = {}) ⇒ Types::CreateDeploymentResponse

Creates and starts a deployment to deploy an application into an environment.

Examples:

Request syntax with placeholder values


resp = client.create_deployment({
  application_id: "Identifier", # required
  application_version: 1, # required
  client_token: "String",
  environment_id: "Identifier", # required
})

Response structure


resp.deployment_id #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The application identifier.

  • :application_version (required, Integer)

    The version of the application to deploy.

  • :client_token (String)

    Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create a deployment. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.

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

  • :environment_id (required, String)

    The identifier of the environment where this application will be deployed.

Returns:

See Also:



579
580
581
582
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 579

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

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

Creates a runtime environment for a given runtime engine.

Examples:

Request syntax with placeholder values


resp = client.create_environment({
  client_token: "String",
  description: "EntityDescription",
  engine_type: "microfocus", # required, accepts microfocus, bluage
  engine_version: "EngineVersion",
  high_availability_config: {
    desired_capacity: 1, # required
  },
  instance_type: "String20", # required
  name: "EntityName", # required
  preferred_maintenance_window: "String50",
  publicly_accessible: false,
  security_group_ids: ["String50"],
  storage_configurations: [
    {
      efs: {
        file_system_id: "String200", # required
        mount_point: "String200", # required
      },
      fsx: {
        file_system_id: "String200", # required
        mount_point: "String200", # required
      },
    },
  ],
  subnet_ids: ["String50"],
  tags: {
    "TagKey" => "TagValue",
  },
})

Response structure


resp.environment_id #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :client_token (String)

    Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create an environment. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.

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

  • :description (String)

    The description of the environment.

  • :engine_type (required, String)

    The engine type for the environment.

  • :engine_version (String)

    The version of the engine type for the environment.

  • :high_availability_config (Types::HighAvailabilityConfig)

    The details of a high availability configuration for this runtime environment.

  • :instance_type (required, String)

    The type of instance for the environment.

  • :name (required, String)

    The unique identifier of the environment.

  • :preferred_maintenance_window (String)

    Configures a desired maintenance window for the environment. If you do not provide a value, a random system-generated value will be assigned.

  • :publicly_accessible (Boolean)

    Specifies whether the environment is publicly accessible.

  • :security_group_ids (Array<String>)

    The list of security groups for the VPC associated with this environment.

  • :storage_configurations (Array<Types::StorageConfiguration>)

    Optional. The storage configurations for this environment.

  • :subnet_ids (Array<String>)

    The list of subnets associated with the VPC for this environment.

  • :tags (Hash<String,String>)

    The tags for the environment.

Returns:

See Also:



681
682
683
684
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 681

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

#delete_application(params = {}) ⇒ Struct

Deletes a specific application. You cannot delete a running application.

Examples:

Request syntax with placeholder values


resp = client.delete_application({
  application_id: "Identifier", # required
})

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The unique identifier of the application you want to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



704
705
706
707
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 704

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

#delete_application_from_environment(params = {}) ⇒ Struct

Deletes a specific application from a specified environment where it has been previously deployed. You cannot delete an environment using DeleteEnvironment, if any application has ever been deployed to it. This API removes the association of the application with the environment so you can delete the environment smoothly.

Examples:

Request syntax with placeholder values


resp = client.delete_application_from_environment({
  application_id: "Identifier", # required
  environment_id: "Identifier", # required
})

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The unique identifier of the application you want to delete.

  • :environment_id (required, String)

    The unique identifier of the runtime environment where the application was previously deployed.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



735
736
737
738
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 735

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

#delete_environment(params = {}) ⇒ Struct

Deletes a specific environment. The environment cannot contain deployed applications. If it does, you must delete those applications before you delete the environment.

Examples:

Request syntax with placeholder values


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

Parameters:

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

    ({})

Options Hash (params):

  • :environment_id (required, String)

    The unique identifier of the runtime environment you want to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



759
760
761
762
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 759

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

#get_application(params = {}) ⇒ Types::GetApplicationResponse

Describes the details of a specific application.

Examples:

Request syntax with placeholder values


resp = client.get_application({
  application_id: "Identifier", # required
})

Response structure


resp.application_arn #=> String
resp.application_id #=> String
resp.creation_time #=> Time
resp.deployed_version.application_version #=> Integer
resp.deployed_version.status #=> String, one of "Deploying", "Succeeded", "Failed"
resp.deployed_version.status_reason #=> String
resp.description #=> String
resp.engine_type #=> String, one of "microfocus", "bluage"
resp.environment_id #=> String
resp.last_start_time #=> Time
resp.latest_version.application_version #=> Integer
resp.latest_version.creation_time #=> Time
resp.latest_version.status #=> String, one of "Creating", "Available", "Failed"
resp.latest_version.status_reason #=> String
resp.listener_arns #=> Array
resp.listener_arns[0] #=> String
resp.listener_ports #=> Array
resp.listener_ports[0] #=> Integer
resp.load_balancer_dns_name #=> String
resp.log_groups #=> Array
resp.log_groups[0].log_group_name #=> String
resp.log_groups[0].log_type #=> String
resp.name #=> String
resp.status #=> String, one of "Creating", "Created", "Available", "Ready", "Starting", "Running", "Stopping", "Stopped", "Failed", "Deleting"
resp.status_reason #=> String
resp.tags #=> Hash
resp.tags["TagKey"] #=> String
resp.target_group_arns #=> Array
resp.target_group_arns[0] #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The identifier of the application.

Returns:

See Also:



832
833
834
835
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 832

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

#get_application_version(params = {}) ⇒ Types::GetApplicationVersionResponse

Returns details about a specific version of a specific application.

Examples:

Request syntax with placeholder values


resp = client.get_application_version({
  application_id: "Identifier", # required
  application_version: 1, # required
})

Response structure


resp.application_version #=> Integer
resp.creation_time #=> Time
resp.definition_content #=> String
resp.description #=> String
resp.name #=> String
resp.status #=> String, one of "Creating", "Available", "Failed"
resp.status_reason #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The unique identifier of the application.

  • :application_version (required, Integer)

    The specific version of the application.

Returns:

See Also:



876
877
878
879
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 876

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

#get_batch_job_execution(params = {}) ⇒ Types::GetBatchJobExecutionResponse

Gets the details of a specific batch job execution for a specific application.

Examples:

Request syntax with placeholder values


resp = client.get_batch_job_execution({
  application_id: "Identifier", # required
  execution_id: "Identifier", # required
})

Response structure


resp.application_id #=> String
resp.end_time #=> Time
resp.execution_id #=> String
resp.job_id #=> String
resp.job_name #=> String
resp.job_type #=> String, one of "VSE", "JES2", "JES3"
resp.job_user #=> String
resp.start_time #=> Time
resp.status #=> String, one of "Submitting", "Holding", "Dispatching", "Running", "Cancelling", "Cancelled", "Succeeded", "Failed", "Succeeded With Warning"
resp.status_reason #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The identifier of the application.

  • :execution_id (required, String)

    The unique identifier of the batch job execution.

Returns:

See Also:



927
928
929
930
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 927

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

#get_data_set_details(params = {}) ⇒ Types::GetDataSetDetailsResponse

Gets the details of a specific data set.

Examples:

Request syntax with placeholder values


resp = client.get_data_set_details({
  application_id: "Identifier", # required
  data_set_name: "String200", # required
})

Response structure


resp.blocksize #=> Integer
resp.creation_time #=> Time
resp.data_set_name #=> String
resp.data_set_org.gdg.limit #=> Integer
resp.data_set_org.gdg.roll_disposition #=> String
resp.data_set_org.vsam.alternate_keys #=> Array
resp.data_set_org.vsam.alternate_keys[0].allow_duplicates #=> Boolean
resp.data_set_org.vsam.alternate_keys[0].length #=> Integer
resp.data_set_org.vsam.alternate_keys[0].name #=> String
resp.data_set_org.vsam.alternate_keys[0].offset #=> Integer
resp.data_set_org.vsam.cache_at_startup #=> Boolean
resp.data_set_org.vsam.compressed #=> Boolean
resp.data_set_org.vsam.encoding #=> String
resp.data_set_org.vsam.primary_key.length #=> Integer
resp.data_set_org.vsam.primary_key.name #=> String
resp.data_set_org.vsam.primary_key.offset #=> Integer
resp.data_set_org.vsam.record_format #=> String
resp.last_referenced_time #=> Time
resp.last_updated_time #=> Time
resp.location #=> String
resp.record_length #=> Integer

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The unique identifier of the application that this data set is associated with.

  • :data_set_name (required, String)

    The name of the data set.

Returns:

See Also:



987
988
989
990
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 987

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

#get_data_set_import_task(params = {}) ⇒ Types::GetDataSetImportTaskResponse

Gets the status of a data set import task initiated with the CreateDataSetImportTask operation.

Examples:

Request syntax with placeholder values


resp = client.get_data_set_import_task({
  application_id: "Identifier", # required
  task_id: "Identifier", # required
})

Response structure


resp.status #=> String, one of "Creating", "Running", "Completed"
resp.summary.failed #=> Integer
resp.summary.in_progress #=> Integer
resp.summary.pending #=> Integer
resp.summary.succeeded #=> Integer
resp.summary.total #=> Integer
resp.task_id #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The application identifier.

  • :task_id (required, String)

    The task identifier returned by the CreateDataSetImportTask operation.

Returns:

See Also:



1028
1029
1030
1031
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 1028

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

#get_deployment(params = {}) ⇒ Types::GetDeploymentResponse

Gets details of a specific deployment with a given deployment identifier.

Examples:

Request syntax with placeholder values


resp = client.get_deployment({
  application_id: "Identifier", # required
  deployment_id: "Identifier", # required
})

Response structure


resp.application_id #=> String
resp.application_version #=> Integer
resp.creation_time #=> Time
resp.deployment_id #=> String
resp.environment_id #=> String
resp.status #=> String, one of "Deploying", "Succeeded", "Failed"
resp.status_reason #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The unique identifier of the application.

  • :deployment_id (required, String)

    The unique identifier for the deployment.

Returns:

See Also:



1073
1074
1075
1076
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 1073

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

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

Describes a specific runtime environment.

Examples:

Request syntax with placeholder values


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

Response structure


resp.actual_capacity #=> Integer
resp.creation_time #=> Time
resp.description #=> String
resp.engine_type #=> String, one of "microfocus", "bluage"
resp.engine_version #=> String
resp.environment_arn #=> String
resp.environment_id #=> String
resp.high_availability_config.desired_capacity #=> Integer
resp.instance_type #=> String
resp.load_balancer_arn #=> String
resp.name #=> String
resp.pending_maintenance.engine_version #=> String
resp.pending_maintenance.schedule.end_time #=> Time
resp.pending_maintenance.schedule.start_time #=> Time
resp.preferred_maintenance_window #=> String
resp.publicly_accessible #=> Boolean
resp.security_group_ids #=> Array
resp.security_group_ids[0] #=> String
resp.status #=> String, one of "Creating", "Available", "Deleting", "Failed"
resp.status_reason #=> String
resp.storage_configurations #=> Array
resp.storage_configurations[0].efs.file_system_id #=> String
resp.storage_configurations[0].efs.mount_point #=> String
resp.storage_configurations[0].fsx.file_system_id #=> String
resp.storage_configurations[0].fsx.mount_point #=> String
resp.subnet_ids #=> Array
resp.subnet_ids[0] #=> String
resp.tags #=> Hash
resp.tags["TagKey"] #=> String
resp.vpc_id #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_id (required, String)

    The unique identifier of the runtime environment.

Returns:

See Also:



1150
1151
1152
1153
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 1150

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

#list_application_versions(params = {}) ⇒ Types::ListApplicationVersionsResponse

Returns a list of the application versions for a specific application.

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_application_versions({
  application_id: "Identifier", # required
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.application_versions #=> Array
resp.application_versions[0].application_version #=> Integer
resp.application_versions[0].creation_time #=> Time
resp.application_versions[0].status #=> String, one of "Creating", "Available", "Failed"
resp.application_versions[0].status_reason #=> String
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The unique identifier of the application.

  • :max_results (Integer)

    The maximum number of application versions to return.

  • :next_token (String)

    A pagination token returned from a previous call to this operation. This specifies the next item to return. To return to the beginning of the list, exclude this parameter.

Returns:

See Also:



1196
1197
1198
1199
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 1196

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

#list_applications(params = {}) ⇒ Types::ListApplicationsResponse

Lists the applications associated with a specific Amazon Web Services account. You can provide the unique identifier of a specific environment in a query parameter to see all applications associated with that environment.

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_applications({
  environment_id: "Identifier",
  max_results: 1,
  names: ["EntityName"],
  next_token: "NextToken",
})

Response structure


resp.applications #=> Array
resp.applications[0].application_arn #=> String
resp.applications[0].application_id #=> String
resp.applications[0].application_version #=> Integer
resp.applications[0].creation_time #=> Time
resp.applications[0].deployment_status #=> String, one of "Deploying", "Deployed"
resp.applications[0].description #=> String
resp.applications[0].engine_type #=> String, one of "microfocus", "bluage"
resp.applications[0].environment_id #=> String
resp.applications[0].last_start_time #=> Time
resp.applications[0].name #=> String
resp.applications[0].status #=> String, one of "Creating", "Created", "Available", "Ready", "Starting", "Running", "Stopping", "Stopped", "Failed", "Deleting"
resp.applications[0].version_status #=> String, one of "Creating", "Available", "Failed"
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :environment_id (String)

    The unique identifier of the runtime environment where the applications are deployed.

  • :max_results (Integer)

    The maximum number of applications to return.

  • :names (Array<String>)

    The names of the applications.

  • :next_token (String)

    A pagination token to control the number of applications displayed in the list.

Returns:

See Also:



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

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

#list_batch_job_definitions(params = {}) ⇒ Types::ListBatchJobDefinitionsResponse

Lists all the available batch job definitions based on the batch job resources uploaded during the application creation. The listed batch job definitions can then be used to start a batch job.

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_batch_job_definitions({
  application_id: "Identifier", # required
  max_results: 1,
  next_token: "NextToken",
  prefix: "String",
})

Response structure


resp.batch_job_definitions #=> Array
resp.batch_job_definitions[0].file_batch_job_definition.file_name #=> String
resp.batch_job_definitions[0].file_batch_job_definition.folder_path #=> String
resp.batch_job_definitions[0].script_batch_job_definition.script_name #=> String
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The identifier of the application.

  • :max_results (Integer)

    The maximum number of batch job definitions to return.

  • :next_token (String)

    A pagination token returned from a previous call to this operation. This specifies the next item to return. To return to the beginning of the list, exclude this parameter.

  • :prefix (String)

    If the batch job definition is a FileBatchJobDefinition, the prefix allows you to search on the file names of FileBatchJobDefinitions.

Returns:

See Also:



1309
1310
1311
1312
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 1309

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

#list_batch_job_executions(params = {}) ⇒ Types::ListBatchJobExecutionsResponse

Lists historical, current, and scheduled batch job executions for a specific application.

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_batch_job_executions({
  application_id: "Identifier", # required
  execution_ids: ["Identifier"],
  job_name: "String100",
  max_results: 1,
  next_token: "NextToken",
  started_after: Time.now,
  started_before: Time.now,
  status: "Submitting", # accepts Submitting, Holding, Dispatching, Running, Cancelling, Cancelled, Succeeded, Failed, Succeeded With Warning
})

Response structure


resp.batch_job_executions #=> Array
resp.batch_job_executions[0].application_id #=> String
resp.batch_job_executions[0].end_time #=> Time
resp.batch_job_executions[0].execution_id #=> String
resp.batch_job_executions[0].job_id #=> String
resp.batch_job_executions[0].job_name #=> String
resp.batch_job_executions[0].job_type #=> String, one of "VSE", "JES2", "JES3"
resp.batch_job_executions[0].start_time #=> Time
resp.batch_job_executions[0].status #=> String, one of "Submitting", "Holding", "Dispatching", "Running", "Cancelling", "Cancelled", "Succeeded", "Failed", "Succeeded With Warning"
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The unique identifier of the application.

  • :execution_ids (Array<String>)

    The unique identifier of each batch job execution.

  • :job_name (String)

    The name of each batch job execution.

  • :max_results (Integer)

    The maximum number of batch job executions to return.

  • :next_token (String)

    A pagination token to control the number of batch job executions displayed in the list.

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

    The time after which the batch job executions started.

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

    The time before the batch job executions started.

  • :status (String)

    The status of the batch job executions.

Returns:

See Also:



1379
1380
1381
1382
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 1379

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

#list_data_set_import_history(params = {}) ⇒ Types::ListDataSetImportHistoryResponse

Lists the data set imports for the specified application.

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_data_set_import_history({
  application_id: "Identifier", # required
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.data_set_import_tasks #=> Array
resp.data_set_import_tasks[0].status #=> String, one of "Creating", "Running", "Completed"
resp.data_set_import_tasks[0].summary.failed #=> Integer
resp.data_set_import_tasks[0].summary.in_progress #=> Integer
resp.data_set_import_tasks[0].summary.pending #=> Integer
resp.data_set_import_tasks[0].summary.succeeded #=> Integer
resp.data_set_import_tasks[0].summary.total #=> Integer
resp.data_set_import_tasks[0].task_id #=> String
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The unique identifier of the application.

  • :max_results (Integer)

    The maximum number of objects to return.

  • :next_token (String)

    A pagination token returned from a previous call to this operation. This specifies the next item to return. To return to the beginning of the list, exclude this parameter.

Returns:

See Also:



1428
1429
1430
1431
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 1428

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

#list_data_sets(params = {}) ⇒ Types::ListDataSetsResponse

Lists the data sets imported for a specific application. In Amazon Web Services Mainframe Modernization, data sets are associated with applications deployed on environments. This is known as importing data sets. Currently, Amazon Web Services Mainframe Modernization can import data sets into catalogs using CreateDataSetImportTask.

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_data_sets({
  application_id: "Identifier", # required
  max_results: 1,
  next_token: "NextToken",
  prefix: "String200",
})

Response structure


resp.data_sets #=> Array
resp.data_sets[0].creation_time #=> Time
resp.data_sets[0].data_set_name #=> String
resp.data_sets[0].data_set_org #=> String
resp.data_sets[0].format #=> String
resp.data_sets[0].last_referenced_time #=> Time
resp.data_sets[0].last_updated_time #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The unique identifier of the application for which you want to list the associated data sets.

  • :max_results (Integer)

    The maximum number of objects to return.

  • :next_token (String)

    A pagination token returned from a previous call to this operation. This specifies the next item to return. To return to the beginning of the list, exclude this parameter.

  • :prefix (String)

    The prefix of the data set name, which you can use to filter the list of data sets.

Returns:

See Also:



1490
1491
1492
1493
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 1490

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

#list_deployments(params = {}) ⇒ Types::ListDeploymentsResponse

Returns a list of all deployments of a specific application. A deployment is a combination of a specific application and a specific version of that application. Each deployment is mapped to a particular application version.

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_deployments({
  application_id: "Identifier", # required
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.deployments #=> Array
resp.deployments[0].application_id #=> String
resp.deployments[0].application_version #=> Integer
resp.deployments[0].creation_time #=> Time
resp.deployments[0].deployment_id #=> String
resp.deployments[0].environment_id #=> String
resp.deployments[0].status #=> String, one of "Deploying", "Succeeded", "Failed"
resp.deployments[0].status_reason #=> String
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The application identifier.

  • :max_results (Integer)

    The maximum number of objects to return.

  • :next_token (String)

    A pagination token returned from a previous call to this operation. This specifies the next item to return. To return to the beginning of the list, exclude this parameter.

Returns:

See Also:



1542
1543
1544
1545
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 1542

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

#list_engine_versions(params = {}) ⇒ Types::ListEngineVersionsResponse

Lists the available engine versions.

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_engine_versions({
  engine_type: "microfocus", # accepts microfocus, bluage
  max_results: 1,
  next_token: "NextToken",
})

Response structure


resp.engine_versions #=> Array
resp.engine_versions[0].engine_type #=> String
resp.engine_versions[0].engine_version #=> String
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :engine_type (String)

    The type of target platform.

  • :max_results (Integer)

    The maximum number of objects to return.

  • :next_token (String)

    A pagination token returned from a previous call to this operation. This specifies the next item to return. To return to the beginning of the list, exclude this parameter.

Returns:

See Also:



1586
1587
1588
1589
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 1586

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

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

Lists the runtime environments.

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

Examples:

Request syntax with placeholder values


resp = client.list_environments({
  engine_type: "microfocus", # accepts microfocus, bluage
  max_results: 1,
  names: ["EntityName"],
  next_token: "NextToken",
})

Response structure


resp.environments #=> Array
resp.environments[0].creation_time #=> Time
resp.environments[0].engine_type #=> String, one of "microfocus", "bluage"
resp.environments[0].engine_version #=> String
resp.environments[0].environment_arn #=> String
resp.environments[0].environment_id #=> String
resp.environments[0].instance_type #=> String
resp.environments[0].name #=> String
resp.environments[0].status #=> String, one of "Creating", "Available", "Deleting", "Failed"
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :engine_type (String)

    The engine type for the environment.

  • :max_results (Integer)

    The maximum number of environments to return.

  • :names (Array<String>)

    The name of the environment.

  • :next_token (String)

    A pagination token to control the number of environments displayed in the list.

Returns:

See Also:



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

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

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

Lists the tags for the specified 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)

    The Amazon Resource Name (ARN) of the resource.

Returns:

See Also:



1668
1669
1670
1671
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 1668

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

#start_application(params = {}) ⇒ Struct

Starts an application that is currently stopped.

Examples:

Request syntax with placeholder values


resp = client.start_application({
  application_id: "Identifier", # required
})

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The unique identifier of the application you want to start.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1690
1691
1692
1693
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 1690

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

#start_batch_job(params = {}) ⇒ Types::StartBatchJobResponse

Starts a batch job and returns the unique identifier of this execution of the batch job. The associated application must be running in order to start the batch job.

Examples:

Request syntax with placeholder values


resp = client.start_batch_job({
  application_id: "Identifier", # required
  batch_job_identifier: { # required
    file_batch_job_identifier: {
      file_name: "String", # required
      folder_path: "String",
    },
    script_batch_job_identifier: {
      script_name: "String", # required
    },
  },
  job_params: {
    "BatchParamKey" => "BatchParamValue",
  },
})

Response structure


resp.execution_id #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The unique identifier of the application associated with this batch job.

  • :batch_job_identifier (required, Types::BatchJobIdentifier)

    The unique identifier of the batch job.

  • :job_params (Hash<String,String>)

    The collection of batch job parameters. For details about limits for keys and values, see Coding variables in JCL.

Returns:

See Also:



1744
1745
1746
1747
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 1744

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

#stop_application(params = {}) ⇒ Struct

Stops a running application.

Examples:

Request syntax with placeholder values


resp = client.stop_application({
  application_id: "Identifier", # required
  force_stop: false,
})

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The unique identifier of the application you want to stop.

  • :force_stop (Boolean)

    Stopping an application process can take a long time. Setting this parameter to true lets you force stop the application so you don't need to wait until the process finishes to apply another action on the application. The default value is false.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1773
1774
1775
1776
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 1773

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

#tag_resource(params = {}) ⇒ Struct

Adds one or more tags to the specified 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)

    The Amazon Resource Name (ARN) of the resource.

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

    The tags to add to the resource.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1801
1802
1803
1804
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 1801

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

#untag_resource(params = {}) ⇒ Struct

Removes one or more tags from the specified 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)

    The Amazon Resource Name (ARN) of the resource.

  • :tag_keys (required, Array<String>)

    The keys of the tags to remove.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1827
1828
1829
1830
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 1827

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

#update_application(params = {}) ⇒ Types::UpdateApplicationResponse

Updates an application and creates a new version.

Examples:

Request syntax with placeholder values


resp = client.update_application({
  application_id: "Identifier", # required
  current_application_version: 1, # required
  definition: {
    content: "StringFree65000",
    s3_location: "String2000",
  },
  description: "EntityDescription",
})

Response structure


resp.application_version #=> Integer

Parameters:

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

    ({})

Options Hash (params):

  • :application_id (required, String)

    The unique identifier of the application you want to update.

  • :current_application_version (required, Integer)

    The current version of the application to update.

  • :definition (Types::Definition)

    The application definition for this application. You can specify either inline JSON or an S3 bucket location.

  • :description (String)

    The description of the application to update.

Returns:

See Also:



1871
1872
1873
1874
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 1871

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

#update_environment(params = {}) ⇒ Types::UpdateEnvironmentResponse

Updates the configuration details for a specific environment.

Examples:

Request syntax with placeholder values


resp = client.update_environment({
  apply_during_maintenance_window: false,
  desired_capacity: 1,
  engine_version: "EngineVersion",
  environment_id: "Identifier", # required
  instance_type: "String20",
  preferred_maintenance_window: "String",
})

Response structure


resp.environment_id #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :apply_during_maintenance_window (Boolean)

    Indicates whether to update the environment during the maintenance window. The default is false. Currently, Amazon Web Services Mainframe Modernization accepts the engineVersion parameter only if applyDuringMaintenanceWindow is true. If any parameter other than engineVersion is provided in UpdateEnvironmentRequest, it will fail if applyDuringMaintenanceWindow is set to true.

  • :desired_capacity (Integer)

    The desired capacity for the environment to update.

  • :engine_version (String)

    The version of the runtime engine for the environment.

  • :environment_id (required, String)

    The unique identifier of the runtime environment that you want to update.

  • :instance_type (String)

    The instance type for the environment to update.

  • :preferred_maintenance_window (String)

    Configures a desired maintenance window for the environment. If you do not provide a value, a random system-generated value will be assigned.

Returns:

See Also:



1926
1927
1928
1929
# File 'gems/aws-sdk-mainframemodernization/lib/aws-sdk-mainframemodernization/client.rb', line 1926

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