

# HostedZoneOwner
<a name="API_HostedZoneOwner"></a>

A complex type that identifies a hosted zone that a specified Amazon VPC is associated with and the owner of the hosted zone. If there is a value for `OwningAccount`, there is no value for `OwningService`, and vice versa. 

## Contents
<a name="API_HostedZoneOwner_Contents"></a>

 ** OwningAccount **   <a name="Route53-Type-HostedZoneOwner-OwningAccount"></a>
If the hosted zone was created by an Amazon Web Services account, or was created by an Amazon service that creates hosted zones using the current account, `OwningAccount` contains the account ID of that account. For example, when you use Amazon Cloud Map to create a hosted zone, Cloud Map creates the hosted zone using the current Amazon Web Services account.   
Type: String  
Required: No

 ** OwningService **   <a name="Route53-Type-HostedZoneOwner-OwningService"></a>
If an Amazon service uses its own account to create a hosted zone and associate the specified VPC with that hosted zone, `OwningService` contains an abbreviation that identifies the service. For example, if Amazon Elastic File System (Amazon EFS) created a hosted zone and associated a VPC with the hosted zone, the value of `OwningService` is `efs.amazonaws.com`.  
Type: String  
Length Constraints: Maximum length of 128.  
Required: No

## See Also
<a name="API_HostedZoneOwner_SeeAlso"></a>

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\+\+](https://docs.amazonaws.cn/goto/SdkForCpp/route53-2013-04-01/HostedZoneOwner) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/route53-2013-04-01/HostedZoneOwner) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/route53-2013-04-01/HostedZoneOwner) 