0
change_resource_record_setsメソッドを使用する必要があります。しかし、私はどのようなパラメーターを提供していますか?誰にも例がありますか?Ruby SDKを使用してRoute53からCNAMEレコードを削除するには
route53.change_resource_record_sets(
{
hosted_zone_id: "/hostedzone/EXAMPLEID",
change_batch: {
changes: [
{
action: "DELETE",
resource_record_set: {
name: "r9i.staging.example.com.",
type: "CNAME",
resource_records: [
{ value: "other.example.io" }
],
alias_target: nil
}
}
]
}
})
戻り値:
Aws::Route53::Errors::InvalidInput: Invalid request
from /Users/amir/.rvm/gems/ruby-2.2.1/gems/aws-sdk-core-
2.2.3/lib/seahorse/client/plugins/raise_response_errors.rb:15:in
`call'
from /Users/amir/.rvm/gems/ruby-2.2.1/gems/aws-sdk-core-
2.2.3/lib/aws-sdk-core/plugins/param_converter.rb:20:in `call'
from /Users/amir/.rvm/gems/ruby-2.2.1/gems/aws-sdk-core-
2.2.3/lib/seahorse/client/plugins/response_target.rb:21:in `call'
from /Users/amir/.rvm/gems/ruby-2.2.1/gems/aws-sdk-core-
2.2.3/LIB /タツノオトシゴ/クライアント/ request.rb:70:にsend_request' from /Users/amir/.rvm/gems/ruby-2.2.1/gems/aws-sdk-core- 2.2.3/lib/seahorse/client/base.rb:207:in
ブロック(2つのレベル)で define_operation_methods' (IRB)から:62
はい、確かです。開発者ガイドには欠けています。私は彼らに言うでしょう。 –