• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP CFComplexType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中CFComplexType的典型用法代码示例。如果您正苦于以下问题:PHP CFComplexType类的具体用法?PHP CFComplexType怎么用?PHP CFComplexType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了CFComplexType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: create_load_balancer_listeners

	/**
	 *
	 * Creates one or more listeners on a LoadBalancer for the specified port. If a listener with the given port does not already exist, it will
	 * be created; otherwise, the properties of the new listener must match the properties of the existing listener.
	 *
	 * @param string $load_balancer_name (Required) The name of the new LoadBalancer. The name must be unique within your AWS account.
	 * @param array $listeners (Required) A list of <code>LoadBalancerPort</code>, <code>InstancePort</code>, <code>Protocol</code>, and <code>SSLCertificateId</code> items. <ul>
	 * 	<li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
	 * 		<li><code>Protocol</code> - <code>string</code> - Required - Specifies the LoadBalancer transport protocol to use for routing - TCP or HTTP. This property cannot be modified for the life of the LoadBalancer. </li>
	 * 		<li><code>LoadBalancerPort</code> - <code>integer</code> - Required - Specifies the external LoadBalancer port number. This property cannot be modified for the life of the LoadBalancer. </li>
	 * 		<li><code>InstanceProtocol</code> - <code>string</code> - Optional - Specifies the protocol to use for routing traffic to back-end instances - HTTP, HTTPS, TCP, or SSL. This property cannot be modified for the life of the LoadBalancer. If the front-end protocol is HTTP or HTTPS, <code>InstanceProtocol</code> has to be at the same protocol layer, i.e., HTTP or HTTPS. Likewise, if the front-end protocol is TCP or SSL, InstanceProtocol has to be TCP or SSL. If there is another listener with the same <code>InstancePort</code> whose <code>InstanceProtocol</code> is secure, i.e., HTTPS or SSL, the listener's <code>InstanceProtocol</code> has to be secure, i.e., HTTPS or SSL. If there is another listener with the same <code>InstancePort</code> whose <code>InstanceProtocol</code> is HTTP or TCP, the listener's <code>InstanceProtocol</code> must be either HTTP or TCP. </li>
	 * 		<li><code>InstancePort</code> - <code>integer</code> - Required - Specifies the TCP port on which the instance server is listening. This property cannot be modified for the life of the LoadBalancer. </li>
	 * 		<li><code>SSLCertificateId</code> - <code>string</code> - Optional - The ID of the SSL certificate chain to use. For more information on SSL certificates, see Managing Keys and Certificates in the AWS Identity and Access Management documentation. </li>
	 * 	</ul></li>
	 * </ul>
	 * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
	 * 	<li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <code>curl_setopt()</code>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
	 * 	<li><code>returnCurlHandle</code> - <code>boolean</code> - 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.</li></ul>
	 * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
	 */
	public function create_load_balancer_listeners($load_balancer_name, $listeners, $opt = null)
	{
		if (!$opt) $opt = array();
		$opt['LoadBalancerName'] = $load_balancer_name;

		// Required parameter
		$opt = array_merge($opt, CFComplexType::map(array(
			'Listeners' => (is_array($listeners) ? $listeners : array($listeners))
		), 'member'));

		return $this->authenticate('CreateLoadBalancerListeners', $opt, $this->hostname);
	}
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:32,代码来源:elb.class.php


