<commit_before>An API client for <%= full_name %>.

# Configuration

To construct a client, you need to configure a `:region` and `:credentials`.

    <%= svc_name.downcase %> = Aws::<%= svc_name %>::Client.new(
      region: region_name,
      credentials: credentials
    )

## Region

You can configure a default region in the following locations:

* `ENV['AWS_REGION']`
* `Aws.config[:region]`

[Go here for a list of supported regions.](http://docs.aws.amazon.com/general/latest/gr/rande.html)

## Credentials

Credentials are loaded automatically from the following locations:

* `ENV['AWS_ACCESS_KEY']` and `ENV['AWS_SECRET_ACCESS_KEY']`
* `Aws.config[:credentials]`
* Shared credentials file, `~/.aws/credentials`
* EC2 Instance profile

You can also construct a credentials object from one of the following
classes:

* {Credentials}
* {SharedCredentials}
* {InstanceProfileCredentials}
* {AssumeRoleCredentials}

Alternatively, you configure credentials with `:access_key_id` and
`:secret_access_key`:

    # load credentials from disk
    creds = YAML.load(File.read('/path/to/secrets'))

    Aws::<%= svc_name %>::Client.new(
      access_key_id: creds['access_key_id'],<commit_msg>Corrected client docs for credential ENV keys.<commit_after>An API client for <%= full_name %>.

# Configuration

To construct a client, you need to configure a `:region` and `:credentials`.

    <%= svc_name.downcase %> = Aws::<%= svc_name %>::Client.new(
      region: region_name,
      credentials: credentials
    )

## Region

You can configure a default region in the following locations:

* `ENV['AWS_REGION']`
* `Aws.config[:region]`

[Go here for a list of supported regions.](http://docs.aws.amazon.com/general/latest/gr/rande.html)

## Credentials

Credentials are loaded automatically from the following locations:

* `ENV['AWS_ACCESS_KEY_ID']` and `ENV['AWS_SECRET_ACCESS_KEY']`
* `Aws.config[:credentials]`
* Shared credentials file, `~/.aws/credentials`
* EC2 Instance profile

You can also construct a credentials object from one of the following
classes:

* {Credentials}
* {SharedCredentials}
* {InstanceProfileCredentials}
* {AssumeRoleCredentials}

Alternatively, you configure credentials with `:access_key_id` and
`:secret_access_key`:

    # load credentials from disk
    creds = YAML.load(File.read('/path/to/secrets'))

    Aws::<%= svc_name %>::Client.new(
      access_key_id: creds['access_key_id'],
{'fraction_non_alphanumeric': 0.1292320396366639, 'fraction_numerical': 0.0008257638315441783, 'mean_word_length': 4.881067961165049, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2867785', 'n_tokens_mistral': 786, 'n_tokens_neox': 765, 'n_words': 211}