Example usage for com.amazonaws.services.codepipeline.model AWSSessionCredentials getSessionToken

List of usage examples for com.amazonaws.services.codepipeline.model AWSSessionCredentials getSessionToken

Introduction

In this page you can find the example usage for com.amazonaws.services.codepipeline.model AWSSessionCredentials getSessionToken.

Prototype


public String getSessionToken() 

Source Link

Document

The token for the session.

Usage

From source file:jetbrains.buildServer.codepipeline.CodePipelineBuildListener.java

License:Apache License

@NotNull
private AmazonS3Client getArtifactS3Client(@NotNull AWSSessionCredentials artifactCredentials,
        @NotNull Map<String, String> params) {
    return AWSClients.fromBasicSessionCredentials(artifactCredentials.getAccessKeyId(),
            artifactCredentials.getSecretAccessKey(), artifactCredentials.getSessionToken(),
            AWSCommonParams.getRegionName(params)).createS3Client();
}