示例2: disable_metrics_collection

 /**
  *
  * Disables monitoring of group metrics for the Auto Scaling group specified in AutoScalingGroupName. You can specify the list of affected
  * metrics with the Metrics parameter.
  *
  * @param string $auto_scaling_group_name (Required) The name or ARN of the Auto Scaling Group.
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
  * 	<li><code>Metrics</code> - <code>string|array</code> - Optional - The list of metrics to disable. If no metrics are specified, all metrics are disabled. The following metrics are supported: <ul> <li>GroupMinSize</li><li>GroupMaxSize</li><li>GroupDesiredCapacity</li><li>GroupInServiceInstances</li><li>GroupPendingInstances</li><li>GroupTerminatingInstances</li><li>GroupTotalInstances</li> </ul>  Pass a string for a single value, or an indexed array for multiple values. </li>
  * 	<li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <code>curl_setopt()</code>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
  * 	<li><code>returnCurlHandle</code> - <code>boolean</code> - 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.</li></ul>
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
  */
 public function disable_metrics_collection($auto_scaling_group_name, $opt = null)
 {
     if (!$opt) {
         $opt = array();
     }
     $opt['AutoScalingGroupName'] = $auto_scaling_group_name;
     // Optional parameter
     if (isset($opt['Metrics'])) {
         $opt = array_merge($opt, CFComplexType::map(array('Metrics' => is_array($opt['Metrics']) ? $opt['Metrics'] : array($opt['Metrics'])), 'member'));
         unset($opt['Metrics']);
     }
     return $this->authenticate('DisableMetricsCollection', $opt, $this->hostname);
 }
开发者ID:janaece,项目名称:globalclassroom4_clean,代码行数:25,代码来源:as.class.php


示例3: update_stack

 /**
  * Updates a stack as specified in the template. After the call completes successfully, the stack
  * update starts. You can check the status of the stack via the <code>DescribeStacks</code>
  * action.
  *  
  * To get a copy of the template for an existing stack, you can use the <code>GetTemplate</code>
  * action.
  *  
  * For more information about creating an update template, updating a stack, and monitoring the
  * progress of the update, see <a href=
  * "http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks.html">
  * Updating a Stack</a>.
  *
  * @param string $stack_name (Required) The name or stack ID of the stack to update. <p class="note">Must contain only alphanumeric characters (case sensitive) and start with an alpha character. Maximum length of the name is 255 characters.</p>
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
  * 	<li><code>TemplateBody</code> - <code>string</code> - Optional - Structure containing the template body. (For more information, go to the <a href="http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">AWS CloudFormation User Guide</a>.) Conditional: You must pass <code>TemplateBody</code> or <code>TemplateURL</code>. If both are passed, only <code>TemplateBody</code> is used.</li>
  * 	<li><code>TemplateURL</code> - <code>string</code> - Optional - Location of file containing the template body. The URL must point to a template located in an S3 bucket in the same region as the stack. For more information, go to the <a href="http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide">AWS CloudFormation User Guide</a>. Conditional: You must pass <code>TemplateURL</code> or <code>TemplateBody</code>. If both are passed, only <code>TemplateBody</code> is used.</li>
  * 	<li><code>Parameters</code> - <code>array</code> - Optional - A list of <code>Parameter</code> structures that specify input parameters for the stack. <ul>
  * 		<li><code>x</code> - <code>array</code> - Optional - This represents a simple array index. <ul>
  * 			<li><code>ParameterKey</code> - <code>string</code> - Optional - The key associated with the parameter.</li>
  * 			<li><code>ParameterValue</code> - <code>string</code> - Optional - The value associated with the parameter.</li>
  * 		</ul></li>
  * 	</ul></li>
  * 	<li><code>Capabilities</code> - <code>string|array</code> - Optional - The list of capabilities that you want to allow in the stack. If your stack contains IAM resources, you must specify the CAPABILITY_IAM value for this parameter; otherwise, this action returns an InsufficientCapabilities error. IAM resources are the following: <a href="http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html">AWS::IAM::AccessKey</a>, <a href="http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html">AWS::IAM::Group</a>, <a href="http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html">AWS::IAM::Policy</a>, <a href="http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html">AWS::IAM::User</a>, and <a href="http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html">AWS::IAM::UserToGroupAddition</a>. Pass a string for a single value, or an indexed array for multiple values.</li>
  * 	<li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <code>curl_setopt()</code>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
  * 	<li><code>returnCurlHandle</code> - <code>boolean</code> - 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.</li></ul>
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
  */
 public function update_stack($stack_name, $opt = null)
 {
     if (!$opt) {
         $opt = array();
     }
     $opt['StackName'] = $stack_name;
     // Optional list + map
     if (isset($opt['Parameters'])) {
         $opt = array_merge($opt, CFComplexType::map(array('Parameters' => $opt['Parameters']), 'member'));
         unset($opt['Parameters']);
     }
     // Optional list (non-map)
     if (isset($opt['Capabilities'])) {
         $opt = array_merge($opt, CFComplexType::map(array('Capabilities' => is_array($opt['Capabilities']) ? $opt['Capabilities'] : array($opt['Capabilities'])), 'member'));
         unset($opt['Capabilities']);
     }
     return $this->authenticate('UpdateStack', $opt);
 }
