NewMasterKeyWithProfile creates a new MasterKey from an ARN, role, context and awsProfile, setting the creation date to the current date.
(arn string, role string, context map[string]*string, awsProfile string)
| 98 | // NewMasterKeyWithProfile creates a new MasterKey from an ARN, role, context |
| 99 | // and awsProfile, setting the creation date to the current date. |
| 100 | func NewMasterKeyWithProfile(arn string, role string, context map[string]*string, awsProfile string) *MasterKey { |
| 101 | k := NewMasterKey(arn, role, context) |
| 102 | k.AwsProfile = awsProfile |
| 103 | return k |
| 104 | } |
| 105 | |
| 106 | // NewMasterKeyFromArn takes an ARN string and returns a new MasterKey for that |
| 107 | // ARN. |