# Functions

AwsCredentialPersistedStateFromProto parses values out of a protobuf struct input and returns a AwsCredentialPersistedState used for configuring an AWS session.
GetCredentialAttributes parses values out of a protobuf struct input and returns a CredentialAttributes used for configuring an AWS session.
GetCredentialsConfig parses values out of a protobuf struct secrets and returns a CredentialsConfig used for configuring an AWS session.
GetCredentialType returns the credential type based on the given AccessKey/RoleARN.
MockAssumeRoleAttributes returns a *structpb.Struct that contains six key pair values: (region, region) (disable_credential_rotation, disableRotate) (role_arn, arn:aws:iam::123456789012:role/S3Access) (role_external_id, 1234567890) (role_session_name, ec2-assume-role-provider) (role_tags, struct{foo:bar}).
MockStaticCredentialSecrets returns a *structpb.Struct that contains two key pair values: (access_key_id, AKIA_foobar) & (secret_access_key, bazqux).
NewAwsCredentialPersistedState returns a AwsCredentialPersistedState.
WithCredentialsConfig sets the value for CredentialsConfig in the credential persisted state.
WithCredsLastRotatedTime sets the value for CredsLastRotatedTime in the credential persisted state.
WithStateTestOpts enables unit testing different edge cases when using CredentialsConfig.

# Constants

ConstAccessKey is the key for the access key id in the aws credentials.
ConstCredsLastRotatedTime is the key for the last rotated time in the aws credentials.
ConstDisableCredentialRotation is the key for the disable credential rotation in the aws credentials.
ConstAccessKey is the key for the region in the aws credentials.
ConstRoleArn is the key for assuming a IAM role.
ConstRoleExternalId is the key for the external id used for assuming a IAM role.
ConstRoleSessionName is the key for the session name used for assuming a IAM role.
ConstRoleTags is the key for the tags used for assuming a IAM role.
ConstSecretAccessKey is the key for the secret access key in the aws credentials.
DynamicAWS denotes the presence of a RoleARN, or an Access Key Id that begins with "ASIA".
StaticAWS denotes an Access Key Id that begins with "AKIA".
StaticOther denotes the presence of an Access Key Id that does not follow the AKIA/ASIA convention outlined by AWS.
Unknown is a catch-all for everything else.

# Structs

AwsCredentialPersistedState is the persisted state for the AWS credential.
CredentialAttributes contains attributes used for AWS credentials.

# Type aliases

No description provided by the author
No description provided by the author