开发者ID:electricretina,项目名称:cicbase,代码行数:46,代码来源:cloudformation.class.php


示例4: set_queue_attributes

 /**
  * Sets the value of one or more queue attributes. Valid attributes that can be set are
  * [VisibilityTimeout, Policy, MaximumMessageSize, MessageRetentionPeriod,
  * ReceiveMessageWaitTimeSeconds].
  *
  * @param string $queue_url (Required) The URL of the SQS queue to take action on.
  * @param array $attribute (Required) A map of attributes to set. <ul>
  * 	<li><code>x</code> - <code>array</code> - Optional - This represents a simple array index. <ul>
  * 		<li><code>Name</code> - <code>string</code> - Optional - The name of a queue attribute. [Allowed values: <code>Policy</code>, <code>VisibilityTimeout</code>, <code>MaximumMessageSize</code>, <code>MessageRetentionPeriod</code>, <code>ApproximateNumberOfMessages</code>, <code>ApproximateNumberOfMessagesNotVisible</code>, <code>CreatedTimestamp</code>, <code>LastModifiedTimestamp</code>, <code>QueueArn</code>, <code>ApproximateNumberOfMessagesDelayed</code>, <code>DelaySeconds</code>, <code>ReceiveMessageWaitTimeSeconds</code>]</li>
  * 		<li><code>Value</code> - <code>string</code> - Optional - The value of a queue attribute.</li>
  * 	</ul></li>
  * </ul>
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
  * 	<li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <code>curl_setopt()</code>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
  * 	<li><code>returnCurlHandle</code> - <code>boolean</code> - 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.</li></ul>
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
  */
 public function set_queue_attributes($queue_url, $attribute, $opt = null)
 {
     if (!$opt) {
         $opt = array();
     }
     $opt['QueueUrl'] = $queue_url;
     // Required map (non-list)
     $opt = array_merge($opt, CFComplexType::map(array('Attribute' => is_array($attribute) ? $attribute : array($attribute))));
     return $this->authenticate('SetQueueAttributes', $opt);
 }
开发者ID:anil-kodali,项目名称:aws-sdk-for-php,代码行数:27,代码来源:sqs.class.php


示例5: validate_configuration_settings

 /**
  * 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.
  *
  * @param string $application_name (Required) The name of the application that the configuration template or environment belongs to.
  * @param array $option_settings (Required) A list of the options and desired values to evaluate. <ul>
  * 	<li><code>x</code> - <code>array</code> - Optional - This represents a simple array index. <ul>
  * 		<li><code>Namespace</code> - <code>string</code> - Optional - A unique namespace identifying the option's associated AWS resource.</li>
  * 		<li><code>OptionName</code> - <code>string</code> - Optional - The name of the configuration option.</li>
  * 		<li><code>Value</code> - <code>string</code> - Optional - The current value for the configuration option.</li>
  * 	</ul></li>
  * </ul>
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
  * 	<li><code>TemplateName</code> - <code>string</code> - Optional - The name of the configuration template to validate the settings against. Condition: You cannot specify both this and an environment name.</li>
  * 	<li><code>EnvironmentName</code> - <code>string</code> - Optional - The name of the environment to validate the settings against. Condition: You cannot specify both this and a configuration template name.</li>
  * 	<li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <code>curl_setopt()</code>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
  * 	<li><code>returnCurlHandle</code> - <code>boolean</code> - 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.</li></ul>
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
  */
 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);
 }
开发者ID:hscale,项目名称:webento,代码行数:32,代码来源:elasticbeanstalk.class.php


