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

	if args.Categories == nil {
		return nil, errors.New("invalid value for required argument 'Categories'")
	}
	if args.Locations == nil {
		return nil, errors.New("invalid value for required argument 'Locations'")
	}
	if args.RetentionPolicy == nil {
		return nil, errors.New("invalid value for required argument 'RetentionPolicy'")
	}
	var resource LogProfile
	err := ctx.RegisterResource("azure:monitoring/logProfile:LogProfile", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewLogProfile registers a new resource with the given unique name, arguments, and options.
NewLogProfile registers a new resource with the given unique name, arguments, and options.
// NewLogProfile registers a new resource with the given unique name arguments and options .
func NewLogProfile(ctx *pulumi.Context,
	name string, args *LogProfileArgs, opts ...pulumi.ResourceOption) (*LogProfile, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.Categories == nil {
		return nil, errors.New("invalid value for required argument 'Categories'")
	}
	if args.Locations == nil {
		return nil, errors.New("invalid value for required argument 'Locations'")
	}
	if args.RetentionPolicy == nil {
		return nil, errors.New("invalid value for required argument 'RetentionPolicy'")
	}
	var resource LogProfile
	err := ctx.RegisterResource("azure:monitoring/logProfile:LogProfile", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewLogProfile ( ctx * pulumi . Context , name string , args * LogProfileArgs , opts ... pulumi . ResourceOption ) ( * LogProfile , error ) { if args == nil { return nil , errors . New ( " " ) } if args . Categories == nil { return nil , errors . New ( " " ) } if args . Locations == nil { return nil , errors . New ( " " ) } if args . RetentionPolicy == nil { return nil , errors . New ( " " ) } var resource LogProfile err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewLogProfile registers a new resource with the given unique name, arguments, and options.
NewLogProfile registers a new resource with the given unique name arguments and options .