-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
36821c2
commit d514404
Showing
384 changed files
with
11,052 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
Sources/Core/AWSClientRuntime/Config/AwsDefaultClientConfiguration.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// Copyright Amazon.com Inc. or its affiliates. | ||
// All Rights Reserved. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
public protocol AwsDefaultClientConfiguration { | ||
/// The credentials provider to be used for AWS credentials. | ||
/// | ||
/// If no credentials provider is supplied, the SDK will look for credentials in the environment, then in the `~/.aws/credentials` file. | ||
var credentialsProvider: CredentialsProviding { get set } | ||
|
||
/// Specifies whether FIPS endpoints should be used. | ||
var useFIPS: Bool? { get set } | ||
|
||
/// Specifies whether dual-stack endpoints should be used. | ||
var useDualStack: Bool? { get set } | ||
|
||
/// An identifying string for the application being used with this SDK. | ||
/// | ||
/// This value is set after resolving app ID from the standard progression of potential sources. | ||
/// | ||
/// The application ID is submitted as part of the `user-agent` and allows for better tracking and troubleshooting. | ||
/// The application ID may also be retrieved from the environment variable `AWS_SDK_UA_APP_ID` or from the | ||
/// configuration file field `sdk_ua_app_id` if it is not set here. | ||
var appID: String? { get set } | ||
|
||
/// The AWS retry mode to be used. | ||
/// | ||
/// This value is set after resolving retry mode from the standard progression of potential sources. | ||
/// | ||
/// May be one of `legacy`, `standard`, or `adaptive`. `standard` and `adaptive` retry strategies are as defined in | ||
/// Smithy Reference Architecture. For the Swift SDK, `legacy` is the same behavior as `standard`. | ||
var awsRetryMode: AWSRetryMode { get set } | ||
} |
19 changes: 19 additions & 0 deletions
19
Sources/Core/AWSClientRuntime/Config/AwsRegionClientConfiguration.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// Copyright Amazon.com Inc. or its affiliates. | ||
// All Rights Reserved. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
public protocol AwsRegionClientConfiguration { | ||
|
||
/// The AWS region to use, i.e. `us-east-1` or `us-west-2`, etc. | ||
/// | ||
/// If no region is specified here, one must be specified in the `~/.aws/configuration` file. | ||
var region: String? { get set } | ||
|
||
/// The signing region to be used for signing AWS requests. | ||
/// | ||
/// If none is specified, it is supplied by the SDK. | ||
var signingRegion: String? { get set } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.