示例6: add_permission

 /**
  * The AddPermission action adds a statement to a topic's access control policy, granting access
  * for the specified AWS accounts to the specified actions.
  *
  * @param string $topic_arn (Required) The ARN of the topic whose access control policy you wish to modify.
  * @param string $label (Required) A unique identifier for the new policy statement.
  * @param string|array $aws_account_id (Required) The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service. Pass a string for a single value, or an indexed array for multiple values.
  * @param string|array $action_name (Required) The action you want to allow for the specified principal(s). Valid values: any Amazon SNS action name. Pass a string for a single value, or an indexed array for multiple values.
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
  * 	<li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <code>curl_setopt()</code>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
  * 	<li><code>returnCurlHandle</code> - <code>boolean</code> - 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.</li></ul>
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
  */
 public function add_permission($topic_arn, $label, $aws_account_id, $action_name, $opt = null)
 {
     if (!$opt) {
         $opt = array();
     }
     $opt['TopicArn'] = $topic_arn;
     $opt['Label'] = $label;
     // Required list (non-map)
     $opt = array_merge($opt, CFComplexType::map(array('AWSAccountId' => is_array($aws_account_id) ? $aws_account_id : array($aws_account_id)), 'member'));
     // Required list (non-map)
     $opt = array_merge($opt, CFComplexType::map(array('ActionName' => is_array($action_name) ? $action_name : array($action_name)), 'member'));
     return $this->authenticate('AddPermission', $opt);
 }
开发者ID:jimlongo56,项目名称:bhouse,代码行数:26,代码来源:sns.class.php


示例7: describe_rank_expressions

 /**
  * Gets the rank expressions configured for the search domain. Can be limited to specific rank
  * expressions by name. Shows all rank expressions by default.
  *
  * @param string $domain_name (Required) A string that represents the name of a domain. Domain names must be unique across the domains owned by an account within an AWS region. Domain names must start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen). Uppercase letters and underscores are not allowed. [Constraints: The value must be between 3 and 28 characters, and must match the following regular expression pattern: <code>[a-z][a-z0-9\-]+</code>]
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
  * 	<li><code>RankNames</code> - <code>string|array</code> - Optional - Limits the <code>DescribeRankExpressions</code> response to the specified fields. Pass a string for a single value, or an indexed array for multiple values.</li>
  * 	<li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <code>curl_setopt()</code>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
  * 	<li><code>returnCurlHandle</code> - <code>boolean</code> - 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.</li></ul>
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
  */
 public function describe_rank_expressions($domain_name, $opt = null)
 {
     if (!$opt) {
         $opt = array();
     }
     $opt['DomainName'] = $domain_name;
     // Optional list (non-map)
     if (isset($opt['RankNames'])) {
         $opt = array_merge($opt, CFComplexType::map(array('RankNames' => is_array($opt['RankNames']) ? $opt['RankNames'] : array($opt['RankNames'])), 'member'));
         unset($opt['RankNames']);
     }
     return $this->authenticate('DescribeRankExpressions', $opt);
 }
开发者ID:electricretina,项目名称:cicbase,代码行数:24,代码来源:cloudsearch.class.php


