Access
public
Parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
|
Required |
||
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
|---|---|
|
A |
Examples
Modify, describe, and reset network interface attributes.
$ec2 = new AmazonEC2();
###########################################################################
# Modify Network Interface Attribute
$response = $ec2->modify_network_interface_attribute($network_interface_id, array(
'SourceDestCheck.Value' => 'false',
));
var_dump($response->isOK());
###########################################################################
# Describe Network Interface Attributes
$response = $ec2->describe_network_interface_attribute($network_interface_id, array(
'Attribute' => 'sourceDestCheck',
));
var_dump($response->isOK());
###########################################################################
# Reset Network Interface Attribute
$response = $ec2->reset_network_interface_attribute($network_interface_id, array(
'Attribute' => 'sourceDestCheck',
));
var_dump($response->isOK());
sleep(5);
Result:
bool(true) bool(true) bool(true)
Source
Method defined in services/ec2.class.php | Toggle source view (25 lines) | View on GitHub

