Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RegionName - aws region name RegionName = "region" // AccessKeyIDName - aws access key id name AccessKeyIDName = "aws_access_key_id" // SecretAccessKeyName - aws secret access key name // #nosec SecretAccessKeyName = "aws_secret_access_key" // RoleArnName - role arn name RoleArnName = "role_arn" // ExternalIDName - external id name ExternalIDName = "external_id" )
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
CheckError - check aws error code.
Types ¶
type Config ¶
type Config struct { Name string `json:"-" ini:"-"` Region string `json:"region" ini:"-"` AccessKeyID string `json:"aws_access_key_id" ini:"aws_access_key_id"` SecretAccessKey string `json:"aws_secret_access_key" ini:"aws_secret_access_key"` SessionToken string `json:"aws_session_token" ini:"aws_session_token"` RoleArn string `json:"role_arn" ini:"-"` ExternalID string `json:"external_id" ini:"-"` }
Config - simple aws session config
type IAM ¶
type IAM interface { GetRole(*iam.GetRoleInput) (*iam.GetRoleOutput, error) CreateRole(*iam.CreateRoleInput) (*iam.CreateRoleOutput, error) DeleteRole(*iam.DeleteRoleInput) (*iam.DeleteRoleOutput, error) UpdateRole(*iam.UpdateRoleInput) (*iam.UpdateRoleOutput, error) UpdateRoleDescription(*iam.UpdateRoleDescriptionInput) (*iam.UpdateRoleDescriptionOutput, error) ListRolePoliciesPages(*iam.ListRolePoliciesInput, func(*iam.ListRolePoliciesOutput, bool) bool) error ListAttachedRolePoliciesPages(*iam.ListAttachedRolePoliciesInput, func(*iam.ListAttachedRolePoliciesOutput, bool) bool) error DeleteRolePolicy(*iam.DeleteRolePolicyInput) (*iam.DeleteRolePolicyOutput, error) DetachRolePolicy(*iam.DetachRolePolicyInput) (*iam.DetachRolePolicyOutput, error) UpdateAssumeRolePolicy(*iam.UpdateAssumeRolePolicyInput) (*iam.UpdateAssumeRolePolicyOutput, error) AttachRolePolicy(*iam.AttachRolePolicyInput) (*iam.AttachRolePolicyOutput, error) PutRolePolicy(*iam.PutRolePolicyInput) (*iam.PutRolePolicyOutput, error) PutRolePermissionsBoundary(input *iam.PutRolePermissionsBoundaryInput) (*iam.PutRolePermissionsBoundaryOutput, error) DeleteRolePermissionsBoundary(input *iam.DeleteRolePermissionsBoundaryInput) (*iam.DeleteRolePermissionsBoundaryOutput, error) TagRole(input *iam.TagRoleInput) (*iam.TagRoleOutput, error) }
IAM is the interface for the IAM API calls
type STS ¶
type STS interface {
GetCallerIdentity(*sts.GetCallerIdentityInput) (*sts.GetCallerIdentityOutput, error)
}
STS is the interface for the STS API calls
Click to show internal directories.
Click to hide internal directories.