示例8: send_raw_email

 /**
  *
  * Sends an email message, with header and content specified by the client. The <code>SendRawEmail</code> action is useful for sending
  * multipart MIME emails. The raw text of the message must comply with Internet email standards; otherwise, the message cannot be sent.
  *
  * If you have not yet requested production access to Amazon SES, then you will only be able to send email to and from verified email
  * addresses. For more information, go to the <a href="http://docs.amazonwebservices.com/ses/latest/DeveloperGuide">Amazon SES Developer
  * Guide</a>.
  *
  * @param array $raw_message (Required) The raw text of the message. The client is responsible for ensuring the following: <ul> <li>Message must contain a header and a body, separated by a blank line.</li><li>All required header fields must be present.</li><li>Each part of a multipart MIME message must be formatted properly.</li><li>MIME content types must be among those supported by Amazon SES. Refer to the Amazon SES Developer Guide for more details.</li><li>Content must be base64-encoded, if MIME requires it.</li> </ul> <ul>
  * 	<li><code>Data</code> - <code>blob</code> - Required - The raw data of the message. The client must ensure that the message format complies with Internet email standards regarding email header fields, MIME types, MIME encoding, and base64 encoding (if necessary). For more information, go to the Amazon SES Developer Guide. </li>
  * </ul>
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
  * 	<li><code>Source</code> - <code>string</code> - Optional - The sender's email address. If you specify the <code>Source</code> parameter, then bounce notifications and complaints will be sent to this email address. This takes precedence over any <i>Return-Path</i> header that you might include in the raw text of the message. </li>
  * 	<li><code>Destinations</code> - <code>string|array</code> - Optional - A list of destinations for the message.  Pass a string for a single value, or an indexed array for multiple values. </li>
  * 	<li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <code>curl_setopt()</code>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
  * 	<li><code>returnCurlHandle</code> - <code>boolean</code> - 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.</li></ul>
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
  */
 public function send_raw_email($raw_message, $opt = null)
 {
     if (!$opt) {
         $opt = array();
     }
     // Optional parameter
     if (isset($opt['Destinations'])) {
         $opt = array_merge($opt, CFComplexType::map(array('Destinations' => is_array($opt['Destinations']) ? $opt['Destinations'] : array($opt['Destinations'])), 'member'));
         unset($opt['Destinations']);
     }
     // Required parameter
     $opt = array_merge($opt, CFComplexType::map(array('RawMessage' => is_array($raw_message) ? $raw_message : array($raw_message)), 'member'));
     return $this->authenticate('SendRawEmail', $opt, $this->hostname, 3);
 }
开发者ID:janaece,项目名称:globalclassroom4_clean,代码行数:33,代码来源:ses.class.php


示例9: reset_cache_parameter_group

 /**
  * Modifies the parameters of a CacheParameterGroup to the engine or system default value. To
  * reset specific parameters submit a list of the parameter names. To reset the entire
  * CacheParameterGroup, specify the CacheParameterGroup name and ResetAllParameters parameters.
  *
  * @param string $cache_parameter_group_name (Required) The name of the Cache Parameter Group.
  * @param array $parameter_name_values (Required) An array of parameter names which should be reset. If not resetting the entire CacheParameterGroup, at least one parameter name must be supplied. <ul>
  * 	<li><code>x</code> - <code>array</code> - Optional - This represents a simple array index. <ul>
  * 		<li><code>ParameterName</code> - <code>string</code> - Optional - Specifies the name of the parameter.</li>
  * 		<li><code>ParameterValue</code> - <code>string</code> - Optional - Specifies the value of the parameter.</li>
  * 	</ul></li>
  * </ul>
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
  * 	<li><code>ResetAllParameters</code> - <code>boolean</code> - Optional - Specifies whether (<em>true</em>) or not (<em>false</em>) to reset all parameters in the Cache Parameter Group to default values.</li>
  * 	<li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <code>curl_setopt()</code>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
  * 	<li><code>returnCurlHandle</code> - <code>boolean</code> - 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.</li></ul>
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
  */
 public function reset_cache_parameter_group($cache_parameter_group_name, $parameter_name_values, $opt = null)
 {
     if (!$opt) {
         $opt = array();
     }
     $opt['CacheParameterGroupName'] = $cache_parameter_group_name;
     // Required list + map
     $opt = array_merge($opt, CFComplexType::map(array('ParameterNameValues' => is_array($parameter_name_values) ? $parameter_name_values : array($parameter_name_values)), 'member'));
     return $this->authenticate('ResetCacheParameterGroup', $opt);
 }
开发者ID:askzap,项目名称:ultimate,代码行数:28,代码来源:elasticache.class.php


