-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update logic to read the region when reading non default profiles
- Loading branch information
1 parent
d845c36
commit 2565a7a
Showing
14 changed files
with
1,078 additions
and
20 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
using Amazon.Runtime.CredentialManagement; | ||
|
||
namespace AWS.Deploy.CLI | ||
{ | ||
/// <summary> | ||
/// Represents a factory for creating CredentialProfileStoreChain | ||
/// </summary> | ||
public class CredentialProfileStoreChainFactory : ICredentialProfileStoreChainFactory | ||
{ | ||
/// <summary> | ||
/// Creates a CredentialProfileStoreChain | ||
/// </summary> | ||
public CredentialProfileStoreChain Create() | ||
{ | ||
return new CredentialProfileStoreChain(); | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
using Amazon.Runtime; | ||
|
||
namespace AWS.Deploy.CLI | ||
{ | ||
/// <summary> | ||
/// Represents a factory for creating AWSCredentials | ||
/// </summary> | ||
public class FallbackCredentialsFactoryFactory : IFallbackCredentialsFactoryFactory | ||
{ | ||
/// <summary> | ||
/// Creates AWSCredentials | ||
/// </summary> | ||
public AWSCredentials Create() | ||
{ | ||
return FallbackCredentialsFactory.GetCredentials(); | ||
} | ||
} | ||
} |
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,18 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
using Amazon.Runtime.CredentialManagement; | ||
|
||
namespace AWS.Deploy.CLI | ||
{ | ||
/// <summary> | ||
/// Represents a factory for creating CredentialProfileStoreChain | ||
/// </summary> | ||
public interface ICredentialProfileStoreChainFactory | ||
{ | ||
/// <summary> | ||
/// Creates a CredentialProfileStoreChain | ||
/// </summary> | ||
CredentialProfileStoreChain Create(); | ||
} | ||
} |
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,18 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
using Amazon.Runtime; | ||
|
||
namespace AWS.Deploy.CLI | ||
{ | ||
/// <summary> | ||
/// Represents a factory for creating AWSCredentials | ||
/// </summary> | ||
public interface IFallbackCredentialsFactoryFactory | ||
{ | ||
/// <summary> | ||
/// Creates AWSCredentials | ||
/// </summary> | ||
AWSCredentials Create(); | ||
} | ||
} |
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,18 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
using Amazon.Runtime.CredentialManagement; | ||
|
||
namespace AWS.Deploy.CLI | ||
{ | ||
/// <summary> | ||
/// Represents a factory for creating SharedCredentialsFile | ||
/// </summary> | ||
public interface ISharedCredentialsFileFactory | ||
{ | ||
/// <summary> | ||
/// Creates a SharedCredentialsFile | ||
/// </summary> | ||
SharedCredentialsFile Create(); | ||
} | ||
} |
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,21 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
using Amazon.Runtime.CredentialManagement; | ||
|
||
namespace AWS.Deploy.CLI | ||
{ | ||
/// <summary> | ||
/// Represents a factory for creating SharedCredentialsFile | ||
/// </summary> | ||
public class SharedCredentialsFileFactory : ISharedCredentialsFileFactory | ||
{ | ||
/// <summary> | ||
/// Creates a SharedCredentialsFile | ||
/// </summary> | ||
public SharedCredentialsFile Create() | ||
{ | ||
return new SharedCredentialsFile(); | ||
} | ||
} | ||
} |
Oops, something went wrong.