示例#1
0
    def describe_configuration_options(self, 
                                       application_name = None, 
                                       environment_name = None, 
                                       template = None,
                                       solution_stack = None,
                                       options = None,
                                       ):
        request = Request()
        request.set_operation('DescribeConfigurationOptions')
        if application_name is not None:
            request.set_app_name(application_name)
        if environment_name is not None:
            request.set_env_name(environment_name)
        if template is not None:
            request.set_template(template)
        if solution_stack is not None:
            request.set_solution_stack(solution_stack)
        if options is not None and len(options) > 0:
            request.set_options(options)
        
        try:    
            response = self.call(request)
        except:
            raise

        options = response['DescribeConfigurationOptionsResponse']\
            ['DescribeConfigurationOptionsResult']['Options']
        request_id = response['DescribeConfigurationOptionsResponse']\
            ['ResponseMetadata']['RequestId']

        option_descriptions = set()
        for option in options:
            option_descriptions.add(ConfigurationOptionDescription.from_json(option))
        return Response(request_id, option_descriptions)
示例#2
0
    def describe_configuration_options(self, 
                                       application_name = None, 
                                       environment_name = None, 
                                       template = None,
                                       solution_stack = None,
                                       options = None,
                                       ):
        request = Request()
        request.set_operation(u'DescribeConfigurationOptions')
        if application_name is not None:
            request.set_app_name(application_name)
        if environment_name is not None:
            request.set_env_name(environment_name)
        if template is not None:
            request.set_template(template)
        if solution_stack is not None:
            request.set_solution_stack(solution_stack)
        if options is not None and len(options) > 0:
            request.set_options(options)
        
        try:    
            response = self.call(request)
        except:
            raise

        options = response[u'DescribeConfigurationOptionsResponse']\
            [u'DescribeConfigurationOptionsResult'][u'Options']
        request_id = response[u'DescribeConfigurationOptionsResponse']\
            [u'ResponseMetadata'][u'RequestId']

        option_descriptions = set()
        for option in options:
            option_descriptions.add(ConfigurationOptionDescription.from_json(option))
        return Response(request_id, option_descriptions)
示例#3
0
    def describe_configuration_options(self,
                                       application_name=None,
                                       environment_name=None,
                                       template=None,
                                       solution_stack=None,
                                       version_label=None,
                                       options=None,
                                       option_remove=None,
                                       template_specification=None):
        request = Request()
        request.set_operation('DescribeConfigurationOptions')
        if application_name is not None:
            request.set_app_name(application_name)
        if solution_stack is not None:
            request.set_solution_stack(solution_stack)
        if environment_name is not None:
            request.set_env_name(environment_name)
        if template is not None:
            request.set_template(template)
        if version_label is not None:
            request.set_version_label(version_label)
        if options is not None:
            request.set_options(options)
        if option_remove is not None:
            request.set_options_to_remove(option_remove)
        if template_specification is not None:
            request.set_template_specification(template_specification)

        try:
            response = self.call(request)
        except:
            raise

        options = response['DescribeConfigurationOptionsResponse']\
            ['DescribeConfigurationOptionsResult']['Options']
        request_id = response['DescribeConfigurationOptionsResponse']\
            ['ResponseMetadata']['RequestId']

        option_descriptions = list()
        for option in options:
            option_descriptions.append(
                ConfigurationOptionDescription.from_json(option))
        return Response(request_id, option_descriptions)
    def describe_configuration_options(self, 
                                       application_name = None, 
                                       environment_name = None, 
                                       template = None,
                                       solution_stack = None,
                                       version_label = None,
                                       options = None, 
                                       option_remove = None,
                                       template_specification = None):
        request = Request()
        request.set_operation('DescribeConfigurationOptions')
        if application_name is not None:
            request.set_app_name(application_name)
        if solution_stack is not None:
            request.set_solution_stack(solution_stack)
        if environment_name is not None:
            request.set_env_name(environment_name)
        if template is not None:
            request.set_template(template)
        if version_label is not None:
            request.set_version_label(version_label)
        if options is not None:
            request.set_options(options)
        if option_remove is not None: 
            request.set_options_to_remove(option_remove)
        if template_specification is not None: 
            request.set_template_specification(template_specification)     
        
        try:    
            response = self.call(request)
        except:
            raise

        options = response['DescribeConfigurationOptionsResponse']\
            ['DescribeConfigurationOptionsResult']['Options']
        request_id = response['DescribeConfigurationOptionsResponse']\
            ['ResponseMetadata']['RequestId']

        option_descriptions = list()
        for option in options:
            option_descriptions.append(ConfigurationOptionDescription.from_json(option))
        return Response(request_id, option_descriptions)