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

	if args.Plan == nil {
		return nil, errors.New("invalid value for required argument 'Plan'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.SolutionName == nil {
		return nil, errors.New("invalid value for required argument 'SolutionName'")
	}
	if args.WorkspaceName == nil {
		return nil, errors.New("invalid value for required argument 'WorkspaceName'")
	}
	if args.WorkspaceResourceId == nil {
		return nil, errors.New("invalid value for required argument 'WorkspaceResourceId'")
	}
	var resource AnalyticsSolution
	err := ctx.RegisterResource("azure:operationalinsights/analyticsSolution:AnalyticsSolution", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewAnalyticsSolution registers a new resource with the given unique name, arguments, and options.
NewAnalyticsSolution registers a new resource with the given unique name, arguments, and options.
// NewAnalyticsSolution registers a new resource with the given unique name arguments and options .
func NewAnalyticsSolution(ctx *pulumi.Context,
	name string, args *AnalyticsSolutionArgs, opts ...pulumi.ResourceOption) (*AnalyticsSolution, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.Plan == nil {
		return nil, errors.New("invalid value for required argument 'Plan'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.SolutionName == nil {
		return nil, errors.New("invalid value for required argument 'SolutionName'")
	}
	if args.WorkspaceName == nil {
		return nil, errors.New("invalid value for required argument 'WorkspaceName'")
	}
	if args.WorkspaceResourceId == nil {
		return nil, errors.New("invalid value for required argument 'WorkspaceResourceId'")
	}
	var resource AnalyticsSolution
	err := ctx.RegisterResource("azure:operationalinsights/analyticsSolution:AnalyticsSolution", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewAnalyticsSolution ( ctx * pulumi . Context , name string , args * AnalyticsSolutionArgs , opts ... pulumi . ResourceOption ) ( * AnalyticsSolution , error ) { if args == nil { return nil , errors . New ( " " ) } if args . Plan == nil { return nil , errors . New ( " " ) } if args . ResourceGroupName == nil { return nil , errors . New ( " " ) } if args . SolutionName == nil { return nil , errors . New ( " " ) } if args . WorkspaceName == nil { return nil , errors . New ( " " ) } if args . WorkspaceResourceId == nil { return nil , errors . New ( " " ) } var resource AnalyticsSolution err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewAnalyticsSolution registers a new resource with the given unique name, arguments, and options.
NewAnalyticsSolution registers a new resource with the given unique name arguments and options .