示例10: modify_db_parameter_group

 /**
  *
  * Modifies the parameters of a DBParameterGroup. To modify more than one parameter submit a list of the following: ParameterName,
  * ParameterValue, and ApplyMethod. A maximum of 20 parameters can be modified in a single request.
  *
  * @param string $db_parameter_group_name (Required) The name of the database parameter group. Constraints: <ul> <li>Must be the name of an existing database parameter group</li><li>Must be 1 to 255 alphanumeric characters</li><li>First character must be a letter</li><li>Cannot end with a hyphen or contain two consecutive hyphens</li> </ul>
  * @param array $parameters (Required) An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters may be modified in a single request. Valid Values (for the application method): <code>immediate | pending-reboot</code> You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when DB Instance reboots. <ul>
  * 	<li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
  * 		<li><code>ParameterName</code> - <code>string</code> - Optional - Specifies the name of the parameter. </li>
  * 		<li><code>ParameterValue</code> - <code>string</code> - Optional - Specifies the value of the parameter. </li>
  * 		<li><code>Description</code> - <code>string</code> - Optional - Provides a description of the parameter. </li>
  * 		<li><code>Source</code> - <code>string</code> - Optional - Indicates the source of the parameter value. </li>
  * 		<li><code>ApplyType</code> - <code>string</code> - Optional - Specifies the engine specific parameters type. </li>
  * 		<li><code>DataType</code> - <code>string</code> - Optional - Specifies the valid data type for the parameter. </li>
  * 		<li><code>AllowedValues</code> - <code>string</code> - Optional - Specifies the valid range of values for the parameter. </li>
  * 		<li><code>IsModifiable</code> - <code>boolean</code> - Optional - Indicates whether (<code>true</code>) or not (<code>false</code>) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed. </li>
  * 		<li><code>MinimumEngineVersion</code> - <code>string</code> - Optional - The earliest engine version to which the parameter can apply. </li>
  * 		<li><code>ApplyMethod</code> - <code>string</code> - Optional - Indicates when to apply parameter updates. [Allowed values: <code>immediate</code>, <code>pending-reboot</code>]</li>
  * 	</ul></li>
  * </ul>
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
  * 	<li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <code>curl_setopt()</code>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
  * 	<li><code>returnCurlHandle</code> - <code>boolean</code> - 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.</li></ul>
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
  */
 public function modify_db_parameter_group($db_parameter_group_name, $parameters, $opt = null)
 {
     if (!$opt) {
         $opt = array();
     }
     $opt['DBParameterGroupName'] = $db_parameter_group_name;
     // Required parameter
     $opt = array_merge($opt, CFComplexType::map(array('Parameters' => is_array($parameters) ? $parameters : array($parameters)), 'member'));
     return $this->authenticate('ModifyDBParameterGroup', $opt, $this->hostname);
 }
开发者ID:ChrstnMgcn,项目名称:revolution,代码行数:35,代码来源:rds.class.php


示例11: reboot_cache_cluster

 /**
  *
  * The RebootCacheCluster API reboots some (or all) of the cache cluster nodes within a previously provisioned ElastiCache cluster. This API
  * results in the application of modified CacheParameterGroup parameters to the cache cluster. This action is taken as soon as possible, and
  * results in a momentary outage to the cache cluster during which the cache cluster status is set to rebooting. During that momentary outage
  * the contents of the cache (for each cache cluster node being rebooted) are lost. A CacheCluster event is created when the reboot is
  * completed.
  *
  * @param string $cache_cluster_id (Required) The Cache Cluster identifier. This parameter is stored as a lowercase string.
  * @param string|array $cache_node_ids_to_reboot (Required) A list of Cache Cluster Node ids to reboot. To reboot an entire cache cluster, specify all cache cluster node ids.  Pass a string for a single value, or an indexed array for multiple values.
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
  * 	<li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <code>curl_setopt()</code>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
  * 	<li><code>returnCurlHandle</code> - <code>boolean</code> - 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.</li></ul>
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
  */
 public function reboot_cache_cluster($cache_cluster_id, $cache_node_ids_to_reboot, $opt = null)
 {
     if (!$opt) {
         $opt = array();
     }
     $opt['CacheClusterId'] = $cache_cluster_id;
     // Required parameter
     $opt = array_merge($opt, CFComplexType::map(array('CacheNodeIdsToReboot' => is_array($cache_node_ids_to_reboot) ? $cache_node_ids_to_reboot : array($cache_node_ids_to_reboot)), 'member'));
     return $this->authenticate('RebootCacheCluster', $opt, $this->hostname);
 }
