@Immutable @Loggable(value=1) public static final class Credentials.Simple extends Object implements Credentials
Credentials.Assumed, Credentials.Direct, Credentials.Simple
TEST
Constructor and Description |
---|
Credentials.Simple(String akey,
String scrt)
Public ctor, with "us-east-1" region.
|
Credentials.Simple(String akey,
String scrt,
String reg)
Public ctor.
|
public Credentials.Simple(@NotNull(message="key can\'t be NULL") String akey, @NotNull(message="secret can\'t be NULL") String scrt)
akey
- AWS keyscrt
- Secretpublic Credentials.Simple(@NotNull(message="key can\'t be NULL")@Pattern(regexp="[A-Z0-9]{20}") String akey, @NotNull(message="secret can\'t be NULL")@Pattern(regexp="[a-zA-Z0-9+/=]{40}") String scrt, @NotNull(message="region can\'t be NULL")@Pattern(regexp="[-a-z0-9]+") String reg)
akey
- AWS keyscrt
- Secretreg
- Region@NotNull(message="AWS client is never NULL") public com.amazonaws.services.dynamodbv2.AmazonDynamoDB aws()
Credentials
Don't forget to shut it down after use,
using AmazonDynamoDB.shutdown()
.
aws
in interface Credentials
Copyright © 2012–2014 jcabi.com. All rights reserved.