// NewTimeSeriesInsightsGen2Environment registers a new resource with the given unique name, arguments, and options.
NewTimeSeriesInsightsGen2Environment registers a new resource with the given unique name, arguments, and options.
// NewTimeSeriesInsightsGen2Environment registers a new resource with the given unique name arguments and options .
func NewTimeSeriesInsightsGen2Environment(ctx *pulumi.Context,
	name string, args *TimeSeriesInsightsGen2EnvironmentArgs, opts ...pulumi.ResourceOption) (*TimeSeriesInsightsGen2Environment, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.IdProperties == nil {
		return nil, errors.New("invalid value for required argument 'IdProperties'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.SkuName == nil {
		return nil, errors.New("invalid value for required argument 'SkuName'")
	}
	if args.Storage == nil {
		return nil, errors.New("invalid value for required argument 'Storage'")
	}
	var resource TimeSeriesInsightsGen2Environment
	err := ctx.RegisterResource("azure:iot/timeSeriesInsightsGen2Environment:TimeSeriesInsightsGen2Environment", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewTimeSeriesInsightsGen2Environment ( ctx * pulumi . Context , name string , args * TimeSeriesInsightsGen2EnvironmentArgs , opts ... pulumi . ResourceOption ) ( * TimeSeriesInsightsGen2Environment , error ) { if args == nil { return nil , errors . New ( " " ) } if args . IdProperties == nil { return nil , errors . New ( " " ) } if args . ResourceGroupName == nil { return nil , errors . New ( " " ) } if args . SkuName == nil { return nil , errors . New ( " " ) } if args . Storage == nil { return nil , errors . New ( " " ) } var resource TimeSeriesInsightsGen2Environment err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewTimeSeriesInsightsGen2Environment registers a new resource with the given unique name, arguments, and options.
NewTimeSeriesInsightsGen2Environment registers a new resource with the given unique name arguments and options .