validate_configuration_settings ( $application_name, $option_settings, $opt )

Takes a set of configuration settings and either a configuration template or environment, and determines whether those values are valid.

This action returns a list of messages indicating any errors or warnings associated with the selection of option values.

Access

public

Parameters

Parameter

Type

Required

Description

$application_name

string

Required

The name of the application that the configuration template or environment belongs to.

$option_settings

array

Required

A list of the options and desired values to evaluate.

  • x - array - Optional - This represents a simple array index.
    • Namespace - string - Optional - A unique namespace identifying the option’s associated AWS resource.
    • OptionName - string - Optional - The name of the configuration option.
    • Value - string - Optional - The current value for the configuration option.

$opt

array

Optional

An associative array of parameters that can have the following keys:

  • TemplateName - string - Optional - The name of the configuration template to validate the settings against. Condition: You cannot specify both this and an environment name.
  • EnvironmentName - string - Optional - The name of the environment to validate the settings against. Condition: You cannot specify both this and a configuration template name.
  • curlopts - array - Optional - A set of values to pass directly into curl_setopt(), where the key is a pre-defined CURLOPT_* constant.
  • returnCurlHandle - boolean - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.

Returns

Type

Description

CFResponse

A CFResponse object containing a parsed HTTP response.

Related Methods

Source

Method defined in services/elasticbeanstalk.class.php | Toggle source view (12 lines) | View on GitHub

public function validate_configuration_settings($application_name, $option_settings, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['ApplicationName'] = $application_name;
    
    // Required list + map
    $opt = array_merge($opt, CFComplexType::map(array(
        'OptionSettings' => (is_array($option_settings) ? $option_settings : array($option_settings))
    ), 'member'));

    return $this->authenticate('ValidateConfigurationSettings', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback