func NewSubnetRoute(ctx *pulumi.Context,
	name string, args *SubnetRouteArgs, opts ...pulumi.ResourceOption) (*SubnetRoute, 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.SubnetId == nil {
		return nil, errors.New("invalid value for required argument 'SubnetId'")
	}
	var resource SubnetRoute
	err := ctx.RegisterResource("openstack:networking/subnetRoute:SubnetRoute", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewSubnetRoute registers a new resource with the given unique name, arguments, and options.
NewSubnetRoute registers a new resource with the given unique name, arguments, and options.
// NewSubnetRoute registers a new resource with the given unique name arguments and options .
func NewSubnetRoute(ctx *pulumi.Context,
	name string, args *SubnetRouteArgs, opts ...pulumi.ResourceOption) (*SubnetRoute, 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.SubnetId == nil {
		return nil, errors.New("invalid value for required argument 'SubnetId'")
	}
	var resource SubnetRoute
	err := ctx.RegisterResource("openstack:networking/subnetRoute:SubnetRoute", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewSubnetRoute ( ctx * pulumi . Context , name string , args * SubnetRouteArgs , opts ... pulumi . ResourceOption ) ( * SubnetRoute , 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 . SubnetId == nil { return nil , errors . New ( " " ) } var resource SubnetRoute err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewSubnetRoute registers a new resource with the given unique name, arguments, and options.
NewSubnetRoute registers a new resource with the given unique name arguments and options .