def __init__(self):
        """
        Initialize the plugin
        """
        super(ImplicitApiPlugin, self).__init__(ImplicitApiPlugin.__name__)

        self.implicit_api_logical_id = GeneratedLogicalId.implicit_api()
        self.existing_implicit_api_resource = None
    def __init__(self):
        """
        Initialize the plugin
        """
        super(ImplicitApiPlugin, self).__init__(ImplicitApiPlugin.__name__)

        self.implicit_api_logical_id = GeneratedLogicalId.implicit_api()
        self.existing_implicit_api_resource = None
 def _setup_api_properties(self):
     """
     Sets up properties that are distinct to this plugin
     """
     self.implicit_api_logical_id = GeneratedLogicalId.implicit_api()
     self.implicit_api_condition = "ServerlessRestApiCondition"
     self.api_event_type = "Api"
     self.api_type = SamResourceType.Api.value
     self.api_id_property = "RestApiId"
     self.editor = SwaggerEditor
    def __init__(self):
        """
        Initialize the plugin
        """
        super(ImplicitApiPlugin, self).__init__(ImplicitApiPlugin.__name__)

        self.implicit_api_logical_id = GeneratedLogicalId.implicit_api()
        self.existing_implicit_api_resource = None
        # dict containing condition (or None) for each resource path+method for all APIs. dict format:
        # {api_id: {path: {method: condition_name_or_None}}}
        self.api_conditions = {}
        self.implicit_api_condition = 'ServerlessRestApiCondition'
Exemple #5
0
    def __init__(self):
        """
        Initialize the plugin
        """
        super(ImplicitApiPlugin, self).__init__(ImplicitApiPlugin.__name__)

        self.implicit_api_logical_id = GeneratedLogicalId.implicit_api()
        self.existing_implicit_api_resource = None
        # dict containing condition (or None) for each resource path+method for all APIs. dict format:
        # {api_id: {path: {method: condition_name_or_None}}}
        self.api_conditions = {}
        self.implicit_api_condition = 'ServerlessRestApiCondition'