CARVIEW |
Select Language
HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 2793
Connection: keep-alive
Date: Sat, 26 Jul 2025 06:10:27 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: Fri, 25 Jul 2025 18:50:28 GMT
ETag: "YCh+vANIUTJztZ7PEpLZXXOJdm8=-gzip"
Accept-Ranges: bytes
Content-Encoding: gzip
X-Content-Type-Options: nosniff
Vary: Accept-Encoding
X-Cache: Miss from cloudfront
Via: 1.1 24308854e88feb19b441efca32b2020c.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: BOM78-P5
X-Amz-Cf-Id: USQ36DJPsvQgBEDShA6PSST8NnAGyeT-0jR4ttcI5zsHUwOuN0tSew==
Class: Aws::ProcessCredentials
— AWS SDK for Ruby V3
Class: Aws::ProcessCredentials
- Inherits:
-
Object
- Object
- Aws::ProcessCredentials
- Includes:
- CredentialProvider
- Defined in:
- gems/aws-sdk-core/lib/aws-sdk-core/process_credentials.rb
Overview
A credential provider that executes a given process and attempts to read its stdout to receive a JSON payload containing the credentials.
credentials = Aws::ProcessCredentials.new(['/usr/bin/credential_proc'])
ec2 = Aws::EC2::Client.new(credentials: credentials)
Arguments should be provided as strings in the array, for example:
process = ['/usr/bin/credential_proc', 'arg1', 'arg2']
credentials = Aws::ProcessCredentials.new(process)
ec2 = Aws::EC2::Client.new(credentials: credentials)
Automatically handles refreshing credentials if an Expiration time is provided in the credentials payload.
Instance Attribute Summary
Attributes included from CredentialProvider
Instance Method Summary collapse
-
#initialize(process) ⇒ ProcessCredentials
constructor
Creates a new ProcessCredentials object, which allows an external process to be used as a credential provider.
Methods included from CredentialProvider
Constructor Details
#initialize(process) ⇒ ProcessCredentials
Creates a new ProcessCredentials object, which allows an external process to be used as a credential provider.
Parameters:
-
process
(Array<String>, String)
—
An array of strings including the process name and its arguments to execute, or a single string to be executed by the shell (deprecated and insecure).
31 32 33 34 35 36 37 38 39 40 41 |
# File 'gems/aws-sdk-core/lib/aws-sdk-core/process_credentials.rb', line 31 def initialize(process) if process.is_a?(String) warn('Passing a single string to Aws::ProcessCredentials.new '\ 'is insecure, please use use an array of system arguments instead') end @process = process @credentials = credentials_from_process @async_refresh = false @metrics = ['CREDENTIALS_PROCESS'] super end |
Generated on Fri Jul 25 18:50:29 2025 by
yard
0.9.37 (ruby-3.4.3).