Documentation ¶
Index ¶
- Constants
- func AttachUserPolicy(svc iamiface.IAMAPI, userName, policyArn *string) error
- func CreateAWSCredentials(values map[string]string) *credentials.Credentials
- func CreateEC2Client(credentials *credentials.Credentials, region string) (*ec2.EC2, error)
- func CreatePolicy(svc iamiface.IAMAPI, policyName, policyDocument, policyDescription *string) (*iam.Policy, error)
- func CreateUserAccessKey(svc iamiface.IAMAPI, userName *string) (*iam.AccessKey, error)
- func DeleteIAMUser(svc iamiface.IAMAPI, userName *string) error
- func DeletePolicy(svc iamiface.IAMAPI, policyArn *string) error
- func DeleteUserAccessKey(svc iamiface.IAMAPI, userName, accessKeyId *string) error
- func DetachUserPolicy(svc iamiface.IAMAPI, userName, policyArn *string) error
- func GetIAMUser(svc iamiface.IAMAPI, userName *string) (*iam.User, error)
- func GetPolicy(svc iamiface.IAMAPI, arn string) (*iam.Policy, error)
- func GetPolicyByName(svc iamiface.IAMAPI, policyName, scope string) (*iam.Policy, error)
- func GetUserAccessKeys(svc iamiface.IAMAPI, userName *string) ([]*iam.AccessKeyMetadata, error)
- func IsUserPolicyAttached(svc iamiface.IAMAPI, userName, policyArn *string) (bool, error)
Constants ¶
const Provider = "amazon"
Variables ¶
This section is empty.
Functions ¶
func AttachUserPolicy ¶
AttachUserPolicy attaches the policy identified by the given arn to the IAM user identified by the given name
func CreateAWSCredentials ¶
func CreateAWSCredentials(values map[string]string) *credentials.Credentials
CreateAWSCredentials create a 'Credentials' instance from secret's values
func CreateEC2Client ¶
func CreateEC2Client(credentials *credentials.Credentials, region string) (*ec2.EC2, error)
CreateEC2Client create a new ec2 instance with the credentials
func CreatePolicy ¶
func CreatePolicy(svc iamiface.IAMAPI, policyName, policyDocument, policyDescription *string) (*iam.Policy, error)
CreatePolicy creates an AWS policy with given name, description and JSON policy document
func CreateUserAccessKey ¶
CreateUserAccessKey create Amazon access key for the IAM user identified by userName
func DeleteIAMUser ¶
DeleteIAMUser deletes the Amazon IAM user with the given name
func DeletePolicy ¶
DeletePolicy deletes the policy identified by the specified arn
func DeleteUserAccessKey ¶
DeleteUserAccessKey deletes the user access key identified by accessKeyId of user identified by userName
func DetachUserPolicy ¶
DetachUserPolicy detaches the access policy identified by policyArn from the IAM User identified by userName
func GetIAMUser ¶
GetIAMUser retrieves the Amazon IAM user with the given user name
func GetPolicyByName ¶
GetPolicyByName retrieves the IAM policy identified by the given policy name
func GetUserAccessKeys ¶
GetUserAccessKeys returns the list of Amazon access keys of the given IAM user
Types ¶
This section is empty.