func NewRouterRoute(ctx *pulumi.Context,
	name string, args *RouterRouteArgs, opts ...pulumi.ResourceOption) (*RouterRoute, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}

	if args.DestinationCidr == nil {
		return nil, errors.New("invalid value for required argument 'DestinationCidr'")
	}
	if args.NextHop == nil {
		return nil, errors.New("invalid value for required argument 'NextHop'")
	}
	if args.RouterId == nil {
		return nil, errors.New("invalid value for required argument 'RouterId'")
	}
	var resource RouterRoute
	err := ctx.RegisterResource("openstack:networking/routerRoute:RouterRoute", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewRouterRoute registers a new resource with the given unique name, arguments, and options.
NewRouterRoute registers a new resource with the given unique name, arguments, and options.
// NewRouterRoute registers a new resource with the given unique name arguments and options .
func NewRouterRoute(ctx *pulumi.Context,
	name string, args *RouterRouteArgs, opts ...pulumi.ResourceOption) (*RouterRoute, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.DestinationCidr == nil {
		return nil, errors.New("invalid value for required argument 'DestinationCidr'")
	}
	if args.NextHop == nil {
		return nil, errors.New("invalid value for required argument 'NextHop'")
	}
	if args.RouterId == nil {
		return nil, errors.New("invalid value for required argument 'RouterId'")
	}
	var resource RouterRoute
	err := ctx.RegisterResource("openstack:networking/routerRoute:RouterRoute", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewRouterRoute ( ctx * pulumi . Context , name string , args * RouterRouteArgs , opts ... pulumi . ResourceOption ) ( * RouterRoute , error ) { if args == nil { return nil , errors . New ( " " ) } if args . DestinationCidr == nil { return nil , errors . New ( " " ) } if args . NextHop == nil { return nil , errors . New ( " " ) } if args . RouterId == nil { return nil , errors . New ( " " ) } var resource RouterRoute err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewRouterRoute registers a new resource with the given unique name, arguments, and options.
NewRouterRoute registers a new resource with the given unique name arguments and options .