Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 无法通过boto3删除route53记录集_Amazon Web Services_Boto3_Amazon Route53 - Fatal编程技术网

Amazon web services 无法通过boto3删除route53记录集

Amazon web services 无法通过boto3删除route53记录集,amazon-web-services,boto3,amazon-route53,Amazon Web Services,Boto3,Amazon Route53,我有以下脚本: Import boto3 ChangeBatch={ 'Changes': [ { 'Action': 'DELETE', 'ResourceRecordSet': { 'Name': 'test.example.com.', 'Region': 'us-west-1', 'SetIdentifier': 'te

我有以下脚本:

Import boto3

ChangeBatch={
    'Changes': [
        {
            'Action': 'DELETE',
            'ResourceRecordSet': {
                'Name': 'test.example.com.',
                'Region': 'us-west-1',
                'SetIdentifier': 'test1',
                'AliasTarget': {
                    'HostedZoneId': '**675',
                    'DNSName': 'testexample.example.com.',
                    'EvaluateTargetHealth': 'True'
                },
                'HealthCheckId': '**-**-**-675'
            }
        }
    ]
}

当我运行上述代码时,它不会删除任何内容。这是一种基于延迟的路由策略。不确定我做错了什么,我在线查看了aws文档,这是删除记录集的建议方法

我明白了。这是丢失的类型

Import boto3

ChangeBatch={
    'Changes': [
        {
            'Action': 'DELETE',
            'ResourceRecordSet': {
                'Name': 'test.example.com.',
                'Region': 'us-west-1',
                'Type': 'A'
                'SetIdentifier': 'test1',
                'AliasTarget': {
                    'HostedZoneId': '**675',
                    'DNSName': 'testexample.example.com.',
                    'EvaluateTargetHealth': 'True'
                },
                'HealthCheckId': '**-**-**-675'
            }
        }
    ]
}