Creates an new instance of the connection parameters.
(optional) an object to be converted into key-value pairs to initialize this connection.
Gets the AWS access id.
the AWS access id.
Gets the AWS client key.
the AWS client key.
Gets the AWS account id.
the AWS account id.
Gets the AWS resource ARN. If the ARN is not defined it automatically generates it from other properties.
the AWS resource ARN.
Gets the AWS partition name.
the AWS partition name.
Gets the AWS region.
the AWS region.
Gets the AWS resource id.
the AWS resource id.
Gets the AWS resource type.
the AWS resource type.
Gets the AWS service name.
the AWS service name.
Sets the AWS access id.
the AWS access id.
Sets the AWS client key.
a new AWS client key.
Sets the AWS account id.
the AWS account id.
Sets the AWS resource ARN. When it sets the value, it automatically parses the ARN and sets individual parameters.
a new AWS resource ARN.
Sets the AWS partition name.
a new AWS partition name.
Sets the AWS region.
a new AWS region.
Sets the AWS resource id.
a new AWS resource id.
Sets the AWS resource type.
a new AWS resource type.
Sets the AWS service name.
a new AWS service name.
Validates this connection parameters
(optional) transaction id to trace execution through call chain.
a ConfigException or null if validation passed successfully.
Retrieves AwsConnectionParams from configuration parameters. The values are retrieves from "connection" and "credential" sections.
configuration parameters
the generated AwsConnectionParams object.
Creates a new AwsConnectionParams object filled with key-value pairs serialized as a string.
a string with serialized key-value pairs as "key1=value1;key2=value2;..." Example: "Key1=123;Key2=ABC;Key3=2016-09-16T00:00:00.00Z"
a new AwsConnectionParams object.
Retrieves AwsConnectionParams from multiple configuration parameters. The values are retrieves from "connection" and "credential" sections.
a list with configuration parameters
the generated AwsConnectionParams object.
Generated using TypeDoc
Contains connection parameters to authenticate against Amazon Web Services (AWS) and connect to specific AWS resource.
The class is able to compose and parse AWS resource ARNs.
Configuration parameters
In addition to standard parameters CredentialParams may contain any number of custom parameters
AwsConnectionResolver
Example
let connection = AwsConnectionParams.fromTuples( "region", "us-east-1", "access_id", "XXXXXXXXXXXXXXX", "secret_key", "XXXXXXXXXXXXXXX", "service", "s3", "bucket", "mybucket" ); let region = connection.getRegion(); // Result: "us-east-1" let accessId = connection.getAccessId(); // Result: "XXXXXXXXXXXXXXX" let secretKey = connection.getAccessKey(); // Result: "XXXXXXXXXXXXXXX" let pin = connection.getAsNullableString("bucket"); // Result: "mybucket"