我正在使用AWS开发工具包v1(旧产品需要此功能)为安全组添加规则。我的问题是,如果添加描述和IPv6字段,我得到以下响应:
The parameter Description is not recognized
还有
The parameter Ipv6Ranges is not recognized
This is the documentation我跟随构建了请求。 我的代码:
$ec2 = new AmazonEC2();
$response = $ec2->authorize_security_group_ingress([
'GroupId' => $secGrpID,
'IpPermissions' => [
[
'FromPort' => $portNum,
'IpProtocol' => $protocol,
'IpRanges' => [
[
'CidrIp' => '124.25.16.14/13',
'Description' => 'Description V4',
],
],
'Ipv6Ranges' => [
[
'CidrIpv6' => '2001:cdba:0000:0000:0000:0000:3257:9652/128',
'Description' => 'Description V6',
],
],
'ToPort' => $portNum
]
]
]
);
echo "<pre>";
print_r( $response );
echo "</pre>";
那么在构造的请求中我做错了什么地方?