Vzhledem CfnTopic pomocí AWS CDK pro Python, jak se dá přístup k Tématu ARN atribut? Jsem schopen pro přístup k této nemovitosti pomocí vyšší úrovni Topic
postavit, ale ne nižší úrovni CfnTopic
construct.
from aws_cdk.aws_sns import CfnTopic, Topic
from constructs import Construct
class TopicConstruct(Construct):
def __init__(self, scope: Construct, id: str):
topic = CfnTopic(self, id="Topic") # <- Can't access topic.topic_arn
topic_construct = Topic(self, id="OtherTopic")
topic_construct_arn = topic_construct.topic_arn # <- Can access topic_arn property