CARVIEW |
Select Language
HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 2562
Connection: keep-alive
Date: Wed, 23 Jul 2025 15:06:55 GMT
Server: Server
Cache-Control: no-store, no-cache, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-Frame-Options: SAMEORIGIN
Strict-Transport-Security: max-age=47304000; includeSubDomains
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Security-Policy: upgrade-insecure-requests; script-src 'self' 'unsafe-inline' *.awsstatic.com *.cdn.uis.awsstatic.com *.cdn.console.awsstatic.com d2c.aws.amazon.com a0.awsstatic.com *.feedback.console.aws.dev insights.docs.aws.com wss://insights.docs.aws.com/prod; object-src 'none';
Last-Modified: Wed, 21 May 2025 18:05:25 GMT
ETag: "2SeNHPzx+drBpRo4fRp43Ekf9Kc=-gzip"
Accept-Ranges: bytes
Content-Encoding: gzip
X-Content-Type-Options: nosniff
Vary: Accept-Encoding
X-Cache: Miss from cloudfront
Via: 1.1 42c82f231b0a4d050daeb1e8e5afdece.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: BOM78-P5
X-Amz-Cf-Id: nrn2Lvt_nwrehUzESdBcC6C2GGOaywpqLGXvdhvwvaKPgGiIbQP86A==
Class: Aws::Credentials
— AWS SDK for Ruby V2
You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::Credentials
- Inherits:
-
Object
- Object
- Aws::Credentials
- Defined in:
- aws-sdk-core/lib/aws-sdk-core/credentials.rb
Instance Attribute Summary collapse
-
#access_key_id ⇒ String?
readonly
-
#secret_access_key ⇒ String?
readonly
-
#session_token ⇒ String?
readonly
Instance Method Summary collapse
-
#credentials ⇒ Credentials
-
#initialize(access_key_id, secret_access_key, session_token = nil) ⇒ Credentials
constructor
A new instance of Credentials.
-
#set? ⇒ Boolean
Returns
true
if the access key id and secret access key are both set.
Constructor Details
#initialize(access_key_id, secret_access_key, session_token = nil) ⇒ Credentials
Returns a new instance of Credentials.
Parameters:
- access_key_id (String)
- secret_access_key (String)
-
session_token
(String)
(defaults to: nil)
—
(nil)
7 8 9 10 11 |
# File 'aws-sdk-core/lib/aws-sdk-core/credentials.rb', line 7 def initialize(access_key_id, secret_access_key, session_token = nil) @access_key_id = access_key_id @secret_access_key = secret_access_key @session_token = session_token end |
Instance Attribute Details
#access_key_id ⇒ String? (readonly)
Returns:
- (String, nil)
14 15 16 |
# File 'aws-sdk-core/lib/aws-sdk-core/credentials.rb', line 14 def access_key_id @access_key_id end |
#secret_access_key ⇒ String? (readonly)
Returns:
- (String, nil)
17 18 19 |
# File 'aws-sdk-core/lib/aws-sdk-core/credentials.rb', line 17 def secret_access_key @secret_access_key end |
#session_token ⇒ String? (readonly)
Returns:
- (String, nil)
20 21 22 |
# File 'aws-sdk-core/lib/aws-sdk-core/credentials.rb', line 20 def session_token @session_token end |
Instance Method Details
#credentials ⇒ Credentials
Returns:
23 24 25 |
# File 'aws-sdk-core/lib/aws-sdk-core/credentials.rb', line 23 def credentials self end |
#set? ⇒ Boolean
Returns true
if the access key id and secret
access key are both set.
Returns:
-
(Boolean)
—
Returns
true
if the access key id and secret access key are both set.
29 30 31 32 33 34 |
# File 'aws-sdk-core/lib/aws-sdk-core/credentials.rb', line 29 def set? !access_key_id.nil? && !access_key_id.empty? && !secret_access_key.nil? && !secret_access_key.empty? end |
Generated on Fri Feb 21 17:25:46 2025 by
yard
0.9.34 (ruby-2.7.8).