Class AwsAccountRoleCredential
java.lang.Object
co.yellowdog.platform.account.credentials.AwsAccountRoleCredential
- All Implemented Interfaces:
Credential
,Serializable
@JsonClassDescription("Amazon Web Services (AWS) account role credential")
public final class AwsAccountRoleCredential
extends Object
implements Credential
Holds the Role ARN and External ID required to allow YellowDog Platform to assume an assigned role in an external AWS account.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder that can be used to build a new AwsAccountRoleCredential that is automatically validated on build. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface co.yellowdog.platform.account.credentials.Credential
getExpiryTime
-
Method Details
-
builder
-
toBuilder
- Specified by:
toBuilder
in interfaceCredential
-
getName
Description copied from interface:Credential
Returns the name assigned to the Credential to identify it to the ComputeServiceClient.- Specified by:
getName
in interfaceCredential
- Returns:
- the name assigned to the Credential
-
getDescription
- Specified by:
getDescription
in interfaceCredential
-
getExternalRoleArn
The ARN of the IAM role in the external account.- Returns:
- the ARN of the IAM role in the external account
-
getExternalId
The external ID required to assume the external role.- Returns:
- the external ID
-
equals
-
hashCode
-
toString
-