AWSCredentials class

A set of credentials used for accessing AWS services.

Temporary credentials must include an STS sessionToken.

Mixed in types
Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake)

Constructors

AWSCredentials(String accessKeyId, String secretAccessKey, [String? sessionToken, DateTime? expiration])
A set of credentials used for accessing AWS services.
const
AWSCredentials.fromJson(Map<String, dynamic> json)
Deserializes credentials from JSON.
factory

Properties

accessKeyId String
AWS Access Key ID
final
expiration DateTime?
The time the credentials will expire
final
hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
The type's equatable properties.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretAccessKey String
AWS Secret Access Key
final
sessionToken String?
AWS Session Token
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
Serializes this as a JSON object.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited