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

	if args.AlertNotifications == nil {
		return nil, errors.New("invalid value for required argument 'AlertNotifications'")
	}
	if args.AlertsToAdmins == nil {
		return nil, errors.New("invalid value for required argument 'AlertsToAdmins'")
	}
	if args.Email == nil {
		return nil, errors.New("invalid value for required argument 'Email'")
	}
	var resource Contact
	err := ctx.RegisterResource("azure:securitycenter/contact:Contact", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewContact registers a new resource with the given unique name, arguments, and options.
NewContact registers a new resource with the given unique name, arguments, and options.
// NewContact registers a new resource with the given unique name arguments and options .
func NewContact(ctx *pulumi.Context,
	name string, args *ContactArgs, opts ...pulumi.ResourceOption) (*Contact, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.AlertNotifications == nil {
		return nil, errors.New("invalid value for required argument 'AlertNotifications'")
	}
	if args.AlertsToAdmins == nil {
		return nil, errors.New("invalid value for required argument 'AlertsToAdmins'")
	}
	if args.Email == nil {
		return nil, errors.New("invalid value for required argument 'Email'")
	}
	var resource Contact
	err := ctx.RegisterResource("azure:securitycenter/contact:Contact", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewContact ( ctx * pulumi . Context , name string , args * ContactArgs , opts ... pulumi . ResourceOption ) ( * Contact , error ) { if args == nil { return nil , errors . New ( " " ) } if args . AlertNotifications == nil { return nil , errors . New ( " " ) } if args . AlertsToAdmins == nil { return nil , errors . New ( " " ) } if args . Email == nil { return nil , errors . New ( " " ) } var resource Contact err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewContact registers a new resource with the given unique name, arguments, and options.
NewContact registers a new resource with the given unique name arguments and options .