CARVIEW |
Select Language
HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 2782
Connection: keep-alive
Date: Fri, 25 Jul 2025 12:30:44 GMT
Content-Encoding: gzip
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
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: Thu, 24 Jul 2025 18:38:46 GMT
ETag: "xhfGl/LxqfkQxYEXdXoqaNVvWyU=-gzip"
Accept-Ranges: bytes
Vary: Accept-Encoding
X-Cache: Miss from cloudfront
Via: 1.1 d50d717134ed031589d1b934a41d279a.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: BOM78-P5
X-Amz-Cf-Id: 12f8OdyCQfifdF-bB3PephXFgtOZZdfUr-1RVaWWrNy2EimUkkT8fA==
Class: Aws::Credentials
— AWS SDK for Ruby V3
Class: Aws::Credentials
- Inherits:
-
Object
- Object
- Aws::Credentials
- Defined in:
- gems/aws-sdk-core/lib/aws-sdk-core/credentials.rb
Instance Attribute Summary collapse
-
#access_key_id ⇒ String
readonly
-
#account_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, **kwargs) ⇒ 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, **kwargs) ⇒ Credentials
Returns a new instance of Credentials.
Parameters:
- access_key_id (String)
- secret_access_key (String)
-
session_token
(String)
(defaults to: nil)
—
(nil)
- kwargs (Hash)
Options Hash (**kwargs):
- :credential_scope (String) — default: nil
11 12 13 14 15 16 17 18 |
# File 'gems/aws-sdk-core/lib/aws-sdk-core/credentials.rb', line 11 def initialize(access_key_id, secret_access_key, session_token = nil, **kwargs) @access_key_id = access_key_id @secret_access_key = secret_access_key @session_token = session_token @account_id = kwargs[:account_id] @metrics = ['CREDENTIALS_CODE'] end |
Instance Attribute Details
#access_key_id ⇒ String (readonly)
Returns:
- (String)
21 22 23 |
# File 'gems/aws-sdk-core/lib/aws-sdk-core/credentials.rb', line 21 def access_key_id @access_key_id end |
#account_id ⇒ String? (readonly)
Returns:
- (String, nil)
30 31 32 |
# File 'gems/aws-sdk-core/lib/aws-sdk-core/credentials.rb', line 30 def account_id @account_id end |
#secret_access_key ⇒ String (readonly)
Returns:
- (String)
24 25 26 |
# File 'gems/aws-sdk-core/lib/aws-sdk-core/credentials.rb', line 24 def secret_access_key @secret_access_key end |
#session_token ⇒ String? (readonly)
Returns:
- (String, nil)
27 28 29 |
# File 'gems/aws-sdk-core/lib/aws-sdk-core/credentials.rb', line 27 def session_token @session_token end |
Instance Method Details
#credentials ⇒ Credentials
Returns:
38 39 40 |
# File 'gems/aws-sdk-core/lib/aws-sdk-core/credentials.rb', line 38 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.
44 45 46 47 48 49 |
# File 'gems/aws-sdk-core/lib/aws-sdk-core/credentials.rb', line 44 def set? !access_key_id.nil? && !access_key_id.empty? && !secret_access_key.nil? && !secret_access_key.empty? end |
Generated on Thu Jul 24 18:38:47 2025 by
yard
0.9.37 (ruby-3.4.3).