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

	if args.AppRoleId == nil {
		return nil, errors.New("invalid value for required argument 'AppRoleId'")
	}
	if args.PrincipalObjectId == nil {
		return nil, errors.New("invalid value for required argument 'PrincipalObjectId'")
	}
	if args.ResourceObjectId == nil {
		return nil, errors.New("invalid value for required argument 'ResourceObjectId'")
	}
	var resource AppRoleAssignment
	err := ctx.RegisterResource("azuread:index/appRoleAssignment:AppRoleAssignment", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewAppRoleAssignment registers a new resource with the given unique name, arguments, and options.
NewAppRoleAssignment registers a new resource with the given unique name, arguments, and options.
// NewAppRoleAssignment registers a new resource with the given unique name arguments and options .
func NewAppRoleAssignment(ctx *pulumi.Context,
	name string, args *AppRoleAssignmentArgs, opts ...pulumi.ResourceOption) (*AppRoleAssignment, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.AppRoleId == nil {
		return nil, errors.New("invalid value for required argument 'AppRoleId'")
	}
	if args.PrincipalObjectId == nil {
		return nil, errors.New("invalid value for required argument 'PrincipalObjectId'")
	}
	if args.ResourceObjectId == nil {
		return nil, errors.New("invalid value for required argument 'ResourceObjectId'")
	}
	var resource AppRoleAssignment
	err := ctx.RegisterResource("azuread:index/appRoleAssignment:AppRoleAssignment", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewAppRoleAssignment ( ctx * pulumi . Context , name string , args * AppRoleAssignmentArgs , opts ... pulumi . ResourceOption ) ( * AppRoleAssignment , error ) { if args == nil { return nil , errors . New ( " " ) } if args . AppRoleId == nil { return nil , errors . New ( " " ) } if args . PrincipalObjectId == nil { return nil , errors . New ( " " ) } if args . ResourceObjectId == nil { return nil , errors . New ( " " ) } var resource AppRoleAssignment err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewAppRoleAssignment registers a new resource with the given unique name, arguments, and options.
NewAppRoleAssignment registers a new resource with the given unique name arguments and options .