/** * Constructs a new STSAssumeRoleSessionCredentialsProvider, which will use the specified long * lived AWS credentials to make a request to the AWS Security Token Service (STS), uses the * provided {@link #roleArn} to assume a role and then request short lived session credentials, * which will then be returned by this class's {@link #getCredentials()} method. * * @param longLivedCredentials The main AWS credentials for a user's account. * @param roleArn The ARN of the Role to be assumed. * @param roleSessionName An identifier for the assumed role session. * @param clientConfiguration Client configuration connection parameters. * @deprecated Use the {@link Builder} instead. */ @Deprecated public STSAssumeRoleSessionCredentialsProvider(AWSCredentials longLivedCredentials, String roleArn, String roleSessionName, ClientConfiguration clientConfiguration) { this(new Builder(roleArn, roleSessionName).withLongLivedCredentials(longLivedCredentials) .withClientConfiguration(clientConfiguration)); }
/** * Constructs a new STSAssumeRoleSessionCredentialsProvider, which will use the specified long * lived AWS credentials to make a request to the AWS Security Token Service (STS), uses the * provided {@link #roleArn} to assume a role and then request short lived session credentials, * which will then be returned by this class's {@link #getCredentials()} method. * * @param longLivedCredentials The main AWS credentials for a user's account. * @param roleArn The ARN of the Role to be assumed. * @param roleSessionName An identifier for the assumed role session. * @param clientConfiguration Client configuration connection parameters. * @deprecated Use the {@link Builder} instead. */ @Deprecated public STSAssumeRoleSessionCredentialsProvider(AWSCredentials longLivedCredentials, String roleArn, String roleSessionName, ClientConfiguration clientConfiguration) { this(new Builder(roleArn, roleSessionName).withLongLivedCredentials(longLivedCredentials) .withClientConfiguration(clientConfiguration)); }