All Products
Search
Document Center

Resource Orchestration Service:Fn::Base64Decode

Last Updated:Mar 15, 2024

The built-in function Fn::Base64Decode returns a string decoded from a Base64-encoded string.

Declaration

  • JSON

    {"Fn::Base64Decode": "stringToDecode"}
  • YAML

    • Syntax for the full function name:

      Fn::Base64Decode: stringToDecode
    • Syntax for the short form:

      !Base64Decode stringToDecode

Parameters

stringToDecode: the Base64-encoded string that you want to decode.

Return value

The string that is decoded from the Base64-encoded string.

Examples

!Base64Decode QUxJWVVOIFJPUw==
{ "Fn::Base64Decode" : "QUxJWVVOIFJPUw==" }

In this example, ALIYUN ROS is returned.