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

	if args.ClaimValues == nil {
		return nil, errors.New("invalid value for required argument 'ClaimValues'")
	}
	if args.ResourceServicePrincipalObjectId == nil {
		return nil, errors.New("invalid value for required argument 'ResourceServicePrincipalObjectId'")
	}
	if args.ServicePrincipalObjectId == nil {
		return nil, errors.New("invalid value for required argument 'ServicePrincipalObjectId'")
	}
	var resource ServicePrincipalDelegatedPermissionGrant
	err := ctx.RegisterResource("azuread:index/servicePrincipalDelegatedPermissionGrant:ServicePrincipalDelegatedPermissionGrant", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewServicePrincipalDelegatedPermissionGrant registers a new resource with the given unique name, arguments, and options.
NewServicePrincipalDelegatedPermissionGrant registers a new resource with the given unique name, arguments, and options.
// NewServicePrincipalDelegatedPermissionGrant registers a new resource with the given unique name arguments and options .
func NewServicePrincipalDelegatedPermissionGrant(ctx *pulumi.Context,
	name string, args *ServicePrincipalDelegatedPermissionGrantArgs, opts ...pulumi.ResourceOption) (*ServicePrincipalDelegatedPermissionGrant, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.ClaimValues == nil {
		return nil, errors.New("invalid value for required argument 'ClaimValues'")
	}
	if args.ResourceServicePrincipalObjectId == nil {
		return nil, errors.New("invalid value for required argument 'ResourceServicePrincipalObjectId'")
	}
	if args.ServicePrincipalObjectId == nil {
		return nil, errors.New("invalid value for required argument 'ServicePrincipalObjectId'")
	}
	var resource ServicePrincipalDelegatedPermissionGrant
	err := ctx.RegisterResource("azuread:index/servicePrincipalDelegatedPermissionGrant:ServicePrincipalDelegatedPermissionGrant", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewServicePrincipalDelegatedPermissionGrant ( ctx * pulumi . Context , name string , args * ServicePrincipalDelegatedPermissionGrantArgs , opts ... pulumi . ResourceOption ) ( * ServicePrincipalDelegatedPermissionGrant , error ) { if args == nil { return nil , errors . New ( " " ) } if args . ClaimValues == nil { return nil , errors . New ( " " ) } if args . ResourceServicePrincipalObjectId == nil { return nil , errors . New ( " " ) } if args . ServicePrincipalObjectId == nil { return nil , errors . New ( " " ) } var resource ServicePrincipalDelegatedPermissionGrant err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewServicePrincipalDelegatedPermissionGrant registers a new resource with the given unique name, arguments, and options.
NewServicePrincipalDelegatedPermissionGrant registers a new resource with the given unique name arguments and options .