开发者ID:ChrstnMgcn,项目名称:revolution,代码行数:25,代码来源:elasticache.class.php


示例12: create_stack

 /**
  *
  * Creates a stack as specified in the template. Once the call completes successfully, the stack creation starts. You can check the status of
  * the stack via the DescribeStacks API.
  *
  * Currently, the limit for stacks is 20 stacks per account per region.
  *
  * @param string $stack_name (Required) The name associated with the stack. The name must be unique within your AWS account. Must contain only alphanumeric characters (case sensitive) and start with an alpha character. Maximum length of the name is 255 characters.
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
  * 	<li><code>TemplateBody</code> - <code>string</code> - Optional - Structure containing the template body. (For more information, go to the AWS CloudFormation User Guide.) Condition: You must pass <code>TemplateBody</code> or <code>TemplateURL</code>. If both are passed, only <code>TemplateBody</code> is used. </li>
  * 	<li><code>TemplateURL</code> - <code>string</code> - Optional - Location of file containing the template body. The URL must point to a template located in an S3 bucket in the same region as the stack. For more information, go to the AWS CloudFormation User Guide. Conditional: You must pass <code>TemplateURL</code> or <code>TemplateBody</code>. If both are passed, only <code>TemplateBody</code> is used. </li>
  * 	<li><code>Parameters</code> - <code>array</code> - Optional - A list of <code>Parameter</code> structures. <ul>
  * 		<li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
  * 			<li><code>ParameterKey</code> - <code>string</code> - Optional - The key associated with the parameter. </li>
  * 			<li><code>ParameterValue</code> - <code>string</code> - Optional - The value associated with the parameter. </li>
  * 		</ul></li>
  * 	</ul></li>
  * 	<li><code>DisableRollback</code> - <code>boolean</code> - Optional - Boolean to enable or disable rollback on stack creation failures.<br></br> Default: <code>false</code> </li>
  * 	<li><code>TimeoutInMinutes</code> - <code>integer</code> - Optional - The amount of time that can pass before the stack status becomes CREATE_FAILED; if <code>DisableRollback</code> is not set or is set to <code>false</code>, the stack will be rolled back. </li>
  * 	<li><code>NotificationARNs</code> - <code>string|array</code> - Optional - The Simple Notification Service (SNS) topic ARNs to publish stack related events. You can find your SNS topic ARNs using the SNS console or your Command Line Interface (CLI).  Pass a string for a single value, or an indexed array for multiple values. </li>
  * 	<li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
  * 	<li><code>returnCurlHandle</code> - <code>boolean</code> - 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.</li></ul>
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
  */
 public function create_stack($stack_name, $opt = null)
 {
     if (!$opt) {
         $opt = array();
     }
     $opt['StackName'] = $stack_name;
     // Optional parameter
     if (isset($opt['Parameters'])) {
         $opt = array_merge($opt, CFComplexType::map(array('Parameters' => $opt['Parameters']), 'member'));
         unset($opt['Parameters']);
     }
     // Optional parameter
     if (isset($opt['NotificationARNs'])) {
         $opt = array_merge($opt, CFComplexType::map(array('NotificationARNs' => is_array($opt['NotificationARNs']) ? $opt['NotificationARNs'] : array($opt['NotificationARNs'])), 'member'));
         unset($opt['NotificationARNs']);
     }
     return $this->authenticate('CreateStack', $opt, $this->hostname);
 }
开发者ID:risyasin,项目名称:webpagetest,代码行数:42,代码来源:cloudformation.class.php


