Пример #1
0
 def get_cfn_attribute(self, attribute_name):
     from moto.cloudformation.exceptions import UnformattedGetAttTemplateException
     if attribute_name == 'Arn':
         return self.arn
     raise UnformattedGetAttTemplateException()
 def Firehose_get_cfn_attribute(self, attribute_name):
     if attribute_name == 'Arn':
         return aws_stack.firehose_stream_arn(
             self.params.get('DeliveryStreamName'))
     raise UnformattedGetAttTemplateException()
    def Kinesis_Stream_get_cfn_attribute(self, attribute_name):
        if attribute_name == 'Arn':
            return self.arn

        raise UnformattedGetAttTemplateException()
Пример #4
0
 def get_cfn_attribute(self, attribute_name):
     from moto.cloudformation.exceptions import UnformattedGetAttTemplateException
     if attribute_name == 'Arn':
         raise NotImplementedError('"Fn::GetAtt" : [ "{0}" , "Arn" ]"')
     raise UnformattedGetAttTemplateException()
Пример #5
0
 def get_cfn_attribute(self, attribute_name):
     from moto.cloudformation.exceptions import UnformattedGetAttTemplateException
     if attribute_name == 'SecretAccessKey':
         return self.secret_access_key
     raise UnformattedGetAttTemplateException()
Пример #6
0
    def get_cfn_attribute(self, attribute_name):
        from moto.cloudformation.exceptions import UnformattedGetAttTemplateException

        if attribute_name == "Arn":
            return make_function_arn(self.region, ACCOUNT_ID, self.function_name)
        raise UnformattedGetAttTemplateException()
Пример #7
0
    def get_cfn_attribute(self, attribute_name):
        from moto.cloudformation.exceptions import UnformattedGetAttTemplateException

        if attribute_name == "AllocationId":
            return self.allocation_id
        raise UnformattedGetAttTemplateException()
Пример #8
0
 def get_cfn_attribute(self, attribute_name):
     if attribute_name == 'Endpoint.Address':
         return self.address
     elif attribute_name == 'Endpoint.Port':
         return self.port
     raise UnformattedGetAttTemplateException()