// Creates a new site in a global network.
Creates a new site in a global network.
// Creates a new site in a global network .
func (c *Client) CreateSite(ctx context.Context, params *CreateSiteInput, optFns ...func(*Options)) (*CreateSiteOutput, error) {
	if params == nil {
		params = &CreateSiteInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "CreateSite", params, optFns, addOperationCreateSiteMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*CreateSiteOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) CreateSite ( ctx context . Context , params * CreateSiteInput , optFns ... func ( * Options ) ) ( * CreateSiteOutput , error ) { if params == nil { params = & CreateSiteInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationCreateSiteMiddlewares ) if err != nil { return nil , err } out := result . ( * CreateSiteOutput ) out . ResultMetadata = metadata return out , nil }
Creates a new site in a global network.
Creates a new site in a global network .