This blog post describes a workaround of storing a token as a SSM parameter and then using ssm.StringParameter.valueFromLookup to access the string value.
ssm.StringParameter.valueFromLookup