CreatesBedrockClient
trait CreatesBedrockClient
Traits
Methods
Create an HTTP client with the provider's request options.
Select a boot-registered connection without retaining dynamic provider names.
Create a new Bedrock client instance.
Resolve the configured region, falling back to the default.
Resolve the provider authentication configuration.
Resolve the auth configuration for static, or automatically discovered, credentials.
Create a loader that assumes the configured role.
Create the STS client used to assume the configured role.
Build the parameters for the STS assume role request.
Details
in
CreatesClient at line 21
protected PendingRequest
createClient(string $baseUrl, array $headers = [], array $configuredHeaders = [], int|null $timeout = 60, bool $throw = true)
Create an HTTP client with the provider's request options.
in
CreatesClient at line 43
protected string
httpConnection(Provider $provider)
Select a boot-registered connection without retaining dynamic provider names.
at line 34
protected BedrockRuntimeClient
createBedrockClient(Provider $provider, int|null $timeout = null)
Create a new Bedrock client instance.
at line 89
protected string
bedrockRegion(array $config)
Resolve the configured region, falling back to the default.
at line 101
protected array
resolveAuthConfig(array $credentials, array $config, int|null $timeout = null)
Resolve the provider authentication configuration.
at line 124
protected array
resolveSourceAuthConfig(array $credentials, array $config)
Resolve the auth configuration for static, or automatically discovered, credentials.
at line 153
protected Closure
assumeRoleCredentialProvider(array $credentials, array $config, int|null $timeout = null)
Create a loader that assumes the configured role.
at line 167
protected StsClient
createStsClient(array $credentials, array $config, int|null $timeout = null)
Create the STS client used to assume the configured role.
at line 189
protected array
assumeRoleParameters(array $assumeRole)
Build the parameters for the STS assume role request.