Class IAMRoleCredentialSupplierBuilder
java.lang.Object
com.logicaldoc.enterprise.store.s3.IAMRoleCredentialSupplierBuilder
Build SessionCredentials for JClouds Compute Service API with IAM Role. It is
 important that the EC2 machine is configured to use IMDSv2 and that is
 assigned to the IAM role.
 
 More informations here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html
 and here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.jclouds.aws.domain.SessionCredentialsbuild()org.jclouds.aws.domain.SessionCredentials<E> ETests if a string is not nullwithRoleName(String roleName) 
- 
Constructor Details- 
IAMRoleCredentialSupplierBuilderpublic IAMRoleCredentialSupplierBuilder()
 
- 
- 
Method Details- 
withRoleName
- 
isNotNullTests if a string is not null- Type Parameters:
- E- type of the argument
- Parameters:
- argument- the string tested to see if it is not null
- argName- the string name (used in message if an error is thrown)
- Returns:
- the string argument that was tested
- Throws:
- IllegalArgumentException- if the string is null
 
- 
getRoleName
- 
getCredentialspublic org.jclouds.aws.domain.SessionCredentials getCredentials()
- 
build- Throws:
- IOException
- URISyntaxException
 
 
-