示例13: get_attributes

 /**
  * Method: get_attributes()
  * 	Returns all of the attributes associated with the item. Optionally, the attributes returned can be
  * 	limited to one or more specified attribute name parameters.
  *
  * 	If the item does not exist on the replica that was accessed for this operation, an empty set is
  * 	returned. The system does not return an error as it cannot guarantee the item does not exist on
  * 	other replicas.
  *
  * 	If you specify GetAttributes without any attribute names, all the attributes for the item are
  * 	returned.
  *
  * Access:
  * 	public
  *
  * Parameters:
  * 	$domain_name - _string_ (Required) The name of the domain in which to perform the operation.
  * 	$item_name - _string_ (Required) The name of the base item which will contain the series of keypairs.
  * 	$attribute_name - _string_|_array_ (Optional) The names of the attributes. Pass a string for a single value, or an indexed array for multiple values..
  * 	$opt - _array_ (Optional) Associative array of parameters which can have the following keys:
  *
  * Keys for the $opt parameter:
  * 	ConsistentRead - _boolean_ (Optional) True if strong consistency should be enforced when data is read from SimpleDB, meaning that any data previously written to SimpleDB will be returned. Without specifying this parameter, results will be eventually consistent, and you may not see data that was written immediately before your read.
  * 	returnCurlHandle - _boolean_ (Optional) A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.
  *
  * Returns:
  * 	_CFResponse_ A <CFResponse> object containing a parsed HTTP response.
  */
 public function get_attributes($domain_name, $item_name, $attribute_name = null, $opt = null)
 {
     if (!$opt) {
         $opt = array();
     }
     $opt['DomainName'] = $domain_name;
     $opt['ItemName'] = $item_name;
     if ($attribute_name) {
         $opt = array_merge($opt, CFComplexType::map(array('AttributeName' => is_array($attribute_name) ? $attribute_name : array($attribute_name))));
     }
     return $this->authenticate('GetAttributes', $opt, $this->hostname);
 }
开发者ID:Webbiker,项目名称:Klompenschuurtje,代码行数:40,代码来源:sdb.class.php


示例14: put_metric_data

 /**
  * Publishes metric data points to Amazon CloudWatch. Amazon Cloudwatch associates the data points
  * with the specified metric. If the specified metric does not exist, Amazon CloudWatch creates
  * the metric.
  * 
  * <p class="note">
  * If you create a metric with the <code>PutMetricData</code> action, allow up to fifteen minutes
  * for the metric to appear in calls to the <code>ListMetrics</code> action.
  * </p> 
  * The size of aPutMetricDatarequest is limited to 8 KB for HTTP GET requests and 40 KB for HTTP
  * POST requests.
  * 
  * <p class="important">
  * Although the <code>Value</code> parameter accepts numbers of type <code>Double</code>, Amazon
  * CloudWatch truncates values with very large exponents. Values with base-10 exponents greater
  * than 126 (1 x 10^126) are truncated. Likewise, values with base-10 exponents less than -130 (1
  * x 10^-130) are also truncated.
  * </p>
  *
  * @param string $namespace (Required) The namespace for the metric data. <p class="note">You cannot specify a namespace that begins with "AWS/". Namespaces that begin with "AWS/" are reserved for other Amazon Web Services products that send metrics to Amazon CloudWatch.</p> [Constraints: The value must be between 1 and 255 characters, and must match the following regular expression pattern: <code>[^:].*</code>]
  * @param array $metric_data (Required) A list of data describing the metric. <ul>
  * 	<li><code>x</code> - <code>array</code> - Optional - This represents a simple array index. <ul>
  * 		<li><code>MetricName</code> - <code>string</code> - Required - The name of the metric.</li>
  * 		<li><code>Dimensions</code> - <code>array</code> - Optional - A list of dimensions associated with the metric. <ul>
  * 			<li><code>x</code> - <code>array</code> - Optional - This represents a simple array index. <ul>
  * 				<li><code>Name</code> - <code>string</code> - Required - The name of the dimension.</li>
  * 				<li><code>Value</code> - <code>string</code> - Required - The value representing the dimension measurement</li>
  * 			</ul></li>
  * 		</ul></li>
  * 		<li><code>Timestamp</code> - <code>string</code> - Optional - The time stamp used for the metric. If not specified, the default value is set to the time the metric data was received. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
  * 		<li><code>Value</code> - <code>double</code> - Optional - The value for the metric. <p class="important">Although the <code>Value</code> parameter accepts numbers of type <code>Double</code>, Amazon CloudWatch truncates values with ve 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP CFRuntime类代码示例发布时间:2022-05-23
下一篇:
PHP CF7DBPlugin类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap