edit-icon download-icon

ALIYUN::RAM::AccessKey

Last Updated: Jun 13, 2018

The ALIYUN::RAM::AccessKey type is used to obtain the AccessKeyId, AccessKeySecret, and the status of the AccessKey.

Syntax

  1. {
  2. "Type" : "ALIYUN::RAM::AccessKey ",
  3. "Properties" : {
  4. "UserName" : String
  5. }
  6. }

Attributes

Attribute name Type Required Description Constraint
UserName string Yes User name N/A

Return values

Fn::GetAtt

  • AccessKeyId: AccessKey ID.

  • AccessKeySecret: AccessKeySecret.

  • Status: Status of the AccessKey. It can be enabled or disabled.

Example

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "RamAK": {
  5. "Type": "ALIYUN::RAM::AccessKey",
  6. "Properties": {
  7. "UserName": "createdByRos"
  8. }
  9. }
  10. },
  11. "Outputs": {
  12. "AccessKeyId": {
  13. "Value" : {"Fn::GetAtt": ["RamAK", "AccessKeyId"]}
  14. },
  15. "AccessKeySecret": {
  16. "Value" : {"Fn::GetAtt": ["RamAK","AccessKeySecret"]}
  17. }
  18. }
  19. }
Thank you! We've received your feedback.