Aws connection
AWSConnector
AWSConnector - Connects to AWS using Credentials File or IAM Role
Source code in src/super_gradients/common/aws_connection/aws_connector.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
|
__create_boto_3_session(profile_name)
staticmethod
__create_boto_3_session :param profile_name: :return:
Source code in src/super_gradients/common/aws_connection/aws_connector.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|
get_aws_client_for_service_name(profile_name, service_name)
staticmethod
get_aws_client_for_service_name - Connects to AWS to retrieve the relevant Client :param profile_name: The Config Profile (Environment Name in Credentials file) :param service_name: The AWS Service name to get the Client for :return: Service client instance
Source code in src/super_gradients/common/aws_connection/aws_connector.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
|
get_aws_resource_for_service_name(profile_name, service_name)
staticmethod
Connects to AWS to retrieve the relevant Resource (More functionality then Client) :param profile_name: The Config Profile (Environment Name in Credentials file) :param service_name: The AWS Service name to get the Client for :return: Service client instance
Source code in src/super_gradients/common/aws_connection/aws_connector.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
|
get_aws_session(profile_name)
staticmethod
get_aws_session - Connects to AWS to retrieve an AWS Session :param profile_name: The Config Profile (Environment Name in Credentials file) :return: boto3 Session
Source code in src/super_gradients/common/aws_connection/aws_connector.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
|