// NewApplicationPreAuthorized registers a new resource with the given unique name, arguments, and options.
NewApplicationPreAuthorized registers a new resource with the given unique name, arguments, and options.
// NewApplicationPreAuthorized registers a new resource with the given unique name arguments and options .
func NewApplicationPreAuthorized(ctx *pulumi.Context,
	name string, args *ApplicationPreAuthorizedArgs, opts ...pulumi.ResourceOption) (*ApplicationPreAuthorized, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.ApplicationObjectId == nil {
		return nil, errors.New("invalid value for required argument 'ApplicationObjectId'")
	}
	if args.AuthorizedAppId == nil {
		return nil, errors.New("invalid value for required argument 'AuthorizedAppId'")
	}
	if args.PermissionIds == nil {
		return nil, errors.New("invalid value for required argument 'PermissionIds'")
	}
	var resource ApplicationPreAuthorized
	err := ctx.RegisterResource("azuread:index/applicationPreAuthorized:ApplicationPreAuthorized", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewApplicationPreAuthorized ( ctx * pulumi . Context , name string , args * ApplicationPreAuthorizedArgs , opts ... pulumi . ResourceOption ) ( * ApplicationPreAuthorized , error ) { if args == nil { return nil , errors . New ( " " ) } if args . ApplicationObjectId == nil { return nil , errors . New ( " " ) } if args . AuthorizedAppId == nil { return nil , errors . New ( " " ) } if args . PermissionIds == nil { return nil , errors . New ( " " ) } var resource ApplicationPreAuthorized err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewApplicationPreAuthorized registers a new resource with the given unique name, arguments, and options.
NewApplicationPreAuthorized registers a new resource with the given unique name arguments and options .