{"action":"created","issue":{"url":"https://api.github.com/repos/boto/boto3/issues/493","repository_url":"https://api.github.com/repos/boto/boto3","labels_url":"https://api.github.com/repos/boto/boto3/issues/493/labels{/name}","comments_url":"https://api.github.com/repos/boto/boto3/issues/493/comments","events_url":"https://api.github.com/repos/boto/boto3/issues/493/events","html_url":"https://github.com/boto/boto3/issues/493","id":133989317,"number":493,"title":"Documentation error for route53.create_hosted_zone() when set attribute 'PrivateZone'","user":{"login":"maruina","id":4821896,"avatar_url":"https://avatars.githubusercontent.com/u/4821896?v=3","gravatar_id":"","url":"https://api.github.com/users/maruina","html_url":"https://github.com/maruina","followers_url":"https://api.github.com/users/maruina/followers","following_url":"https://api.github.com/users/maruina/following{/other_user}","gists_url":"https://api.github.com/users/maruina/gists{/gist_id}","starred_url":"https://api.github.com/users/maruina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maruina/subscriptions","organizations_url":"https://api.github.com/users/maruina/orgs","repos_url":"https://api.github.com/users/maruina/repos","events_url":"https://api.github.com/users/maruina/events{/privacy}","received_events_url":"https://api.github.com/users/maruina/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/boto/boto3/labels/api-update","name":"api-update","color":"fbca04"},{"url":"https://api.github.com/repos/boto/boto3/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/boto/boto3/labels/route53","name":"route53","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-02-16T14:02:14Z","updated_at":"2016-07-22T22:05:23Z","closed_at":"2016-07-22T22:05:22Z","body":"Hello,\r\nI think the documentation about [create_hosted_zone](http://boto3.readthedocs.org/en/latest/reference/services/route53.html#Route53.Client.create_hosted_zone) is wrong, because if I set the attribute ```'PrivateZone'```, the request is failing, and according to [AWS API](http://docs.aws.amazon.com/Route53/latest/APIReference/API-create-hosted-zone-private.html) you don't need it.\r\n\r\n## Steps to reproduce\r\nwith ```'PrivateZone': True```\r\n```python\r\nimport boto3\r\nsession = boto3.session.Session(profile_name='default')\r\nroute53 = session.client('route53')\r\n\r\nroute53.create_hosted_zone(\r\n    Name='my-domain',\r\n    VPC={\r\n        'VPCRegion': 'my-region',\r\n        'VPCId': 'my-vpc'\r\n    },\r\n    CallerReference='random_string',\r\n    HostedZoneConfig={\r\n        'Comment': 'string',\r\n        'PrivateZone': True\r\n    }\r\n)\r\n```\r\nresponse\r\n```python\r\nClientError: An error occurred (InvalidInput) when calling the CreateHostedZone operation:\r\nInvalid XML; cvc-complex-type.2.4.d: Invalid content was found starting with element 'PrivateZone'. \r\nNo child element is expected at this point.\r\n```\r\nwithout 'PrivateZone'\r\n```python\r\nroute53.create_hosted_zone(\r\n    Name='my-domain',\r\n    VPC={\r\n        'VPCRegion': 'my-region',\r\n        'VPCId': 'my-vpc'\r\n    },\r\n    CallerReference='random_string',\r\n    HostedZoneConfig={\r\n        'Comment': 'string'\r\n    }\r\n)\r\n```\r\nresponse\r\n```python\r\n{u'ChangeInfo': {u'Id': '/change/C4PDIAYEQ7D1W',\r\n  u'Status': 'PENDING',\r\n  u'SubmittedAt': datetime.datetime(2016, 2, 16, 13, 53, 43, 968000, tzinfo=tzutc())},\r\n u'HostedZone': {u'CallerReference': 'random_string',\r\n  u'Config': {u'Comment': 'string', u'PrivateZone': True},\r\n  u'Id': '[...]'}}\r\n```\r\nThe same works for a public domain as well\r\n```python\r\nroute53.create_hosted_zone(\r\n    Name='my-domain',\r\n    CallerReference='random_string1',\r\n    HostedZoneConfig={\r\n        'Comment': 'string'\r\n    }\r\n)\r\n```\r\nresponse\r\n```python\r\n{u'ChangeInfo': {u'Id': '/change/C3KAEFU2HILHG9',\r\n  u'Status': 'PENDING',\r\n  u'SubmittedAt': datetime.datetime(2016, 2, 16, 13, 56, 9, 541000, tzinfo=tzutc())},\r\n u'DelegationSet': {u'NameServers': ['ns-193.awsdns-24.com',\r\n   'ns-746.awsdns-29.net',\r\n   'ns-1158.awsdns-16.org',\r\n   'ns-2020.awsdns-60.co.uk']},\r\n u'HostedZone': {u'CallerReference': 'random_string1',\r\n  u'Config': {u'Comment': 'string', u'PrivateZone': False},\r\n  u'Id': '[...]'}}\r\n```\r\nwhile is failing setting ```'PrivateZone': False```.\r\n\r\n## Info\r\nBoto version ```1.2.3```\r\nPython version ```Python 2.7.11```\r\n"},"comment":{"url":"https://api.github.com/repos/boto/boto3/issues/comments/234668482","html_url":"https://github.com/boto/boto3/issues/493#issuecomment-234668482","issue_url":"https://api.github.com/repos/boto/boto3/issues/493","id":234668482,"user":{"login":"JordonPhillips","id":2643092,"avatar_url":"https://avatars.githubusercontent.com/u/2643092?v=3","gravatar_id":"","url":"https://api.github.com/users/JordonPhillips","html_url":"https://github.com/JordonPhillips","followers_url":"https://api.github.com/users/JordonPhillips/followers","following_url":"https://api.github.com/users/JordonPhillips/following{/other_user}","gists_url":"https://api.github.com/users/JordonPhillips/gists{/gist_id}","starred_url":"https://api.github.com/users/JordonPhillips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JordonPhillips/subscriptions","organizations_url":"https://api.github.com/users/JordonPhillips/orgs","repos_url":"https://api.github.com/users/JordonPhillips/repos","events_url":"https://api.github.com/users/JordonPhillips/events{/privacy}","received_events_url":"https://api.github.com/users/JordonPhillips/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T22:05:22Z","updated_at":"2016-07-22T22:05:22Z","body":"This was addressed server side. I confirmed by running the sample code again, which results in a successful call. The service doc page you linked now also has examples using that value. I'm closing this out, but feel free to re-open if the issue pops up again."}}
{"actor":{"display_login":"JordonPhillips"}}